Skip to content

Commit

Permalink
Merge pull request #174 from tannergooding/main
Browse files Browse the repository at this point in the history
Regenerating bindings with the latest version of ClangSharp
  • Loading branch information
tannergooding authored Feb 12, 2021
2 parents 48dfdb3 + c20a2e7 commit 6c19a54
Show file tree
Hide file tree
Showing 93 changed files with 794 additions and 162 deletions.
9 changes: 6 additions & 3 deletions generation/remap.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -2364,6 +2364,8 @@ _PROCESSOR_POWER_POLICY_INFO=PROCESSOR_POWER_POLICY_INFO
_PROCESSOR_RELATIONSHIP=PROCESSOR_RELATIONSHIP
_PROCESS_DYNAMIC_EH_CONTINUATION_TARGET=PROCESS_DYNAMIC_EH_CONTINUATION_TARGET
_PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION=PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION
_PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE=PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE
_PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION=PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION
_PROCESS_HEAP_ENTRY=PROCESS_HEAP_ENTRY
_PROCESS_INFORMATION=PROCESS_INFORMATION
_PROCESS_INFORMATION_CLASS=PROCESS_INFORMATION_CLASS
Expand Down Expand Up @@ -2824,6 +2826,7 @@ _SYSTEM_INFO=SYSTEM_INFO
_SYSTEM_LOGICAL_PROCESSOR_INFORMATION=SYSTEM_LOGICAL_PROCESSOR_INFORMATION
_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX=SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
_SYSTEM_MANDATORY_LABEL_ACE=SYSTEM_MANDATORY_LABEL_ACE
_SYSTEM_POOL_ZEROING_INFORMATION=SYSTEM_POOL_ZEROING_INFORMATION
_SYSTEM_POWER_POLICY=SYSTEM_POWER_POLICY
_SYSTEM_POWER_STATE=SYSTEM_POWER_STATE
_SYSTEM_POWER_STATUS=SYSTEM_POWER_STATUS
Expand Down Expand Up @@ -3307,9 +3310,9 @@ __AnonymousBase_dwrite_3_L1623_C31=Base
__AnonymousBase_dwrite_3_L1802_C34=Base
__AnonymousBase_ObjIdl_L8451_C36=Base
__AnonymousBase_ObjIdl_L8475_C36=Base
__AnonymousBase_WinUser_L1173_C46=Base
__AnonymousBase_WinUser_L13554_C43=Base
__AnonymousBase_WinUser_L13558_C43=Base
__AnonymousBase_WinUser_L1166_C46=Base
__AnonymousBase_WinUser_L13548_C43=Base
__AnonymousBase_WinUser_L13552_C43=Base
__AnonymousEnum_d2d1_L89_C1=D2D1_INTERPOLATION_MODE_DEFINITION
__AnonymousRecord_roapi_L45_C9*=IntPtr
__MFAYUVSample=MFAYUVSample
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Generate() {
$generationDir = Join-Path -Path $RepoRoot -ChildPath "generation"
$generateRspFiles = Get-ChildItem -Path "$generationDir" -Recurse -Filter "generate.rsp"

$generateRspFiles | ForEach-Object -Process {
$generateRspFiles | ForEach-Object -Parallel {
Push-Location -Path $_.DirectoryName
& ClangSharpPInvokeGenerator "@generate.rsp"
Pop-Location
Expand Down
3 changes: 3 additions & 0 deletions sources/Interop/Windows/shared/ntstatus/Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3250,6 +3250,9 @@ public static partial class Windows
[NativeTypeName("#define STATUS_CASE_SENSITIVE_PATH ((NTSTATUS)0xC00004BAL)")]
public const int STATUS_CASE_SENSITIVE_PATH = unchecked((int)(0xC00004BA));

[NativeTypeName("#define STATUS_HAS_SYSTEM_CRITICAL_FILES ((NTSTATUS)0xC00004BDL)")]
public const int STATUS_HAS_SYSTEM_CRITICAL_FILES = unchecked((int)(0xC00004BD));

[NativeTypeName("#define STATUS_INVALID_TASK_NAME ((NTSTATUS)0xC0000500L)")]
public const int STATUS_INVALID_TASK_NAME = unchecked((int)(0xC0000500));

Expand Down
15 changes: 15 additions & 0 deletions sources/Interop/Windows/shared/winerror/Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,18 @@ public static int HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint x)
[NativeTypeName("#define ERROR_UNEXPECTED_NTCACHEMANAGER_ERROR 443L")]
public const int ERROR_UNEXPECTED_NTCACHEMANAGER_ERROR = 443;

[NativeTypeName("#define ERROR_LINUX_SUBSYSTEM_UPDATE_REQUIRED 444L")]
public const int ERROR_LINUX_SUBSYSTEM_UPDATE_REQUIRED = 444;

[NativeTypeName("#define ERROR_DLP_POLICY_WARNS_AGAINST_OPERATION 445L")]
public const int ERROR_DLP_POLICY_WARNS_AGAINST_OPERATION = 445;

[NativeTypeName("#define ERROR_DLP_POLICY_DENIES_OPERATION 446L")]
public const int ERROR_DLP_POLICY_DENIES_OPERATION = 446;

[NativeTypeName("#define ERROR_DLP_POLICY_SILENTLY_FAIL 449L")]
public const int ERROR_DLP_POLICY_SILENTLY_FAIL = 449;

[NativeTypeName("#define ERROR_CAPAUTHZ_NOT_DEVUNLOCKED 450L")]
public const int ERROR_CAPAUTHZ_NOT_DEVUNLOCKED = 450;

Expand Down Expand Up @@ -1534,6 +1546,9 @@ public static int HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint x)
[NativeTypeName("#define ERROR_INVALID_ADDRESS 487L")]
public const int ERROR_INVALID_ADDRESS = 487;

[NativeTypeName("#define ERROR_HAS_SYSTEM_CRITICAL_FILES 488L")]
public const int ERROR_HAS_SYSTEM_CRITICAL_FILES = 488;

[NativeTypeName("#define ERROR_VRF_CFG_AND_IO_ENABLED 1183L")]
public const int ERROR_VRF_CFG_AND_IO_ENABLED = 1183;

Expand Down
14 changes: 7 additions & 7 deletions sources/Interop/Windows/um/WinBase/COPYFILE2_MESSAGE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@ public partial struct COPYFILE2_MESSAGE
[NativeTypeName("DWORD")]
public uint dwPadding;

[NativeTypeName("union (anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5659:5)")]
[NativeTypeName("union (anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5729:5)")]
public _Info_e__Union Info;

[StructLayout(LayoutKind.Explicit)]
public partial struct _Info_e__Union
{
[FieldOffset(0)]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5661:9)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5731:9)")]
public _ChunkStarted_e__Struct ChunkStarted;

[FieldOffset(0)]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5672:9)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5742:9)")]
public _ChunkFinished_e__Struct ChunkFinished;

[FieldOffset(0)]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5685:9)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5755:9)")]
public _StreamStarted_e__Struct StreamStarted;

[FieldOffset(0)]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5694:9)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5764:9)")]
public _StreamFinished_e__Struct StreamFinished;

[FieldOffset(0)]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5705:9)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5775:9)")]
public _PollContinue_e__Struct PollContinue;

[FieldOffset(0)]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5709:9)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:5779:9)")]
public _Error_e__Struct Error;

public partial struct _ChunkStarted_e__Struct
Expand Down
2 changes: 1 addition & 1 deletion sources/Interop/Windows/um/WinBase/FILE_ID_DESCRIPTOR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial struct FILE_ID_DESCRIPTOR

public FILE_ID_TYPE Type;

[NativeTypeName("FILE_ID_DESCRIPTOR::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9069:5)")]
[NativeTypeName("FILE_ID_DESCRIPTOR::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9139:5)")]
public _Anonymous_e__Union Anonymous;

public ref LARGE_INTEGER FileId
Expand Down
10 changes: 5 additions & 5 deletions sources/Interop/Windows/um/WinBase/FILE_REMOTE_PROTOCOL_INFO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public partial struct FILE_REMOTE_PROTOCOL_INFO
[NativeTypeName("ULONG")]
public uint Flags;

[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9007:5)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9077:5)")]
public _GenericReserved_e__Struct GenericReserved;

[NativeTypeName("union (anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9020:5)")]
[NativeTypeName("union (anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9090:5)")]
public _ProtocolSpecific_e__Union ProtocolSpecific;

public unsafe partial struct _GenericReserved_e__Struct
Expand All @@ -49,7 +49,7 @@ public unsafe partial struct _GenericReserved_e__Struct
public unsafe partial struct _ProtocolSpecific_e__Union
{
[FieldOffset(0)]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9022:9)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9092:9)")]
public _Smb2_e__Struct Smb2;

[FieldOffset(0)]
Expand All @@ -58,10 +58,10 @@ public unsafe partial struct _ProtocolSpecific_e__Union

public partial struct _Smb2_e__Struct
{
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9024:13)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9094:13)")]
public _Server_e__Struct Server;

[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9028:13)")]
[NativeTypeName("struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:9098:13)")]
public _Share_e__Struct Share;

public partial struct _Server_e__Struct
Expand Down
2 changes: 1 addition & 1 deletion sources/Interop/Windows/um/WinBase/FILE_RENAME_INFO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TerraFX.Interop
{
public unsafe partial struct FILE_RENAME_INFO
{
[NativeTypeName("_FILE_RENAME_INFO::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:8783:5)")]
[NativeTypeName("_FILE_RENAME_INFO::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/WinBase.h:8853:5)")]
public _Anonymous_e__Union Anonymous;

public ref byte ReplaceIfExists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ public enum PROC_THREAD_ATTRIBUTE_NUM
ProcThreadAttributeSafeOpenPromptOriginClaim = 17,
ProcThreadAttributeDesktopAppPolicy = 18,
ProcThreadAttributePseudoConsole = 22,
ProcThreadAttributeMitigationAuditPolicy = 24,
}
}
Loading

0 comments on commit 6c19a54

Please sign in to comment.