Expand Minimize

MI_Server_GetSystemName function

Gets the system name for the server.

Syntax


MI_Result MI_Server_GetSystemName(
  const MI_Char **systemName
);

Parameters

systemName

Returned system name.

Return value

Return codeDescription
MI_RESULT_OK

The operation succeeded.

MI_RESULT_INVALID_PARAMETER

One or more parameters passed to the function were not valid.

 

Remarks

This function is only available from within a generated provider. It obtains the system name for this server. The system name is used in several standard CIM key properties (for example, CIM_Fan.SystemName). The name is only known by the server. The provider should use only this function to get the system name and should never attempt to determine the system name using other means. The system name is typically the host name for the system, but the server may add additional qualification.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

Header

Mi.h

 

 

Show:
© 2014 Microsoft. All rights reserved.