다음을 통해 공유


하위 수준 보안 설명자 함수

개체의 보안 설명자설정하고 검색하기 위한 여러 하위 수준 함수 쌍이 있습니다. 이러한 각 쌍은 제한된 Windows 개체 집합에서만 작동합니다. 예를 들어 한 쌍은 파일 개체에서 작동하고 다른 쌍은 레지스트리 키에서 작동합니다. 다음 표에서는 다양한 형식의 보안 개체와 함께 사용할 하위 수준 함수를 보여 줍니다.

개체 유형 하위 수준 함수
GetFileSecurity사용하고 SetFileSecurity함수를. 이러한 함수는 핸들을 사용하는 대신 문자열을 사용하여 보안 개체를 식별합니다.
GetKernelObjectSecurity사용하고 SetKernelObjectSecurity함수를.
GetUserObjectSecuritySetUserObjectSecurity 함수를 사용합니다.
  • 레지스트리 키
RegGetKeySecurityRegSetKeySecurity 함수를 사용합니다.
  • Windows 서비스 개체
QueryServiceObjectSecuritySetServiceObjectSecurity 함수를 사용합니다.
  • 프린터 개체
GetPrinterSetPrinter 함수와 함께 PRINTER_INFO_2 구조를 사용합니다.
NetShareGetInfoNetShareSetInfo 함수와 함께 수준 502를 사용합니다.
CreatePrivateObjectSecurity, DestroyPrivateObjectSecurity, GetPrivateObjectSecuritySetPrivateObjectSecurity 함수를 사용합니다.