Dela via


ISmsClient::GetCurrentManagementPoint 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

Important

This method is deprecated. You should use the ISmsClient2::GetCurrentManagementPointEx method instead.

The ISmsClient::GetCurrentManagementPoint method, in Configuration Manager, gets the assigned management point.

Note

This method returns an empty string while the client is on the Internet.

[IDL]
HRESULT GetCurrentManagementPoint(
      BSTR* sManagementPoint
);

Parameters

  • sManagementPoint
    Data type: BSTR

    Qualifiers: [out, retval]

    Pointer to the name of the current management point.

Return Value

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

  • S_OK
    The method succeeded.
  • SMSCLIENT_E_NOASSIGNEDSITE
    The client is not currently assigned to a site.
  • WBEM_E_xxxx
    An error occurred updating Windows Management Instrumentation (WMI).

Remarks

Local administrator privileges are required to call this method.

This method is replaced by ISmsClient2::GetCurrentManagementPointEx 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