Original Post
(I wasn''t sure where this should go, so here it is)
I''m having some problems getting data to the proper data type in windows. I use the CreateProcess function to launch another exe, and I need the first program to be able to get an HMODULE that points to the program file just run. I tried using GetModuleHandle and giving it the filename of the program, but it constantly returns 0 (indicating error, the error string is "The specified module could not be found", which makes sense since it wasnt loaded as a module). I have a HANDLE to the process given to me by CreateProcess, but its not compatable with the HMODULE type and I''m not sure what functions to use to convert the HANDLE to an HMODULE.
Any ideas on how to convert a windows HANDLE-type variable that points to a process into a windows HMODULE-type variable that points to the process file?
"The Requested Information Is Unknown Or Classified" -Anonymous