This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from mckunda/feature/add-get-set-handle-info
Add `kernel32!SetHandleInformation` and `kernel32!GetHandleInformation`
- Loading branch information
Showing
5 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) All contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace PInvoke | ||
{ | ||
using System; | ||
|
||
/// <content> | ||
/// Contains the nested <see cref="HandleFlags"/> type. | ||
/// </content> | ||
public static partial class Kernel32 | ||
{ | ||
[Flags] | ||
public enum HandleFlags | ||
{ | ||
/// <summary> | ||
/// Indicates that none of the flags are set. | ||
/// </summary> | ||
/// <remarks> | ||
/// This value is not defined in Win32 API headers. | ||
/// </remarks> | ||
HANDLE_FLAG_NONE = 0, | ||
|
||
/// <summary> | ||
/// If this flag is set, a child process created with the bInheritHandles parameter of CreateProcess set to TRUE will inherit the object handle. | ||
/// </summary> | ||
HANDLE_FLAG_INHERIT = 0x00000001, | ||
|
||
/// <summary> | ||
/// If this flag is set, calling the <see cref="CloseHandle"/> function will not close the object handle. | ||
/// </summary> | ||
HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x00000002 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters