From dd63276dae89412029e7589df0dded043c9a8601 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Mon, 23 Sep 2024 10:22:59 -0700 Subject: [PATCH] Add NativeAnnotationAttribute to the metadata file --- generation/WinSDK/manual/Metadata.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/generation/WinSDK/manual/Metadata.cs b/generation/WinSDK/manual/Metadata.cs index 50759616..33e26afe 100644 --- a/generation/WinSDK/manual/Metadata.cs +++ b/generation/WinSDK/manual/Metadata.cs @@ -157,6 +157,14 @@ public MetadataTypedefAttribute() } } +[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)] +public class NativeAnnotationAttribute : Attribute +{ + public NativeAnnotationAttribute(string annotation) + { + } +} + public class NativeArrayInfoAttribute : Attribute { // @@ -342,4 +350,4 @@ public class UnicodeAttribute : Attribute public UnicodeAttribute() { } -} \ No newline at end of file +}