ISceSvcAttachmentPersistInfo::Save method (scesvc.h)
The Save method causes the snap-in extension to return information about the data that needs to be saved. The caller is responsible for saving the data.
Syntax
HRESULT Save(
[in] LPTSTR lpTemplateName,
[in] SCESVC_HANDLE *scesvcHandle,
[out] PVOID *ppvData,
[out] PBOOL pbOverwriteAll
);
Parameters
[in] lpTemplateName
Pointer to a null-terminated string that contains the security template name to save data to.
[in] scesvcHandle
Pointer that receives the SCESVC_HANDLE the attachment snap-in extension is using to communicate with the Security Configuration snap-ins.
[out] ppvData
Pointer that receives a buffer that contains the data to be saved.
[out] pbOverwriteAll
Pointer to a BOOL that receives a value indicating whether preexisting data should be overwritten.
Return value
The return value is an HRESULT. A value of S_OK indicates the method was successful.
Remarks
The caller should free the buffer set in ppvData by calling ISceSvcAttachmentPersistInfo::FreeBuffer.
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 |
DLL | Wsecedit.dll |
See also
ISceSvcAttachmentPersistInfo::FreeBuffer