Skip to content

Commit

Permalink
Update the file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardobaginskicosta committed Jun 23, 2024
1 parent 142c280 commit 0621ef6
Show file tree
Hide file tree
Showing 67 changed files with 1,840 additions and 6,078 deletions.
12 changes: 5 additions & 7 deletions NuGet/.nuspec → Package/.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<metadata>
<title>ThirtyTwo.Kernel32</title>
<id>ThirtyTwo.Kernel32</id>
<version>1.0.0.2</version>
<version>1.0.0.3</version>
<description>Windows API Kernel32 interop library for the .NET Framework.</description>
<authors>Eduardo Baginski Costa, ThirtyTwo Interops</authors>
<owners>eduardobcosta</owners>
<readme>README.md</readme>

<tags>win32 win32api kernel32 kernel32dll thirtytwo interoperability interop</tags>

<icon>.\NuGet.png</icon>
<icon>.\icon.png</icon>
<projectUrl>https://github.com/thirtytwointerops/kernel32</projectUrl>
<repository type="git" url="https://github.com/thirtytwointerops/kernel32.git" branch="main" />
<copyright>Copyright © 2024 ThirtyTwo Interops</copyright>
<copyright>Copyright © 2024 ThirtyTwo Interops and Novus Inspire</copyright>

<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">MIT</license>
Expand All @@ -25,11 +25,9 @@
</metadata>

<files>
<file src=".\NuGet.png" target="" />
<file src=".\icon.png" target="" />
<file src="README.md" target="" />

<file src="..\ThirtyTwo\bin\Release\ThirtyTwo.Kernel32.dll" target="lib\net40\" />
<file src="..\ThirtyTwo\bin\Release\ThirtyTwo.Kernel32.pdb" target="lib\net40\" />
<file src="..\ThirtyTwo\bin\Release\ThirtyTwo.Kernel32.xml" target="lib\net40\" />
<file src="..\Source\bin\Release\ThirtyTwo.Kernel32.dll" target="lib\net40\" />
</files>
</package>
4 changes: 2 additions & 2 deletions NuGet/README.md → Package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ We interoperate all Kernel32 methods, structures, and enumerations from the Wind

<p>
<b>
Maintained by <a href="https://github.com/eduardobaginskicosta" alt="Eduardo Baginski Costa profile">@eduardobaginskicosta</a>
</b>.
Maintained by <a href="https://github.com/eduardobaginskicosta" alt="Eduardo Baginski Costa profile">Eduardo Baginski Costa</a> and <a href="https://www.linkedin.com/company/novusinspire/">Novus Inspire</a>.
</b>
</p>
File renamed without changes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<!-- === -->

<h1>ThirtyTwo Interops • Kernel32</h1>
<h1>Kernel32</h1>

## 📘 Get Started

Expand Down
9 changes: 9 additions & 0 deletions Source/Enumerations/AccessRights.cs
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,
}
}
34 changes: 34 additions & 0 deletions Source/Enumerations/CharacterAttributes.cs
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,
}
}
10 changes: 10 additions & 0 deletions Source/Enumerations/ConsoleDisplayMode.cs
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,
}
}
24 changes: 24 additions & 0 deletions Source/Enumerations/ConsoleMode.cs
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,
}
}
9 changes: 9 additions & 0 deletions Source/Enumerations/ConsoleReadingBehavior.cs
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,
}
}
10 changes: 10 additions & 0 deletions Source/Enumerations/ConsoleStandardDevice.cs
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,
}
}
14 changes: 14 additions & 0 deletions Source/Enumerations/ConsoleWindowEvent.cs
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,
}
}
12 changes: 12 additions & 0 deletions Source/Enumerations/ControlEvent.cs
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,
}
}
11 changes: 11 additions & 0 deletions Source/Enumerations/InputRecordEventType.cs
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,
}
}
16 changes: 16 additions & 0 deletions Source/Enumerations/ModifierKeyState.cs
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,
}
}
12 changes: 12 additions & 0 deletions Source/Enumerations/MouseButtonState.cs
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,
}
}
11 changes: 11 additions & 0 deletions Source/Enumerations/MouseEvent.cs
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,
}
}
9 changes: 9 additions & 0 deletions Source/Enumerations/PseudoConsoleCreationOption.cs
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,
}
}
18 changes: 18 additions & 0 deletions Source/Enumerations/ResultHandle.cs
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,
}
}
21 changes: 21 additions & 0 deletions Source/Enumerations/SecurityDescriptorControl.cs
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,
}
}
12 changes: 12 additions & 0 deletions Source/Enumerations/SelectionIndicator.cs
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,
}
}
9 changes: 9 additions & 0 deletions Source/Enumerations/ShareMode.cs
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,
}
}
Loading

0 comments on commit 0621ef6

Please sign in to comment.