Windows API: Strange behaviour after calling GetModuleFileNameExA
Joel Lucsy
jjlucsy at gmail.com
Tue Nov 27 07:11:47 PST 2007
Tobias Wassermann wrote:
> extern (Windows) HANDLE OpenProcess(uint dwDesiredAccess, BOOL bInheritHandle, uint dwProcessId);
> extern (C)
> {
> BOOL EnumProcesses(DWORD* pProcessIds, DWORD cb, DWORD* pBytesReturned);
> DWORD GetModuleFileNameExA(HANDLE hProcess, HMODULE hModule, char* fileName, uint size);
> }
Ah, I would tend to think that EnumProcesses and GetModuleFileNameExA
should be extern(Windows) as well. All Win32 api's use STDCALL, which is
what I believe extern(Windows) sets.
--
Joel Lucsy
"The dinosaurs became extinct because they didn't have a space program."
-- Larry Niven
More information about the Digitalmars-d
mailing list