Returns the fully-qualified drive, path, file name, and extension associated with the referenced module handle.
#define INCL_DOSMODULEMGR #include <os2.h> HMODULE hmod; /* The handle of the dynamic link module that is being referenced. */ ULONG cbName; /* The maximum length of the buffer, in bytes, where the name will be stored. */ PCHAR pch; /* The address of the buffer where the file specification of the module are returned. */ APIRET ulrc; /* Return Code. */ ulrc = DosQueryModuleName(hmod, cbName, pch);