Partager via


ISmsClient::DiscoverDefaultMP 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::DiscoverDefaultMP method, in Configuration Manager, retrieves the assigned management point for a client, without assigning the client to the management point.

[IDL]
HRESULT DiscoverDefaultMP(
      BSTR sSiteCode, 
      _SmsClient_MPProtocolEnum* eMPProtocol, 
      BSTR* sManagementPoint
);

Parameters

  • sSiteCode
    Data type: BSTR

    Qualifiers: [in]

    Site code of the site for which to return the default management point.

  • eMPProtocol
    Data type: _SmsClient_MPProtocolEnum

    Qualifiers: [out]

    Pointer to the type of management point that is being retrieved (computer name or IP address). The value is one of the following values from the SmsClient_MPProtocolEnum enumeration:

    Name Actual value Description

    SmsClient_MPProtocol_OS

    0

    The return value is the computer name of the management point.

    SmsClient_MPProtocol_IP

    1

    The return value is the IP address of the management point.

  • ManagementPoint
    Data type: BSTR

    Qualifiers: [out, retval]

    Pointer to the computer name or the IP address of the management point. Whether it is a name or IP address is specified by the value of the eMPProtocol out parameter.

Return Value

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

  • S_OK
    The method succeeded.

Remarks

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