Click or drag to resize
Xcalibur Systems LLC Logo

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.Events
Assembly: 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
)

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

IntPtr
See Also