<-- Previous || Up || Next -->

Get Module File Name Function
Windows API Class

Public Function GetModuleFileName( _
    ByVal vModuleHandle As Variant _
    ) As Variant

Return the file name of the program associated with the Windows Module Handle vModuleHandle.

    GetModuleFileName(est.hInstance) = "C:\VB\VB32.EXE"
Note: You will likely get a different result when running this example.
See also:
    hInstance Application Class Property
    GetModuleFileName Function (Windows API)
vModuleHandle: Windows Module Handle for the program whose file name will be returned. Function returns Null if vModuleHandle is Null or cannot be fixed-up to a number.
v1.3 Change: Removed 16-bit support from this function.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.