SetServiceObjectSecurity function advapi32

int SetServiceObjectSecurity(
  1. int hService,
  2. int dwSecurityInformation,
  3. Pointer<NativeType> lpSecurityDescriptor
)

The SetServiceObjectSecurity function sets the security descriptor of a service object.

BOOL SetServiceObjectSecurity(
  [in] SC_HANDLE            hService,
  [in] SECURITY_INFORMATION dwSecurityInformation,
  [in] PSECURITY_DESCRIPTOR lpSecurityDescriptor
);

Implementation

int SetServiceObjectSecurity(int hService, int dwSecurityInformation,
        Pointer lpSecurityDescriptor) =>
    _SetServiceObjectSecurity(
        hService, dwSecurityInformation, lpSecurityDescriptor);