有陣列低階函式可用來設定和擷取物件的 安全性描述元。 每一組都只能與一組有限的 Windows 物件搭配使用。 例如,一對與檔案物件搭配運作,另一組則適用於登錄機碼。 下表顯示與不同類型的安全性實體物件搭配使用的低階函式。
| 物件類型 | 低階函式 |
|---|---|
| 使用 GetFileSecurity 和 SetFileSecurity 函式。 這些函式會使用字元字串來識別安全性實體物件,而不是使用句柄。 | |
| 使用 GetKernelObjectSecurity 和 SetKernelObjectSecurity 函式。 | |
| 使用 GetUserObjectSecurity 和 SetUserObjectSecurity 函式。 | |
| 使用 RegGetKeySecurity 和 RegSetKeySecurity 函式。 | |
| 使用 QueryServiceObjectSecurity 和 SetServiceObjectSecurity 函式。 | |
|
使用 PRINTER_INFO_2 結構搭配 GetPrinter 和 SetPrinter 函式。 |
| 使用層級 502 搭配 NetShareGetInfo 和 NetShareSetInfo 函式。 | |
| 使用 CreatePrivateObjectSecurity、DestroyPrivateObjectSecurity、GetPrivateObjectSecurity 和 SetPrivateObjectSecurity 函式。 |