sh_event keyword
The sh_event keyword specifies that a system_handle
holds a handle to an event.
[system_handle(sh_event)]
[system_handle(sh_event, access-rights)]
Parameters
This keyword is a parameter for system_handle.
The system_handle documentation also contains details on optional use of the access-rights parameter. The default behavior is DUPLICATE_SAME_ACCESS
per DuplicateHandle function specifications.
Remarks
In order to use this keyword with the system_handle
attribute, the -target
flag must be set to NT100
(or higher) when running midl.exe.
Examples
interface MyInterface : IUnknown
{
HRESULT NotifyThisEvent([in, system_handle(sh_event)] HANDLE listeningToThisEvent);
}
Requirements
Minimum supported client | Windows 10 Anniversary Update (version 1607, build 14393) |
Minimum supported server | Windows Server 2016 (build 14393) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for