喜IM试图让出的ProcessID使用WINAPI“GetProcessID”进程句柄,但我得到以下错误...

无法找到名为 'GetProcessID' 在DLL 'KERNEL32.DLL'。一个入口点

检查MSDN我看不到其中i出了错..

有帮助吗?

解决方案

案例时而重要的,特别是,它在Windows API的事项。你指的API函数的 GetProcessId 的位置(小写最后一个字母的 d 的)?

其他提示

您互操作的代码应该是这样的:

[DllImportAttribute("kernel32.dll", EntryPoint="GetProcessId")]
public static extern  uint GetProcessId([In] System.IntPtr process);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top