Lines Matching refs:hsm
29 HANDLE hp, hsp, hsm; /* process, snapshot processes, snapshot modules */ in main() local
44 hsm = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, our_pid); in main()
45 if (hsm == INVALID_HANDLE_VALUE) { in main()
50 if (!Module32FirstW(hsm, &me)) { in main()
52 CloseHandle(hsm); in main()
69 } while (Module32NextW(hsm, &me)); in main()
71 CloseHandle(hsm); in main()
120 hsm = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pe.th32ProcessID); in main()
121 if (hsm == INVALID_HANDLE_VALUE) in main()
131 if (!Module32FirstW(hsm, &me)) { in main()
134 CloseHandle(hsm); in main()
152 CloseHandle(hsm); in main()
159 CloseHandle(hsm); in main()
167 } while (Module32NextW(hsm, &me)); in main()
169 CloseHandle(hsm); in main()