13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GetModuleFileNamefunction GetModuleFileName(Module: THandle; FileName: PChar; Size:Integer): Integer;This function retrieves the full pathname of the executable file from whichthe specified module was loaded. The function copies the null-terminatedfilename into the buffer pointed to by the IpFilename parameter.Parameters hModule HANDLE Identifies the module or the instance of themodule.Return valueIpFilenamenSizeLPSTR Points to the buffer that is to receive the filename.int Specifies the maximum number of characters to copy. Ifthe filename is longer than the maximum number ofcharacters specified by the nSize parameter, it is truncated.The return value specifies the actual length of the string copied to thebuffer.GetModuleHandleSyntaxHANDLE GetModuleHandle(lpModuleName)function GetModuleHandle(ModuleN arne: PChar): THandle;This function retrieves the module handle of the specified module.Parameters IpModuleName LPSTR Points to a null-terminated character string thatspecifies the module.Return valueThe return value identifies the module if the function is successful.Otherwise, it is NULL.GetModuleUsageSyntaxint GetModuleUsage(hModule)function GetModuleUsage(Module: THandle): Integer;This function returns the reference count of a specified module.Parameters hModule HANDLE Identifies the module or an instance of the module.Return valueThe return value specifies the reference count of the module.328 Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!