Initialize Method
Collapse the table of content
Expand the table of content

ISceSvcAttachmentData::Initialize method

The Initialize method informs the Security Configuration snap-in that the snap-in extension is loaded, and it establishes a context for communications.

Syntax


HRESULT Initialize(
  [in]  LPCTSTR                       ServiceName,
  [in]  LPCTSTR                       TemplateName,
  [in]  LPSCESVCATTACHMENTPERSISTINFO lpSceSvcPersistInfo,
  [out] SCESVC_HANDLE                 *sceHandle
);

Parameters

ServiceName [in]

String that specifies the name of the security service to retrieve information about.

TemplateName [in]

String that specifies the name of the template.

lpSceSvcPersistInfo [in]

Pointer to the ISceSvcAttachmentPersistInfo interface of the attachment snap-in extension.

sceHandle [out]

Pointer that receives an SCESVC_HANDLE that represents the communication context between the Security Configuration snap-in and the snap-in extension. This handle is passed in as a parameter to the other ISceSvcAttachmentData methods. When the attachment snap-in extension no longer needs this handle, free it by calling ISceSvcAttachmentData::CloseHandle.

Return value

The return value is an HRESULT. A value of S_OK indicates the method was successful.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Scesvc.h

DLL

Wsecedit.dll

IID

IID_ISceSvcAttachmentData is defined as 17C35FDE-200D-11D1-AFFB-00C04FB984F9

See also

ISceSvcAttachmentData
SCESVC_HANDLE
ISceSvcAttachmentData::CloseHandle
ISceSvcAttachmentPersistInfo

 

 

Community Additions

ADD
Show:
© 2016 Microsoft