[Toc][Index]

DosGetModName


Bindings:  C, MASM 

This call returns the fully qualified drive, path, file name, and 
extension associated with a referenced module handle. 
 DosGetModName     (ModuleHandle, BufferLength, Buffer) 
 
 ModuleHandle (HMODULE) - input 
    Handle of the dynamic link module being referenced. 
 BufferLength (USHORT) - input 
    Maximum length of the buffer, in bytes, where the name is stored. 
 Buffer (PCHAR) - output 
    Address of the buffer where the fully qualified drive, path, filename, 
    and extension of the dynamic link module are stored. 
 rc (USHORT) - return 
    Return code descriptions are: 
    0         NO_ERROR 
    6         ERROR_INVALID_HANDLE 
    24        ERROR_BAD_LENGTH 
    95        ERROR_INTERRUPT 
 
 Remarks 
 The handle returned by either a DosGetModHandle or a  DosLoadModule 
 request can be used with this call. An error is returned if the buffer is 
 not large enough for the module name. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs