-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
142c280
commit 0621ef6
Showing
67 changed files
with
1,840 additions
and
6,078 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
File renamed without changes
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
<!-- === --> | ||
|
||
<h1>ThirtyTwo Interops • Kernel32</h1> | ||
<h1>Kernel32</h1> | ||
|
||
## 📘 Get Started | ||
|
||
|
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,9 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum AccessRights : long | ||
{ | ||
GenericRead = 0x80000000L, | ||
GenericWrite = 0x40000000L, | ||
} | ||
} |
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,34 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum CharacterAttributes : ushort | ||
{ | ||
ForegroundBlue = 0x0001, | ||
ForegroundGreen = 0x0002, | ||
ForegroundRed = 0x0004, | ||
ForegroundIntensity = 0x0008, | ||
|
||
// @ | ||
|
||
BackgroundBlue = 0x0010, | ||
BackgroundGreen = 0x0020, | ||
BackgroundRed = 0x0040, | ||
BackgroundIntensity = 0x0080, | ||
|
||
// @ | ||
|
||
CommonLVBLeadingByte = 0x0100, | ||
CommonLVBTrailingByte = 0x0200, | ||
|
||
// @ | ||
|
||
CommonGridHorizontal = 0x0400, | ||
CommonGridLeftVertical = 0x0800, | ||
CommonGridRightVertical = 0x1000, | ||
|
||
// @ | ||
|
||
CommonLVBReverseVideo = 0x4000, | ||
CommonLVBUnderscore = 0x8000, | ||
} | ||
} |
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,10 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ConsoleDisplayMode : uint | ||
{ | ||
FullScreen = 1, | ||
FullScreenHardware = 2, | ||
Windowed = 2, | ||
} | ||
} |
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,24 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ConsoleMode : uint | ||
{ | ||
EnableEchoInput = 0x0004, | ||
EnableInsertMode = 0x0020, | ||
EnableLineInput = 0x0002, | ||
EnableMouseInput = 0x0010, | ||
EnableProcessedInput = 0x0001, | ||
EnableQuickEditMode = 0x0040, | ||
EnableExtendedFlags = 0x0080, | ||
EnableWindowInput = 0x0008, | ||
EnableVirtualTerminalInput = 0x0200, | ||
|
||
// @ | ||
|
||
EnableProcessedOutput = 0x0001, | ||
EnableWrapAtEOLOutput = 0x0002, | ||
EnableVirtualTerminalProcessing = 0x0004, | ||
DisableNewLineAutoReturn = 0x0008, | ||
EnableLVBGridWorldWide = 0x0010, | ||
} | ||
} |
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,9 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ConsoleReadingBehavior : ushort | ||
{ | ||
NoRemove = 0x0001, | ||
NoWait = 0x0002, | ||
} | ||
} |
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,10 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ConsoleStandardDevice : int | ||
{ | ||
InputHandle = -10, | ||
OutputHandle = -11, | ||
ErrorHandle = -12, | ||
} | ||
} |
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,14 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ConsoleWindowEvent : int | ||
{ | ||
Caret = 0x4001, | ||
EndApplication = 0x4007, | ||
Layout = 0x4005, | ||
StartApplication = 0x4006, | ||
UpdateRegion = 0x4002, | ||
UpdateScroll = 0x4004, | ||
UpdateSimple = 0x4003, | ||
} | ||
} |
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,12 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ControlEvent : uint | ||
{ | ||
CtrlC = 0, | ||
CtrlBreak = 1, | ||
CtrlClose = 2, | ||
CtrlLogoff = 5, | ||
CtrlShutdown = 6, | ||
} | ||
} |
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,11 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
public enum InputRecordEventType : ushort | ||
{ | ||
Focus = 0x0010, | ||
Key = 0x0001, | ||
Menu = 0x0008, | ||
Mouse = 0x0002, | ||
WindowBufferSize = 0x0004, | ||
} | ||
} |
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,16 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ModifierKeyState : uint | ||
{ | ||
CapsLockOn = 0x0080, | ||
EnhancedKey = 0x0100, | ||
LeftAltPressed = 0x0002, | ||
LeftCtrlPressed = 0x0008, | ||
NumLockOn = 0x0020, | ||
RightAltPressed = 0x0001, | ||
RightCtrlPressed = 0x0004, | ||
ScrollLockOn = 0x0040, | ||
ShiftPressed = 0x0010, | ||
} | ||
} |
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,12 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum MouseButtonState : uint | ||
{ | ||
FromLeft1stButtonPressed = 0x0001, | ||
FromLeft2ndButtonPressed = 0x0004, | ||
FromLeft3rdButtonPressed = 0x0008, | ||
FromLeft4thButtonPressed = 0x0010, | ||
RightmostButtonPressed = 0x0002, | ||
} | ||
} |
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,11 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum MouseEvent : uint | ||
{ | ||
DoubleClick = 0x0002, | ||
HorizontalWheeled = 0x0008, | ||
Moved = 0x0001, | ||
VerticalWheeled = 0x0004, | ||
} | ||
} |
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,9 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum PseudoConsoleCreationOption : uint | ||
{ | ||
Standard = 0, | ||
InheritCursor = 1, | ||
} | ||
} |
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,18 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ResultHandle : uint | ||
{ | ||
Ok = 0x00000000, | ||
Abort = 0x80004004, | ||
AccessDenied = 0x80070005, | ||
Fail = 0x80004005, | ||
Handle = 0x80070006, | ||
InvalidArgument = 0x80070057, | ||
NoInterface = 0x80004002, | ||
NotImplemented = 0x80004001, | ||
OutOfMemory = 0x8007000E, | ||
Pointer = 0x80004003, | ||
Unexpected = 0x8000FFFF, | ||
} | ||
} |
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,21 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum SecurityDescriptorControl : uint | ||
{ | ||
OwnerDefaulted = 0x0001, | ||
GroupDefaulted = 0x0002, | ||
DACLPresent = 0x0004, | ||
DACLDefaulted = 0x0008, | ||
SACLPresent = 0x0010, | ||
SACLDefaulted = 0x0020, | ||
DACLAutoInheritRequired = 0x0100, | ||
SACLAutoInheritRequired = 0x0200, | ||
DACLAutoInherit = 0x0400, | ||
SACLAutoInherit = 0x0800, | ||
DACLProtected = 0x1000, | ||
SACLProtected = 0x2000, | ||
ResourceManagerControlValid = 0x4000, | ||
SelfRelative = 0x8000, | ||
} | ||
} |
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,12 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum SelectionIndicator : uint | ||
{ | ||
MouseDown = 0x0008, | ||
MouseSelection = 0x0004, | ||
NoSelection = 0x0000, | ||
SelectionInProgress = 0x0001, | ||
SelectionNotEmpty = 0x0002, | ||
} | ||
} |
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,9 @@ | ||
namespace ThirtyTwo.Kernel32.Enumerations | ||
{ | ||
[System.Flags] | ||
public enum ShareMode : long | ||
{ | ||
Read = 0x00000001, | ||
Write = 0x00000002, | ||
} | ||
} |
Oops, something went wrong.