Code: Select all
#TH32CS_SNAPHEAPLIST = $1
#TH32CS_SNAPPROCESS = $2
#TH32CS_SNAPTHREAD = $4
#TH32CS_SNAPMODULE = $8
#TH32CS_SNAPALL = (#TH32CS_SNAPHEAPLIST | #TH32CS_SNAPPROCESS | #TH32CS_SNAPTHREAD | #TH32CS_SNAPMODULE)
#TH32CS_INHERIT = $80000000
Structure PROCESSENTRY32
dwSize.l
cntUsage.l
th32ProcessID.l
th32DefaultHeapID.l
th32ModuleID.l
cntThreads.l
th32ParentProcessID.l
pcPriClassBase.l
dwFlags.l
szExeFile.b [#MAX_PATH]
EndStructure
CreateToolhelp32Snapshot_ (#TH32CS_SNAPPROCESS, 0)
; The error...
;---------------------------
;PureBasic180532712.exe - Bad Image
;---------------------------
;The application Or DLL C:\winnt\System32\TOOLHELP.DLL is not a valid Windows image. Please check this against your installation diskette.
;---------------------------
;OK
;---------------------------