Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetModuleHandle" in [All]

kernel32

.
Summary
.

public static extern IntPtr GetModuleHandle(string lpModuleName);

.

  Public Shared Function GetModuleHandle(ByVal lpModuleName As String) As IntPtr

.

static def GetModuleHandle(lpModuleName as string) as IntPtr:

.

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

.
Documentation
[GetModuleHandle] on MSDN
.

    proc = GetProcAddress(GetModuleHandle("Kernel32.dll"), "IsWow64Process")

user32

.

    IntPtr hModule = GetModuleHandle(module.ModuleName);

coredll

.

internal static extern bool GetModuleHandleEx(UInt32 dwFlags, string lpModuleName, out IntPtr phModule);

.

Friend Shared Function GetModuleHandleEx(ByVal dwFlags As UInt32, ByVal lpModuleName As String, ByRef phModule As IntPtr) As Boolean

.

internal static extern bool GetModuleHandleEx(UInt32 dwFlags, string lpModuleName, out IntPtr phModule);

.

[DllImport("coredll.dll", EntryPoint="GetModuleHandleW", SetLastError=true)]

.

public static extern IntPtr GetModuleHandle(string moduleName);

.

Declare Function GetModuleHandleW Lib "user32.dll" (TODO) As TODO

.
Documentation
[GetModuleHandleW] on MSDN
.

GetModuleHandle

.

            IntPtr hIcon = LoadIcon(GetModuleHandle(null), "#32512");


 
Access PInvoke.net directly from VS: