Reference

StampFileSecurity(3w)

NAME

StampFileSecurity (SETUPAPI.@)

SYNOPSIS

DWORD StampFileSecurity
(
LPCWSTR lpFileName,
PSECURITY_DESCRIPTOR pSecurityDescriptor
)

DESCRIPTION

Assign a new security descriptor to the given file.

PARAMS

lpFileName [In] Name of the file.

pSecurityDescriptor [In] New security descriptor.

RETURNS

Success: ERROR_SUCCESS

Failure: other

IMPLEMENTATION

Declared in "setupapi.h".

Implemented in "dlls/setupapi/misc.c".

Debug channel "setupapi".

History