PFSCE_SET_INFO callback function (scesvc.h)
The PFSCE_SET_INFO callback function sets or overwrites service-specific configuration and analysis information.
Syntax
PFSCE_SET_INFO PfsceSetInfo;
SCESTATUS PfsceSetInfo(
[in] SCE_HANDLE sceHandle,
[in] SCESVC_INFO_TYPE sceType,
[in, optional] LPTSTR lpPrefix,
[in] BOOL bExact,
[in] PVOID pvInfo
)
{...}
Parameters
[in] sceHandle
Type: SCE_HANDLE
Specifies the opaque SCE handle passed to the attachment by the Security Configuration tool set during the call to ISceSvcAttachmentData::Initialize. This handle is used to set or overwrite the information.
[in] sceType
Type: SCESVC_INFO_TYPE
Specifies the type of information to be set. Specify one of the following flags.
Value | Meaning |
---|---|
|
Indicates that configuration information is set. |
|
Indicates that analysis information is set. |
[in, optional] lpPrefix
Type: LPTSTR
Specifies what information should be set or overwritten. This string can specify a specific key (see bExact) or a prefix for a set of keys. When a string is supplied, only information for those keys (and their corresponding values) that match the string is set. When set to NULL, all information for the service is set.
[in] bExact
Type: BOOL
Specifies whether the string provided by lpPrefix should be treated as a specific key or a prefix for a set of keys. This parameter is ignored if lpPrefix is set to NULL.
Specify one of the following values.
[in] pvInfo
Type: PVOID
Returns a pointer to one of the following structures. The Security Configuration tool set (not the attachment) allocates the buffer for the information; therefore, this pointer must point to NULL.
Value | Meaning |
---|---|
|
When sceType is set to SCE_SERVICE_CONFIGURATION_INFO. |
|
When sceType is set to SCE_SERVICE_ANALYSIS_INFO. |
Return value
Type: SCESTATUS
If the function succeeds, it returns SCESTATUS_SUCCESS; otherwise, it returns an error value which can be one of the following.
Return code | Description |
---|---|
|
The caller does not have sufficient privileges to complete this action. |
|
The format is bad. |
|
There is more data than the buffer can hold. |
|
One of the parameters passed into the function was not valid. |
|
There is insufficient memory. |
|
An unspecified error has occurred. |
|
The specified record was not found in the security database. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | scesvc.h |