GetModuleHandle (kernel32)
Last changed: -130.76.64.15

.
Summary

C# Signature:

[DllImport("kernel32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr GetModuleHandle(string lpModuleName);

VB.Net Signature:

  <DllImport("kernel32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
  Public Shared Function GetModuleHandle(ByVal lpModuleName As String) As IntPtr
  End Function

Boo Signature:

[DllImport("kernel32", CharSet : CharSet.Auto)]
static def GetModuleHandle(lpModuleName as string) as IntPtr:
     pass

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

IntPtr ModKernel32 = GetModuleHandle("Kernel32.dll");

Alternative Managed API:

Do you know one? Please contribute it!

Documentation