Partager via


ISmsClient::AutoDiscoverSite Method

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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: BSTR

    Qualifiers: [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

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

Concepts

ISmsClient Client COM Automation Interface
Configuration Manager Client Configuration