看代码:
class VirtualMemoryManager
{
[DllImport("kernel32.dll",EntryPoint="GetCurrentProcess")]
internal static extern IntPtr GetCurrentProcessHandle();
}
为什么“GetCurrentProcessHandle”必须“静态”
看代码:
class VirtualMemoryManager
{
[DllImport("kernel32.dll",EntryPoint="GetCurrentProcess")]
internal static extern IntPtr GetCurrentProcessHandle();
}
为什么“GetCurrentProcessHandle”必须“静态”