Skip to content

Commit f8c5eb2

Browse files
committed
Add evntprov.h and documenttarget.h to Win32Extras
1 parent 081adb4 commit f8c5eb2

20 files changed

+7667
-20
lines changed

build/cache/win32extras.json.gz

0 Bytes
Binary file not shown.

generator.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,9 @@
10221022
"$windowsSdkDir/Include/$windowsSdkVersion/um/winnt.h",
10231023
"$windowsSdkDir/Include/$windowsSdkVersion/um/handleapi.h",
10241024
"$windowsSdkDir/Include/$windowsSdkVersion/um/fileapi.h",
1025-
"$windowsSdkDir/Include/$windowsSdkVersion/um/objidlbase.h"
1025+
"$windowsSdkDir/Include/$windowsSdkVersion/um/objidlbase.h",
1026+
"$windowsSdkDir/Include/$windowsSdkVersion/um/evntprov.h",
1027+
"$windowsSdkDir/Include/$windowsSdkVersion/um/documenttarget.h"
10261028
],
10271029
"classes": {
10281030
"win32extras.h": "[Core]Windows"
@@ -1394,7 +1396,8 @@
13941396
"controlDescriptors": [
13951397
"convert-windows-only",
13961398
"typemap-native",
1397-
"no-obsolete-enum"
1399+
"no-obsolete-enum",
1400+
"no-csproj"
13981401
],
13991402
"converter": {},
14001403
"prefix": "DWRITE_",
@@ -1455,7 +1458,8 @@
14551458
"D2D1_ALPHA_MODE",
14561459
"D2D1_PIXEL_FORMAT",
14571460
"ID2D1SimplifiedGeometrySink",
1458-
"_D3DCOLORVALUE"
1461+
"_D3DCOLORVALUE",
1462+
"IDWriteRenderingParams"
14591463
],
14601464
"rename": {
14611465
},
@@ -1470,7 +1474,7 @@
14701474
},
14711475
"output": {
14721476
"mode": "Default",
1473-
"path": "src/Microsoft",
1477+
"path": "src/Microsoft/Silk.NET.Direct2D",
14741478
"licenseFile": "build/LICENSE_HEADER.txt",
14751479
"props": "build/props/bindings.props"
14761480
},
@@ -1507,7 +1511,8 @@
15071511
"_FILETIME": "Silk.NET.Core.Win32Extras.Filetime",
15081512
"tagLOGFONTW": "void",
15091513
"tagLOGFONTA": "void",
1510-
"tagFONTSIGNATURE": "void"
1514+
"tagFONTSIGNATURE": "void",
1515+
"IDWriteRenderingParams": "Silk.NET.DirectWrite.IDWriteRenderingParams"
15111516
},
15121517
{
15131518
"$include.dxTypemap": "build/dx_typemap.json",
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
5+
using System;
6+
using Silk.NET.Core.Attributes;
7+
8+
#pragma warning disable 1591
9+
10+
namespace Silk.NET.Core.Win32Extras
11+
{
12+
[NativeName("Name", "PrintDocumentPackageCompletion")]
13+
public enum PrintDocumentPackageCompletion : int
14+
{
15+
[Obsolete("Deprecated in favour of \"InProgress\"")]
16+
[NativeName("Name", "PrintDocumentPackageCompletion_InProgress")]
17+
PrintDocumentPackageCompletionInProgress = 0x0,
18+
[Obsolete("Deprecated in favour of \"Completed\"")]
19+
[NativeName("Name", "PrintDocumentPackageCompletion_Completed")]
20+
PrintDocumentPackageCompletionCompleted = 0x1,
21+
[Obsolete("Deprecated in favour of \"Canceled\"")]
22+
[NativeName("Name", "PrintDocumentPackageCompletion_Canceled")]
23+
PrintDocumentPackageCompletionCanceled = 0x2,
24+
[Obsolete("Deprecated in favour of \"Failed\"")]
25+
[NativeName("Name", "PrintDocumentPackageCompletion_Failed")]
26+
PrintDocumentPackageCompletionFailed = 0x3,
27+
[NativeName("Name", "PrintDocumentPackageCompletion_InProgress")]
28+
InProgress = 0x0,
29+
[NativeName("Name", "PrintDocumentPackageCompletion_Completed")]
30+
Completed = 0x1,
31+
[NativeName("Name", "PrintDocumentPackageCompletion_Canceled")]
32+
Canceled = 0x2,
33+
[NativeName("Name", "PrintDocumentPackageCompletion_Failed")]
34+
Failed = 0x3,
35+
}
36+
}

src/Core/Silk.NET.Core.Win32Extras/Structs/EnableTraceParameters.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public EnableTraceParameters
2525
uint? enableProperty = null,
2626
uint? controlFlags = null,
2727
Guid? sourceId = null,
28-
EventFilterDescriptor* enableFilterDesc = null,
28+
_EVENT_FILTER_DESCRIPTOR* enableFilterDesc = null,
2929
uint? filterDescCount = null
3030
) : this()
3131
{
@@ -84,7 +84,7 @@ public EnableTraceParameters
8484
[NativeName("Type", "PEVENT_FILTER_DESCRIPTOR")]
8585
[NativeName("Type.Name", "PEVENT_FILTER_DESCRIPTOR")]
8686
[NativeName("Name", "EnableFilterDesc")]
87-
public EventFilterDescriptor* EnableFilterDesc;
87+
public _EVENT_FILTER_DESCRIPTOR* EnableFilterDesc;
8888

8989
[NativeName("Type", "ULONG")]
9090
[NativeName("Type.Name", "ULONG")]

src/Core/Silk.NET.Core.Win32Extras/Structs/EnableTraceParametersV1.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public EnableTraceParametersV1
2525
uint? enableProperty = null,
2626
uint? controlFlags = null,
2727
Guid? sourceId = null,
28-
EventFilterDescriptor* enableFilterDesc = null
28+
_EVENT_FILTER_DESCRIPTOR* enableFilterDesc = null
2929
) : this()
3030
{
3131
if (version is not null)
@@ -78,6 +78,6 @@ public EnableTraceParametersV1
7878
[NativeName("Type", "PEVENT_FILTER_DESCRIPTOR")]
7979
[NativeName("Type.Name", "PEVENT_FILTER_DESCRIPTOR")]
8080
[NativeName("Name", "EnableFilterDesc")]
81-
public EventFilterDescriptor* EnableFilterDesc;
81+
public _EVENT_FILTER_DESCRIPTOR* EnableFilterDesc;
8282
}
8383
}

src/Core/Silk.NET.Core.Win32Extras/Structs/EventTracePropertiesV2.gen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public EventTracePropertiesV2
4141
uint? loggerNameOffset = null,
4242
EventTracePropertiesV2Union2? anonymous2 = null,
4343
uint? filterDescCount = null,
44-
EventFilterDescriptor* filterDesc = null,
44+
_EVENT_FILTER_DESCRIPTOR* filterDesc = null,
4545
EventTracePropertiesV2Union3? anonymous3 = null,
4646
int? ageLimit = null,
4747
int? flushThreshold = null,
@@ -320,7 +320,7 @@ public EventTracePropertiesV2
320320
[NativeName("Type", "PEVENT_FILTER_DESCRIPTOR")]
321321
[NativeName("Type.Name", "PEVENT_FILTER_DESCRIPTOR")]
322322
[NativeName("Name", "FilterDesc")]
323-
public EventFilterDescriptor* FilterDesc;
323+
public _EVENT_FILTER_DESCRIPTOR* FilterDesc;
324324

325325
[NativeName("Type", "")]
326326
[NativeName("Type.Name", "__AnonymousRecord_evntrace_L1260_C5")]

0 commit comments

Comments
 (0)