Example #1
0
 public Win32Resources(string module)
 {
     _moduleHandle = Kernel32.LoadLibraryEx(module, IntPtr.Zero,
         Kernel32.LoadLibraryExFlags.LoadLibraryAsDatafile);
     if (_moduleHandle.IsInvalid)
         throw new Win32Exception(Marshal.GetLastWin32Error());
 }
Example #2
0
 public static extern int LoadString(SafeModuleHandle hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax);