Repository navigation
Add ContainsInteriorPointers buffer metadata - #2355
Merged
Merged
Conversation
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]>
Jevan Saks (jevansaks)
marked this pull request as ready for review
October 6, 2026 22:23
Jevan Saks (jevansaks)
requested review from
a team and
Vineeth Thomas Alex (vineeththomasalex)
as code owners
October 6, 2026 22:23
Jon Wiswall (jonwis)
previously approved these changes
Oct 6, 2026
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]>
Jon Wiswall (jonwis)
approved these changes
Oct 6, 2026
Jevan Saks (jevansaks)
enabled auto-merge (squash)
October 6, 2026 23:00
📋 API Surface Diff+49 additions / -40 deletions vs main branch (full validation run) Click to expand API diffdiff --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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
Windows.Win32.Foundation.Metadata.ContainsInteriorPointersAttributeand 40 verified output-buffer annotations through the existingemitter.settings.rsp --memberRemapmachinery. 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/Wmeans both declarations. Names are the selected SDK header identifiers, not necessarily the documentation's parameter spellings.pDatapFormpJobpMonitorpPortpEnumValuespDriverInfopPrinterEnumpPrinterpDatatypespPrintProcessorInfolpServicesTokenInformationbufferbufferbufferThis 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
packageFullNamespointer array borrows strings from a companion UTF-16buffer. 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.GetPackageApplicationIdsis different: its pointer table and app-ID strings occupy the same single byte buffer, so it is included.GetPrinterDriver2Ais documented to always returnERROR_NOT_SUPPORTED; only W has a verified output contract.GetCurrentPackageInfo3is deferred: its currently declared discriminator isPackageInfo3Type_PackageInfoGeneration, while public documentation mixes generation-ID andPACKAGE_INFOarray descriptions. A clarified supported pointer-bearing contract is needed.GetPackageInfo3and numbered FindPackagesByPackageFamily variants are not declared in the selected headers and are not invented here.Validation
NoSuggestedRemappings, existing integrity tests, and interface layouts. The eight ClangSharpSourceToWinmd tests also passed during the toolchain baseline check.scripts\DiffWinmdToBaseline.ps1 -SkipInstallToolsagainst the last release. That historical comparison includes existing branch changes; the fresh HEAD comparison isolates this PR's delta.NBGV_GitEngine=Disabledwas 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=Managedfor compatibility. No dependency/versioning configuration was changed.git diff --checkpassed.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, includingEnumPorts::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.