/// <summary> /// Sets certain information about the handle. /// </summary> /// <param name="mask">Specifies which flags to set.</param> /// <param name="flags">The values of the flags to set.</param> public void SetHandleInformation(HANDLE_FLAGS mask, HANDLE_FLAGS flags) { if (!Win32.SetHandleInformation(this, mask, flags)) { ThrowLastWin32Error(); } }
private static void SetHandleInformationNetEx(IntPtr hObject, HANDLE_FLAGS dwMask, HANDLE_FLAGS dwFlags) { if (!SetHandleInformation(hObject, dwMask, dwFlags)) { throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()); } }
public static extern bool SetHandleInformation(IntPtr hObject, HANDLE_FLAGS dwMask, HANDLE_FLAGS dwFlags);
public static extern bool GetHandleInformation( [In] IntPtr hObject, out HANDLE_FLAGS lpdwFlags );
public static extern bool GetHandleInformation(int handle, out HANDLE_FLAGS flags);
public static extern bool SetHandleInformation(int handle, HANDLE_FLAGS mask, HANDLE_FLAGS flags);
private static extern bool SetHandleInformation(SafeFileHandle hObject, HANDLE_FLAGS dwMask, uint flags);
/// <summary> /// Sets certain information about the handle. /// </summary> /// <param name="mask">Specifies which flags to set.</param> /// <param name="flags">The values of the flags to set.</param> public void SetHandleInformation(HANDLE_FLAGS mask, HANDLE_FLAGS flags) { if (!Win32.SetHandleInformation(this, mask, flags)) ThrowLastWin32Error(); }
static extern bool SetHandleInformation(IntPtr hObject, HANDLE_FLAGS dwMask, HANDLE_FLAGS dwFlags);
private static extern bool SetHandleInformation(SafeFileHandle hObject, HANDLE_FLAGS dwMask, uint flags);
public static extern bool GetHandleInformation(int handle, out HANDLE_FLAGS flags);
public static extern bool SetHandleInformation(int handle, HANDLE_FLAGS mask, HANDLE_FLAGS flags);