旭
旭日升
Unregistered / Unconfirmed
GUEST, unregistred user!
请问,各位哥们,Api函数CreateToolhelp32Snapshot() Process32First() Process32Next() 怎么用(100分)<br />请问,各位哥们,Api函数CreateToolhelp32Snapshot()<br> Process32First() Process32Next() 怎么用<br><br>以下代码错在那里的?<br>procedure TForm1.Button5Click(Sender: TObject);<br>Type<br> S_Process=Record<br> dwSize: DWORD;<br> cntUsage: DWORD;<br> th32ProcessID: DWORD;<br> th32DefaultHeapID: DWORD;<br> th32ModuleID: DWORD;<br> cntThreads: DWORD;<br> th32ParentProcessID: DWORD;<br> pcPriClassBase: LONGINT;<br> dwFlags: DWORD;<br> szExeFile Char;<br> End ;<br>Var<br> msgProcess: S_Process;<br> Snapshot : DWord ;<br>begin<br> Snapshot := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, GetCurrentProcessId()   ;<br> msgProcess.dwSize := 296 ;<br> Process32First(Snapshot, msgProcess) ;<br> // ...........<br>end;<br>