public static class API { [DllImport("KERNEL32.DLL", EntryPoint = "GetCurrentProcess", SetLastError = true, CallingConvention = CallingConvention.StdCall)] public static extern IntPtr GetCurrentProcess(); } |
Esempio:
IntPtr handle = API.GetCurrentProcess();
Nessun commento:
Posta un commento