In an EXE if you want to knoe its filename you would use:
GetModuleFileName(BYVAL 0&, TmpAsciiz, SIZEOF(TmpAsciiz))
WinAPI says:
The GetModuleFileName function retrieves the full path and filename for the executable file containing the specified module.
Is there an equivelent for a Dll?
Petzold doesnt seem to have anything listed and the WinAPI library might do but im guessing what it would be called.
------------------
Kind Regards
Mike
GetModuleFileName(BYVAL 0&, TmpAsciiz, SIZEOF(TmpAsciiz))
WinAPI says:
The GetModuleFileName function retrieves the full path and filename for the executable file containing the specified module.
Is there an equivelent for a Dll?
Petzold doesnt seem to have anything listed and the WinAPI library might do but im guessing what it would be called.
------------------
Kind Regards
Mike
Comment