GetSecurityDescriptorControl 함수(securitybaseapi.h)

GetSecurityDescriptorControl 함수는 보안 설명자 컨트롤 및 수정 정보를 검색합니다.

구문

BOOL GetSecurityDescriptorControl(
  [in]  PSECURITY_DESCRIPTOR         pSecurityDescriptor,
  [out] PSECURITY_DESCRIPTOR_CONTROL pControl,
  [out] LPDWORD                      lpdwRevision
);

매개 변수

[in] pSecurityDescriptor

함수가 검색하는 컨트롤 및 수정 정보인 SECURITY_DESCRIPTOR 구조체에 대한 포인터입니다.

[out] pControl

보안 설명자의 제어 정보를 수신하는 SECURITY_DESCRIPTOR_CONTROL 구조체에 대한 포인터입니다.

[out] lpdwRevision

보안 설명자의 수정 값을 받는 변수에 대한 포인터입니다. GetSecurityDescriptorControl이 오류를 반환하는 경우에도 이 값은 항상 설정됩니다.

반환 값

함수가 성공하면 반환 값이 0이 아닙니다.

함수가 실패하면 반환 값은 0입니다. 확장 오류 정보를 가져오려면 GetLastError를 호출합니다.

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows XP [데스크톱 앱 | UWP 앱]
지원되는 최소 서버 Windows Server 2003 [데스크톱 앱 | UWP 앱]
대상 플랫폼 Windows
헤더 securitybaseapi.h(Windows.h 포함)
라이브러리 Advapi32.lib
DLL Advapi32.dll

추가 정보

Access Control 개요

기본 Access Control 함수

GetSecurityDescriptorDacl

GetSecurityDescriptorGroup

GetSecurityDescriptorLength

GetSecurityDescriptorOwner

GetSecurityDescriptorSacl

IsValidSecurityDescriptor

SECURITY_DESCRIPTOR

SECURITY_DESCRIPTOR_CONTROL