[求助]xp系统调用API函数出错
今天看到一篇关于调用API函数的文章,自己想来试试,结果一运行出错,提示:"找不到DLL入口点.....". 我用的是XP系统,正确的调用应该是怎样的呢? 这是我的代码 Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Sub Command1_Click() i = RegisterServiceProcess(GetCurrentProcessId, 1) End Sub