ISdoMachine::GetServiceSDO method (sdoias.h)

The GetServiceSDO method retrieves a Server Data Object (SDO) for the specified service.

Syntax

HRESULT GetServiceSDO(
  [in]  IASDATASTORE eDataStore,
  [in]  BSTR         bstrServiceName,
  [out] IUnknown     **ppServiceSDO
);

Parameters

[in] eDataStore

Specifies a value from the IASDATASTORE enumeration type.

[in] bstrServiceName

Specifies a BSTR that contains the service name. This parameter is one of the following values.

"IAS"

Network Policy Server

Note  Internet Authentication Service (IAS) was renamed Network Policy Server starting with Windows Server 2008.
 

"RemoteAccess"

Remote Access Server

[out] ppServiceSDO

Pointer to a pointer that points to an IUnknown interface pointer. Use the QueryInterface method of this IUnknown interface to obtain an IDispatch interface for the ISdoServiceControl object.

Return value

If the method succeeds the return value is S_OK.

If the method fails, the return value is one of the following error codes.

Remarks

Before calling this method, use the ISdoMachine::Attach method to attach to the SDO computer.

None of the parameters for this method can be NULL.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header sdoias.h
DLL Iassdo.dll

See also

ISdoMachine

ISdoMachine::Attach

Retrieving a Service SDO