The ISmsClient::AutoDiscoverSite method, in Configuration Manager, retrieves the site code of the locally available site based on the client's current roaming situation, without assigning the client to the site.

[IDL]
HRESULT AutoDiscoverSite(
	BSTR* sSiteCode
);

Parameters

sSiteCode


Data type: BSTRQualifiers: [out, retval]Pointer to the site code of the local site.

Return Value

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK


The method succeeded.

Remarks

To assign the client to the discovered site, the application uses the ISmsClient::SetAssignedSite Method method.

Local administrator privileges are required to call this method.

Requirements

smsclient.dll

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.