Skip to content

Add additional RAII metadata - #1895

Merged
Mike Battista (mikebattista) merged 3 commits into
mainfrom
rafael/raii-apis
May 6, 2024
Merged

Mike Battista (mikebattista) merged 3 commits into
mainfrom
rafael/raii-apis

Conversation

@riverar

Copy link
Copy Markdown
Collaborator

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

Rafael Rivera (riverar) commented Apr 30, 2024 •

Copy link
Copy Markdown
Collaborator Author

Not likely to compile, as a lot of the functions are not in the same type namespace. This will have to be fixed. Mike Battista (@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

Copy link
Copy Markdown
Collaborator Author

Moved the aforementioned types closer to their creation/destruction functions. This is a breaking change, heads up Mike Battista (@mikebattista) Kenny Kerr (@kennykerr) Andrew Arnott (@AArnott)

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.

RAIIFree implies InvalidHandleValue

3 participants