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 "LoadLibrary" in [All]

winscard

.

One may Get the SCARD_IO_REQUEST values which are defined as pointer to initialised data export in WinSCard.dll using the LoadLibrary and GetProcAddress pair.

.

private extern static IntPtr LoadLibrary(string lpFileName);

.

IntPtr handle = LoadLibrary("Winscard.dll") ;

ole32

.
Summary
Frees all the DLLs that have been loaded with the CoLoadLibrary function, regardless of whether they are currently in use.

user32

.

        private static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hFile, LoadLibraryFlags dwFlags);

.

        private enum LoadLibraryFlags : uint {

.

                h = LoadLibraryEx(path, IntPtr.Zero, LoadLibraryFlags.LOAD_LIBRARY_AS_DATAFILE);

kernel32

.

        dll_hInst = LoadLibraryEx(Filename.Text, 0, 1)

.

    private static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hFile, uint dwFlags);

.

      IntPtr hMod = LoadLibraryEx(@"D:\Test\StringResource\Debug\StringResource.exe", IntPtr.Zero, LOAD_LIBRARY_AS_DATAFILE);

.

    Dim hMod As IntPtr = LoadLibraryEx(fullPath, IntPtr.Zero, LoadLibraryFlags.LOAD_LIBRARY_AS_DATAFILE)

.

      hExe = LoadLibrary(mFileName);

.

hDLL = LoadLibrary("MyDLL.dll");

.
Summary
.

static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hReservedNull, LoadLibraryFlags dwFlags);

.

Private Shared Function LoadLibraryEx(lpFileName As String, hReservedNull As IntPtr, dwFlags As LoadLibraryFlags) As IntPtr

.

LoadLibraryFlags

.

If you only want to load resources from the library, specify LoadLibraryFlags.LoadLibraryAsDatafile as dwFlags. In this case, nothing is done to execute or prepare to execute the mapped file.

.

private static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hFile, uint dwFlags);

.

    System.IntPtr moduleHandle = LoadLibraryEx(libPath, IntPtr.Zero, 0);

.

    public NativeLibraryHandle(string filename, LoadLibraryFlags flags) : base(IntPtr.Zero, true)

.

       base.SetHandle(LoadLibraryEx(filename, IntPtr.Zero, flags));

.

    static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hReservedNull, LoadLibraryFlags dwFlags);

.
Documentation
[LoadLibraryEx] on MSDN
.
Summary
.

static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hReservedNull, LoadLibraryFlags dwFlags);

.

Private Shared Function LoadLibraryEx(lpFileName As String, hReservedNull As IntPtr, dwFlags As LoadLibraryFlags) As IntPtr

.

LoadLibraryFlags

.

If you only want to load resources from the library, specify LoadLibraryFlags.LoadLibraryAsDatafile as dwFlags. In this case, nothing is done to execute or prepare to execute the mapped file.

.

private static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hFile, uint dwFlags);

.

    System.IntPtr moduleHandle = LoadLibraryEx(libPath, IntPtr.Zero, 0);

.

    public NativeLibraryHandle(string filename, LoadLibraryFlags flags) : base(IntPtr.Zero, true)

.

       base.SetHandle(LoadLibraryEx(filename, IntPtr.Zero, flags));

.

    static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hReservedNull, LoadLibraryFlags dwFlags);

.
Documentation
[LoadLibraryEx] on MSDN
.
Summary
.

Pretty straight-forward to use. Obviously, is usually going to be called before calling LoadLibraryEx().

Constants

.

        public const int TYPE_E_CANTLOADLIBRARY = (int)(0x80029C4A - 0x100000000);

coredll

.

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

.

internal static extern IntPtr LoadLibraryCE( string lpszLib );

.

Declare Function LoadLibraryW Lib "coredll.dll" (TODO) As TODO

.
Documentation
[LoadLibraryW] on MSDN

Enums

.

    public const int TYPE_E_CANTLOADLIBRARY = unchecked((int)0x80029C4A);

.

    Public Const TYPE_E_CANTLOADLIBRARY As Integer = CInt(&H80029c4aUI)

.
Summary
.

enum LoadLibraryFlags : uint

.

Enum LoadLibraryFlags As UInteger


 
Access PInvoke.net directly from VS: