コード例 #1
0
        public MemoryResourceNotification(MemoryResourceNotificationType type)
        {
            var handle = NativeMethods.CreateMemoryResourceNotification(type);

            if (handle == IntPtr.Zero)
            {
                throw new Win32Exception();
            }

            SafeWaitHandle = new SafeWaitHandle(handle, true);
        }
コード例 #2
0
 public static extern IntPtr CreateMemoryResourceNotification(MemoryResourceNotificationType type);