Skip to content

HandleRestrict

Removes permissions from a handle.

Number Selector Blocking Since
0x08 SVC_MANAGEHANDLE MNGHNDL_RESTRICT (1) no 2.0
Err HandleRestrict(Handle h, HandlePerms mask);

Registers: (h, mask) -> r0 status

Permissions can only be dropped, never added.

Parameters

Name Direction Description
h in Handle to restrict.
mask in Permissions to keep; everything outside it is removed.

Returns

ZUZU_OK, or an error code.

Errors

Error Condition
ERR_BADHANDLE h is not a live handle.