Remarks
This function is subject to UIPI. Applications are permitted to inject input only into applications that are at an equal or lesser integrity level.
C:\>Icacls C:\Windows\system32\services.msc
C:\Windows\system32\services.msc NT SERVICE\TrustedInstaller:(F)
BUILTIN\Administrators:(RX)
NT AUTHORITY\SYSTEM:(RX)
BUILTIN\Users:(RX)
其中
N - 无访问权限 F - 完全访问权限
M - 修改权限 RX - 读取和执行权限
R - 只读权限
W - 只写权限
D - 删除权限
The SetTokenInformation function sets various types of information for a specified access token. The information that this function sets replaces existing information. The calling process must have appropriate access rights to set the information.
Token-type information can be set only when an access token is created.