microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.
Other
1.32k stars 113 forks source link

Add additional RAII metadata #1895

Closed riverar closed 4 months ago

riverar commented 4 months ago

Closes: #1891

Adds additional RAII supporting user-mode functions that take one required parameter, and optionally a second optional nullable parameter. All others are documented as unsupported (at this time) in the mentioned issue.

riverar commented 4 months ago

Not likely to compile, as a lot of the functions are not in the same type namespace. This will have to be fixed. @mikebattista heads up.

EMITWINMD : error : Failed to create source for auto types: PSID, HKL, HDIAGNOSTIC_DATA_QUERY_SESSION, HDIAGNOSTIC_REPORT, HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, HDIAGNOSTIC_RECORD, FH_SERVICE_PIPE_HANDLE, HIMC, HPTPROVIDER, ROPARAMIIDHANDLE, JET_INSTANCE, JET_SESID not in the same namespace as CloseApi.

riverar commented 4 months ago

Moved the aforementioned types closer to their creation/destruction functions. This is a breaking change, heads up @mikebattista @kennykerr @AArnott