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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "GetModuleHandle" in [All]

user32

.

static extern IntPtr GetModuleHandle(string module);

.

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

.
Documentation
[GetModuleHandle] on MSDN
.

    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

.

<DllImport("coredll.dll", EntryPoint:="GetModuleHandleW", SetLastError:=True)>

.

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

.
Documentation
[GetModuleHandleW] on MSDN
.

GetModuleHandle

.

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

kernel32

.

        : GetModuleHandle(message);

.

    private static extern IntPtr GetModuleHandle(string lpModuleName);

.
Summary
.

public static extern IntPtr GetModuleHandle([MarshalAs(UnmanagedType.LPWStr)] string lpModuleName);

.

Public Shared Function GetModuleHandle(<MarshalAs(UnmanagedType.LPWStr)> ByVal lpModuleName As String) As IntPtr

.

static def GetModuleHandle(lpModuleName as string) as IntPtr:

.

IntPtr handle = GetModuleHandle("user32.dll");

.
Documentation
[GetModuleHandle] on MSDN
.

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


 
Access PInvoke.net directly from VS: