9 references to SafeLibraryHandle
System (9)
compmod\microsoft\win32\safehandles\SafeLibraryHandle.cs (1)
39
internal static extern
SafeLibraryHandle
LoadLibraryEx(string libFilename, IntPtr reserved, int flags);
compmod\microsoft\win32\SafeNativeMethods.cs (1)
106
public static unsafe extern int FormatMessage(int dwFlags,
SafeLibraryHandle
lpSource, uint dwMessageId,
services\monitoring\system\diagnosticts\EventLog.cs (2)
1224
internal static string TryFormatMessage(
SafeLibraryHandle
hModule, uint messageNum, string[] insertionStrings) {
1281
internal static string UnsafeTryFormatMessage(
SafeLibraryHandle
hModule, uint messageNum, string[] insertionStrings) {
services\monitoring\system\diagnosticts\EventLogInternal.cs (5)
689
foreach (
SafeLibraryHandle
handle in messageLibraries.Values)
837
SafeLibraryHandle
hModule = null;
842
hModule = MessageLibraries[dllName] as
SafeLibraryHandle
;
845
hModule =
SafeLibraryHandle
.LoadLibraryEx(dllName, IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE);
850
hModule =
SafeLibraryHandle
.LoadLibraryEx(dllName, IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE);