|
EventHelperGetModuleHandle Method |
Retrieves a module handle for the specified module. The module must have been loaded by the
calling process.
GetModuleHandle function Namespace: Xcalibur.NativeMethods.V2.EventsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("user32.dll", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Auto)]
public static IntPtr GetModuleHandle(
string filename
)
<DllImportAttribute("user32.dll", CallingConvention := CallingConvention.StdCall,
CharSet := CharSet.Auto>]
Public Shared Function GetModuleHandle (
filename As String
) As IntPtr
public:
[DllImportAttribute(L"user32.dll", CallingConvention = CallingConvention::StdCall,
CharSet = CharSet::Auto)]
static IntPtr GetModuleHandle(
String^ filename
)
[<DllImportAttribute("user32.dll", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Auto)>]
static member GetModuleHandle :
filename : string -> IntPtr
Parameters
- filename String
- The name of the loaded module (either a .dll or .exe file). If the
file name extension is omitted, the default library extension .dll is appended. The file
name string can include a trailing point character (.) to indicate that the module name has
no extension. The string does not have to specify a path. When specifying a path, be sure
to use backslashes (\), not forward slashes (/). The name is compared (case independently)
to the names of modules currently mapped into the address space of the calling process.
Return Value
IntPtrSee Also