sh_section keyword
The sh_section keyword specifies that a system_handle
holds a handle to a section.
[system_handle(sh_section)]
[system_handle(sh_section, access-rights)]
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.
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.
interface MyInterface : IUnknown
{
HRESULT GiveSection([in, system_handle(sh_section)] HANDLE section);
HRESULT GetSectionToWatch([out, system_handle(sh_section, SECTION_MAP_READ)] HANDLE* pSection);
}
Minimum supported client | Windows 10 Anniversary Update (version 1607, build 14393) |
Minimum supported server | Windows Server 2016 (build 14393) |