public MemoryResourceNotification(MemoryResourceNotificationType type) { var handle = NativeMethods.CreateMemoryResourceNotification(type); if (handle == IntPtr.Zero) { throw new Win32Exception(); } SafeWaitHandle = new SafeWaitHandle(handle, true); }
public static extern IntPtr CreateMemoryResourceNotification(MemoryResourceNotificationType type);