|
1234567891011121314151617181920212223 |
- // MyClass.cs created with MonoDevelop
- // User: sam at 13:14 04/10/2008
- //
- // To change standard headers go to Edit->Preferences->Coding->Standard Headers
- //
-
- using System;
- using System.Runtime.InteropServices;
- using System.Security;
-
- namespace Pipi
- {
- public static class Libpipi
- {
- [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl),
- SuppressUnmanagedCodeSecurity]
- private static extern IntPtr pipi_get_version();
- public static string getVersion()
- {
- return Marshal.PtrToStringAnsi(pipi_get_version());
- }
- }
- }
|