windows::Win32::Security

Function CreateRestrictedToken

pub unsafe fn CreateRestrictedToken(
    existingtokenhandle: HANDLE,
    flags: CREATE_RESTRICTED_TOKEN_FLAGS,
    sidstodisable: Option<&[SID_AND_ATTRIBUTES]>,
    privilegestodelete: Option<&[LUID_AND_ATTRIBUTES]>,
    sidstorestrict: Option<&[SID_AND_ATTRIBUTES]>,
    newtokenhandle: *mut HANDLE,
) -> Result<()>