Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Process information
#8
Macro Macro2190
Code:
Copy      Help
int pid
GetWindowThreadProcessId(win("" "Notepad") &pid)
;;or
;pid=ProcessNameToId("notepad") ;;slower, use with windowless processes
if(!pid) end "failed to get process id"

__Handle hp=OpenProcess(PROCESS_QUERY_X_INFORMATION 0 pid)
if(!hp) end _s.dllerror

out GetGuiResources(hp GR_GDIOBJECTS)
for current process
Macro Macro2191
Code:
Copy      Help
out GetGuiResources(GetCurrentProcess GR_GDIOBJECTS)


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)