Skip to content

Add ContainsInteriorPointers buffer metadata - #2355

Merged
Jevan Saks (jevansaks) merged 2 commits into
mainfrom
jevansaks-interior-pointer-metadata
Oct 6, 2026
Merged

Jevan Saks (jevansaks) merged 2 commits into
mainfrom
jevansaks-interior-pointer-metadata

Conversation

@jevansaks

@jevansaks Jevan Saks (jevansaks) commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Add Windows.Win32.Foundation.Metadata.ContainsInteriorPointersAttribute and 40 verified output-buffer annotations through the existing emitter.settings.rsp --memberRemap machinery. Amend the existing shift-left annotation proposal to propose the valueless parameter-prefix spelling _Win32_ContainsInteriorPointers_, placement/validation rules, the sidecar-to-header bridge, reviewed coverage, and exclusions.

Related: microsoft/CsWin32#1839. Coordinated consumer draft: microsoft/CsWin32#1840. This PR does not change the CsWin32 package version or implement the separate general header-annotation transport work.

Contract

This is a parameter-only, non-repeatable, non-inherited, valueless use-site annotation. A caller-owned output/inout buffer may contain absolute native pointers borrowing storage within that same containing allocation. Storage must remain alive and continuously at a stable address from native production through all pointer consumption/copying. Copying a record copies its addresses, not its pointees.

This is not a blanket annotation on pointer-bearing structures, native retention of an input buffer, allocation ownership/RAIIFree, or offset-based self-relative data. Information-level-dependent APIs are conservatively covered when some supported layouts contain interior pointers. The marker does not encode layouts, counts, success predicates, byte extents, or bounds. Native declarations and existing SAL-derived attributes remain unchanged. Consumers can retain native pointers and suppress unsafe movable-managed-buffer span/ref conveniences; no FixedSpan or other custom stable-span type is introduced.

The parameterless attribute is emitted by the existing generic custom-attribute writer; no special registry or scraper inference is needed. Its parameter custom-attribute blob is 01 00 00 00 (prolog, no constructor arguments, no named arguments).

Verified sidecar coverage

A/W means both declarations. Names are the selected SDK header identifiers, not necessarily the documentation's parameter spellings.

API Annotated parameter
AddJobA/W pData
EnumFormsA/W, GetFormA/W pForm
EnumJobsA/W, GetJobA/W pJob
EnumMonitorsA/W pMonitor
EnumPortsA/W pPort
EnumPrinterDataExA/W pEnumValues
EnumPrinterDriversA/W, GetPrinterDriverA/W, GetPrinterDriver2W pDriverInfo
EnumPrintersA/W pPrinterEnum
GetPrinterA/W pPrinter
EnumPrintProcessorDatatypesA/W pDatatypes
EnumPrintProcessorsA/W pPrintProcessorInfo
EnumServicesStatusExA/W lpServices
GetTokenInformation TokenInformation
GetCurrentPackageId, GetPackageId, PackageIdFromFullName buffer
GetCurrentPackageInfo, GetCurrentPackageInfo2, GetPackageInfo, GetPackageInfo2 buffer
GetPackageApplicationIds buffer

This is 29 printer use sites, two service use sites, one token use site, and eight package use sites. Authoritative documentation links and the layout rationale are recorded beside the sidecars and in the existing specification. The emitted-winmd inventory test checks all 40 exact API/parameter pairs and rejects unexpected targets or valued/duplicate markers.

Exclusions and limitations

  • GetPackagesByPackageFamily and FindPackagesByPackageFamily remain an uncovered projection hazard. Their separate packageFullNames pointer array borrows strings from a companion UTF-16 buffer. The string buffer contains no pointers, and the pointer array does not point into its own allocation. This single-buffer marker cannot honestly express that cross-parameter relationship; neither parameter is misannotated. A future provenance annotation must identify both parameters and constrain projections of the borrowed string storage.
  • GetPackageApplicationIds is different: its pointer table and app-ID strings occupy the same single byte buffer, so it is included.
  • GetPrinterDriver2A is documented to always return ERROR_NOT_SUPPORTED; only W has a verified output contract.
  • GetCurrentPackageInfo3 is deferred: its currently declared discriminator is PackageInfo3Type_PackageInfoGeneration, while public documentation mixes generation-ID and PACKAGE_INFO array descriptions. A clarified supported pointer-bearing contract is needed. GetPackageInfo3 and numbered FindPackagesByPackageFamily variants are not declared in the selected headers and are not invented here.
  • Flat strings/MULTI_SZ/registry data, separately owned allocations, pointer-bearing input records, and offset-only data are not blanket-annotated. This inventory is reviewed initial coverage, not exhaustive discovery of all Win32 interior-pointer APIs.
  • Header macro transport/ingestion is separate work. This PR proposes its spelling and strict placement/validation contract, and keeps working sidecars until that support ships; it does not claim the current ClangSharp scraper ingests the new header macro.

Validation

  • Built BuildTools and scraped the complete selected SDK in crossarch mode (x86/x64/arm64 representations), then emitted the annotated winmd successfully.
  • All 23 Windows.Win32.Tests passed, including the new attribute/inventory/exclusion checks, NoSuggestedRemappings, existing integrity tests, and interface layouts. The eight ClangSharpSourceToWinmd tests also passed during the toolchain baseline check.
  • Built a fresh unmodified-HEAD winmd from the same scraped sources and compared sorted declarations. Removing exactly the new attribute definition and 40 parameter markers reproduces the baseline byte-for-byte: no other declaration, native type, P/Invoke flag, or existing attribute changed.
  • Ran scripts\DiffWinmdToBaseline.ps1 -SkipInstallTools against the last release. That historical comparison includes existing branch changes; the fresh HEAD comparison isolates this PR's delta.
  • Native read-only containment probes confirmed GetPackageApplicationIds' pointer table, GetPackageInfo/PackageIdFromFullName strings, EnumFormsW names (174 records on this machine), and GetTokenInformation(TokenUser)'s SID reside within their caller-owned buffers.
  • NBGV_GitEngine=Disabled was set before dotnet commands as requested. This repository's pinned NBGV 3.5.119 rejects that engine value; local commands used explicit -p:NBGV_GitEngine=Managed for compatibility. No dependency/versioning configuration was changed.
  • Existing scrape warnings about cross-partition remaps and the WebAuthn crossarch optimization are unchanged; no metadata errors were suppressed. git diff --check passed.

Coordinated CsWin32 end-to-end check

The CsWin32 consumer session verified the final annotated artifact (SHA256 087FF816C74B318565D3A2E0F43224DF9E463C9D5BA4865258870B0418B5D7D8) with actual .NET 8 Span-capable references. Generating all 12 user-minimum APIs plus EnumServicesStatusEx preserved native pointer buffers and explicit capacities in all 28 annotated declarations. All 15 formerly generated span overloads now use pointers, including EnumPorts::pPort; unrelated SafeHandle/string/in/ref/out projections remain. Both the baseline and annotated generated outputs compiled with zero warnings/errors. This representative check used the local winmd artifact without changing the consumer's MetadataVersion.

Add the parameter-only ContainsInteriorPointers metadata contract, 40 verified sidecar use sites, winmd regression coverage, and the proposed header spelling.

Co-authored-by: Copilot App <[email protected]>
Consolidate the proposed attribute transport in the solution matrix and distinguish byte capacity, initialized byte extent, and printer record counts.

Co-authored-by: Copilot App <[email protected]>
@jevansaks
Jevan Saks (jevansaks) enabled auto-merge (squash) October 6, 2026 23:00
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

📋 API Surface Diff

+49 additions / -40 deletions vs main branch (full validation run)

Click to expand API diff
diff --git "a/bin\\baseline.apidump.cs" "b/bin\\current.apidump.cs"
index 0cade26f..26c1c517 100644
--- "a/bin\\baseline.apidump.cs"
+++ "b/bin\\current.apidump.cs"
@@ -113513,6 +113513,18 @@ using System.Runtime.InteropServices;
 
 namespace Windows.Win32.Foundation.Metadata;
 
+[StructLayout (LayoutKind.Auto, CharSet = CharSet.Auto)]
+[AttributeUsage (AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
+public sealed class ContainsInteriorPointersAttribute : Attribute
+{
+	public extern ContainsInteriorPointersAttribute ();
+}
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Windows.Win32.Foundation.Metadata;
+
 [StructLayout (LayoutKind.Auto, CharSet = CharSet.Auto)]
 [AttributeUsage (AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = false)]
 [ComVisible (true)]
@@ -223206,12 +223218,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprinters")]
-	public unsafe static extern BOOL EnumPrintersA ([In] uint Flags, [Optional][In][Const] PSTR Name, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pPrinterEnum, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrintersA ([In] uint Flags, [Optional][In][Const] PSTR Name, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pPrinterEnum, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprinters")]
-	public unsafe static extern BOOL EnumPrintersW ([In] uint Flags, [Optional][In][Const] PWSTR Name, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pPrinterEnum, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrintersW ([In] uint Flags, [Optional][In][Const] PWSTR Name, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pPrinterEnum, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getspoolfilehandle")]
@@ -223258,22 +223270,22 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getjob")]
-	public unsafe static extern BOOL GetJobA ([In] PRINTER_HANDLE hPrinter, [In] uint JobId, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetJobA ([In] PRINTER_HANDLE hPrinter, [In] uint JobId, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getjob")]
-	public unsafe static extern BOOL GetJobW ([In] PRINTER_HANDLE hPrinter, [In] uint JobId, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetJobW ([In] PRINTER_HANDLE hPrinter, [In] uint JobId, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumjobs")]
-	public unsafe static extern BOOL EnumJobsA ([In] PRINTER_HANDLE hPrinter, [In] uint FirstJob, [In] uint NoJobs, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 5)] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumJobsA ([In] PRINTER_HANDLE hPrinter, [In] uint FirstJob, [In] uint NoJobs, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 5)][ContainsInteriorPointers] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumjobs")]
-	public unsafe static extern BOOL EnumJobsW ([In] PRINTER_HANDLE hPrinter, [In] uint FirstJob, [In] uint NoJobs, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 5)] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumJobsW ([In] PRINTER_HANDLE hPrinter, [In] uint FirstJob, [In] uint NoJobs, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 5)][ContainsInteriorPointers] byte* pJob, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
@@ -223302,12 +223314,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getprinter")]
-	public unsafe static extern BOOL GetPrinterA ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pPrinter, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetPrinterA ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pPrinter, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getprinter")]
-	public unsafe static extern BOOL GetPrinterW ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pPrinter, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetPrinterW ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pPrinter, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
@@ -223332,22 +223344,22 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprinterdrivers")]
-	public unsafe static extern BOOL EnumPrinterDriversA ([Optional][In][Const] PSTR pName, [Optional][In][Const] PSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrinterDriversA ([Optional][In][Const] PSTR pName, [Optional][In][Const] PSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprinterdrivers")]
-	public unsafe static extern BOOL EnumPrinterDriversW ([Optional][In][Const] PWSTR pName, [Optional][In][Const] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrinterDriversW ([Optional][In][Const] PWSTR pName, [Optional][In][Const] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getprinterdriver")]
-	public unsafe static extern BOOL GetPrinterDriverA ([In] PRINTER_HANDLE hPrinter, [Optional][In][Const] PSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetPrinterDriverA ([In] PRINTER_HANDLE hPrinter, [Optional][In][Const] PSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getprinterdriver")]
-	public unsafe static extern BOOL GetPrinterDriverW ([In] PRINTER_HANDLE hPrinter, [Optional][In][Const] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetPrinterDriverW ([In] PRINTER_HANDLE hPrinter, [Optional][In][Const] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
@@ -223392,12 +223404,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprintprocessors")]
-	public unsafe static extern BOOL EnumPrintProcessorsA ([Optional][In][Const] PSTR pName, [Optional][In][Const] PSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pPrintProcessorInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrintProcessorsA ([Optional][In][Const] PSTR pName, [Optional][In][Const] PSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pPrintProcessorInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprintprocessors")]
-	public unsafe static extern BOOL EnumPrintProcessorsW ([Optional][In][Const] PWSTR pName, [Optional][In][Const] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pPrintProcessorInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrintProcessorsW ([Optional][In][Const] PWSTR pName, [Optional][In][Const] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pPrintProcessorInfo, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
@@ -223412,12 +223424,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprintprocessordatatypes")]
-	public unsafe static extern BOOL EnumPrintProcessorDatatypesA ([Optional][In][Const] PSTR pName, [In][Const] PSTR pPrintProcessorName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pDatatypes, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrintProcessorDatatypesA ([Optional][In][Const] PSTR pName, [In][Const] PSTR pPrintProcessorName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pDatatypes, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprintprocessordatatypes")]
-	public unsafe static extern BOOL EnumPrintProcessorDatatypesW ([Optional][In][Const] PWSTR pName, [In][Const] PWSTR pPrintProcessorName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pDatatypes, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPrintProcessorDatatypesW ([Optional][In][Const] PWSTR pName, [In][Const] PWSTR pPrintProcessorName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pDatatypes, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
@@ -223470,12 +223482,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/addjob")]
-	public unsafe static extern BOOL AddJobA ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pData, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL AddJobA ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pData, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/addjob")]
-	public unsafe static extern BOOL AddJobW ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pData, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL AddJobW ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pData, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/schedulejob")]
@@ -223541,12 +223553,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprinterdataex")]
-	public unsafe static extern uint EnumPrinterDataExA ([In] PRINTER_HANDLE hPrinter, [In][Const] PSTR pKeyName, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pEnumValues, [In] uint cbEnumValues, [Out] uint* pcbEnumValues, [Out] uint* pnEnumValues);
+	public unsafe static extern uint EnumPrinterDataExA ([In] PRINTER_HANDLE hPrinter, [In][Const] PSTR pKeyName, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pEnumValues, [In] uint cbEnumValues, [Out] uint* pcbEnumValues, [Out] uint* pnEnumValues);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumprinterdataex")]
-	public unsafe static extern uint EnumPrinterDataExW ([In] PRINTER_HANDLE hPrinter, [In][Const] PWSTR pKeyName, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pEnumValues, [In] uint cbEnumValues, [Out] uint* pcbEnumValues, [Out] uint* pnEnumValues);
+	public unsafe static extern uint EnumPrinterDataExW ([In] PRINTER_HANDLE hPrinter, [In][Const] PWSTR pKeyName, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pEnumValues, [In] uint cbEnumValues, [Out] uint* pcbEnumValues, [Out] uint* pnEnumValues);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
@@ -223660,12 +223672,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getform")]
-	public unsafe static extern BOOL GetFormA ([In] PRINTER_HANDLE hPrinter, [In][Const] PSTR pFormName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetFormA ([In] PRINTER_HANDLE hPrinter, [In][Const] PSTR pFormName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getform")]
-	public unsafe static extern BOOL GetFormW ([In] PRINTER_HANDLE hPrinter, [In][Const] PWSTR pFormName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetFormW ([In] PRINTER_HANDLE hPrinter, [In][Const] PWSTR pFormName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 4)][ContainsInteriorPointers] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
@@ -223680,22 +223692,22 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumforms")]
-	public unsafe static extern BOOL EnumFormsA ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumFormsA ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumforms")]
-	public unsafe static extern BOOL EnumFormsW ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumFormsW ([In] PRINTER_HANDLE hPrinter, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pForm, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enummonitors")]
-	public unsafe static extern BOOL EnumMonitorsA ([Optional][In] PSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pMonitor, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumMonitorsA ([Optional][In] PSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pMonitor, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enummonitors")]
-	public unsafe static extern BOOL EnumMonitorsW ([Optional][In] PWSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pMonitor, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumMonitorsW ([Optional][In] PWSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pMonitor, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
@@ -223720,12 +223732,12 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumports")]
-	public unsafe static extern BOOL EnumPortsA ([Optional][In] PSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pPort, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPortsA ([Optional][In] PSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pPort, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/enumports")]
-	public unsafe static extern BOOL EnumPortsW ([Optional][In] PWSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* pPort, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
+	public unsafe static extern BOOL EnumPortsW ([Optional][In] PWSTR pName, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* pPort, [In] uint cbBuf, [Out] uint* pcbNeeded, [Out] uint* pcReturned);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[Ansi]
@@ -223934,7 +223946,7 @@ public static class Apis
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getprinterdriver2")]
-	public unsafe static extern BOOL GetPrinterDriver2W ([Optional][In] HWND hWnd, [In] PRINTER_HANDLE hPrinter, [Optional][In] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 5)] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded);
+	public unsafe static extern BOOL GetPrinterDriver2W ([Optional][In] HWND hWnd, [In] PRINTER_HANDLE hPrinter, [Optional][In] PWSTR pEnvironment, [In] uint Level, [Optional][Out][MemorySize (BytesParamIndex = 5)][ContainsInteriorPointers] byte* pDriverInfo, [In] uint cbBuf, [Out] uint* pcbNeeded);
 
 	[DllImport ("winspool.drv", ExactSpelling = true, PreserveSig = false)]
 	[Documentation ("https://learn.microsoft.com/windows/win32/printdocs/getprintexecutiondata")]
@@ -493535,7 +493547,7 @@ public static class Apis
 	[DllImport ("ADVAPI32.dll", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[SupportedOSPlatform ("windows5.1.2600")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/securitybaseapi/nf-securitybaseapi-gettokeninformation")]
-	public unsafe static extern BOOL GetTokenInformation ([In] HANDLE TokenHandle, [In] TOKEN_INFORMATION_CLASS TokenInformationClass, [Optional][Out][MemorySize (BytesParamIndex = 3)] void* TokenInformation, [In] uint TokenInformationLength, [Out] uint* ReturnLength);
+	public unsafe static extern BOOL GetTokenInformation ([In] HANDLE TokenHandle, [In] TOKEN_INFORMATION_CLASS TokenInformationClass, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] void* TokenInformation, [In] uint TokenInformationLength, [Out] uint* ReturnLength);
 
 	[DllImport ("ADVAPI32.dll", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[SupportedOSPlatform ("windows5.1.2600")]
@@ -606180,7 +606192,7 @@ public static class Apis
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-getcurrentpackageid")]
-	public unsafe static extern WIN32_ERROR GetCurrentPackageId ([In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 0)] byte* buffer);
+	public unsafe static extern WIN32_ERROR GetCurrentPackageId ([In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 0)][ContainsInteriorPointers] byte* buffer);
 
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
@@ -606200,7 +606212,7 @@ public static class Apis
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-getpackageid")]
-	public unsafe static extern WIN32_ERROR GetPackageId ([In] HANDLE hProcess, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 1)] byte* buffer);
+	public unsafe static extern WIN32_ERROR GetPackageId ([In] HANDLE hProcess, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 1)][ContainsInteriorPointers] byte* buffer);
 
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
@@ -606250,7 +606262,7 @@ public static class Apis
 	[DllImport ("api-ms-win-appmodel-runtime-l1-1-3.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows10.0.10240")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-getcurrentpackageinfo2")]
-	public unsafe static extern WIN32_ERROR GetCurrentPackageInfo2 ([In][Const] uint flags, [In] PackagePathType packagePathType, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 2)] byte* buffer, [Optional][Out] uint* count);
+	public unsafe static extern WIN32_ERROR GetCurrentPackageInfo2 ([In][Const] uint flags, [In] PackagePathType packagePathType, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 2)][ContainsInteriorPointers] byte* buffer, [Optional][Out] uint* count);
 
 	[DllImport ("api-ms-win-appmodel-runtime-l1-1-3.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows10.0.10240")]
@@ -606287,7 +606299,7 @@ public static class Apis
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-packageidfromfullname")]
-	public unsafe static extern WIN32_ERROR PackageIdFromFullName ([In][Const] PWSTR packageFullName, [In][Const] uint flags, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 2)] byte* buffer);
+	public unsafe static extern WIN32_ERROR PackageIdFromFullName ([In][Const] PWSTR packageFullName, [In][Const] uint flags, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 2)][ContainsInteriorPointers] byte* buffer);
 
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
@@ -606337,7 +606349,7 @@ public static class Apis
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-getcurrentpackageinfo")]
-	public unsafe static extern WIN32_ERROR GetCurrentPackageInfo ([In][Const] uint flags, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 1)] byte* buffer, [Optional][Out] uint* count);
+	public unsafe static extern WIN32_ERROR GetCurrentPackageInfo ([In][Const] uint flags, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 1)][ContainsInteriorPointers] byte* buffer, [Optional][Out] uint* count);
 
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
@@ -606355,17 +606367,17 @@ public static class Apis
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.0")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-getpackageinfo")]
-	public unsafe static extern WIN32_ERROR GetPackageInfo ([In] _PACKAGE_INFO_REFERENCE* packageInfoReference, [In][Const] uint flags, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 2)] byte* buffer, [Optional][Out] uint* count);
+	public unsafe static extern WIN32_ERROR GetPackageInfo ([In] _PACKAGE_INFO_REFERENCE* packageInfoReference, [In][Const] uint flags, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 2)][ContainsInteriorPointers] byte* buffer, [Optional][Out] uint* count);
 
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows8.1")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-getpackageapplicationids")]
-	public unsafe static extern WIN32_ERROR GetPackageApplicationIds ([In] _PACKAGE_INFO_REFERENCE* packageInfoReference, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 1)] byte* buffer, [Optional][Out] uint* count);
+	public unsafe static extern WIN32_ERROR GetPackageApplicationIds ([In] _PACKAGE_INFO_REFERENCE* packageInfoReference, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 1)][ContainsInteriorPointers] byte* buffer, [Optional][Out] uint* count);
 
 	[DllImport ("api-ms-win-appmodel-runtime-l1-1-3.dll", ExactSpelling = true, PreserveSig = false)]
 	[SupportedOSPlatform ("windows10.0.10240")]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/appmodel/nf-appmodel-getpackageinfo2")]
-	public unsafe static extern WIN32_ERROR GetPackageInfo2 ([In] _PACKAGE_INFO_REFERENCE* packageInfoReference, [In][Const] uint flags, [In] PackagePathType packagePathType, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 3)] byte* buffer, [Optional][Out] uint* count);
+	public unsafe static extern WIN32_ERROR GetPackageInfo2 ([In] _PACKAGE_INFO_REFERENCE* packageInfoReference, [In][Const] uint flags, [In] PackagePathType packagePathType, [In][Out] uint* bufferLength, [Optional][Out][MemorySize (BytesParamIndex = 3)][ContainsInteriorPointers] byte* buffer, [Optional][Out] uint* count);
 
 	[DllImport ("KERNEL32.dll", ExactSpelling = true, PreserveSig = false)]
 	public unsafe static extern HRESULT CheckIsMSIXPackage ([In][Const] PWSTR packageFullName, [Out] BOOL* isMSIXPackage);
@@ -793321,13 +793333,13 @@ public static class Apis
 	[SupportedOSPlatform ("windows5.1.2600")]
 	[Ansi]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/winsvc/nf-winsvc-enumservicesstatusexa")]
-	public unsafe static extern BOOL EnumServicesStatusExA ([In] SC_HANDLE hSCManager, [In] SC_ENUM_TYPE InfoLevel, [In] ENUM_SERVICE_TYPE dwServiceType, [In] ENUM_SERVICE_STATE dwServiceState, [Optional][Out][MemorySize (BytesParamIndex = 5)] byte* lpServices, [In] uint cbBufSize, [Out] uint* pcbBytesNeeded, [Out] uint* lpServicesReturned, [Optional][In][Out] uint* lpResumeHandle, [Optional][In][Const] PSTR pszGroupName);
+	public unsafe static extern BOOL EnumServicesStatusExA ([In] SC_HANDLE hSCManager, [In] SC_ENUM_TYPE InfoLevel, [In] ENUM_SERVICE_TYPE dwServiceType, [In] ENUM_SERVICE_STATE dwServiceState, [Optional][Out][MemorySize (BytesParamIndex = 5)][ContainsInteriorPointers] byte* lpServices, [In] uint cbBufSize, [Out] uint* pcbBytesNeeded, [Out] uint* lpServicesReturned, [Optional][In][Out] uint* lpResumeHandle, [Optional][In][Const] PSTR pszGroupName);
 
 	[DllImport ("ADVAPI32.dll", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[SupportedOSPlatform ("windows5.1.2600")]
 	[Unicode]
 	[Documentation ("https://learn.microsoft.com/windows/win32/api/winsvc/nf-winsvc-enumservicesstatusexw")]
-	public unsafe static extern BOOL EnumServicesStatusExW ([In] SC_HANDLE hSCManager, [In] SC_ENUM_TYPE InfoLevel, [In] ENUM_SERVICE_TYPE dwServiceType, [In] ENUM_SERVICE_STATE dwServiceState, [Optional][Out][MemorySize (BytesParamIndex = 5)] byte* lpServices, [In] uint cbBufSize, [Out] uint* pcbBytesNeeded, [Out] uint* lpServicesReturned, [Optional][In][Out] uint* lpResumeHandle, [Optional][In][Const] PWSTR pszGroupName);
+	public unsafe static extern BOOL EnumServicesStatusExW ([In] SC_HANDLE hSCManager, [In] SC_ENUM_TYPE InfoLevel, [In] ENUM_SERVICE_TYPE dwServiceType, [In] ENUM_SERVICE_STATE dwServiceState, [Optional][Out][MemorySize (BytesParamIndex = 5)][ContainsInteriorPointers] byte* lpServices, [In] uint cbBufSize, [Out] uint* pcbBytesNeeded, [Out] uint* lpServicesReturned, [Optional][In][Out] uint* lpResumeHandle, [Optional][In][Const] PWSTR pszGroupName);
 
 	[DllImport ("ADVAPI32.dll", ExactSpelling = true, PreserveSig = false, SetLastError = true)]
 	[SupportedOSPlatform ("windows5.1.2600")]

This comment is automatically updated on each push.

@jevansaks
Jevan Saks (jevansaks) merged commit 75ec935 into main Oct 6, 2026
6 checks passed
@jevansaks
Jevan Saks (jevansaks) deleted the jevansaks-interior-pointer-metadata branch October 6, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants