...: For a little bit now I've been struggling with an issue involving OpenProcess and CreateToolhelp32Snapshot. The issue revolves around a single process returning ERROR_ACCESS_DENIED when I attempt to either call CreateToolhelp32Snapshot on the process or OpenProcess. The target process has Medium Integrity, is running in ...
...wrote: For a little bit now I've been struggling with an issue involving OpenProcess and CreateToolhelp32Snapshot. The issue revolves around a single process returning ERROR_ACCESS_DENIED when I attempt to either call CreateToolhelp32Snapshot on the process or OpenProcess. The target process has Medium Integrity, is running in ...
... struggling with an issue involving OpenProcess and CreateToolhelp32Snapshot. The issue revolves around a single ... when I attempt to either call CreateToolhelp32Snapshot on the process or OpenProcess. The ... is that my process can call CreateToolhelp32Snapshot on every other process of the ...a process in windows Vista to prohibit CreateToolhelp32Snapshot or OpenProcess from being called on ...
... I cause CMD to invoke an identified program whenever it starts running a script? Thanks in advance, -- Norm To reply, change domain to an adult feline. I think, CreateToolhelp32Snapshot(), etc. - functions provide info on parent process - so it's easy to check if parent is cmd.exe. Also, you might want to maintain state (table of parent PIDs) in some file. The only ...
... I cause CMD to invoke an identified program whenever it starts running a script? Thanks in advance, -- Norm To reply, change domain to an adult feline. I think, CreateToolhelp32Snapshot(), etc. - functions provide info on parent process - so it's easy to check if parent is cmd.exe. Also, you might want to maintain state (table of parent PIDs) in some file. The only ...
.... The value passed in lParam is a thread identifier, not a module handle that can be passed to GetModuleFileName(). You can get its process ID by using OpenThread() and GetProcessIdOfThread(). Then you can use CreateToolhelp32Snapshot(), Module32First(), and Module32Next() to walk through the list of modules in the process. -- Norm To reply, change domain to an adult feline.
...of modules under a process. The CreateToolhelp32Snapshot / Process32First / Process32Next works fine to ... running on WOW64, use the CreateToolhelp32Snapshot function. and then on the ... page of the same site: CreateToolhelp32Snapshot Function ---------------------------------- If the specified process ... you do this instead of CreateToolhelp32Snapshot? then what? how do you ...
.... It's a null-terminated string, and those are automatically converted into Delphi strings when you assign them or pass them as Delphi strings. end; begin handler := CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0); I notice that you're assuming that call is always successful. Why are you asking for all information when you really only need process information? ...