ISystemDebugControlPEC.GetMachineInfo Method

ISystemDebugControlPEC.GetMachineInfo Method

Visual Studio .NET 2003

Retrieves information about a connected computer.

[Visual Basic]
Public Function GetMachineInfo (
   ByVal nMachineId As Integer
) As ISystemDebugMachine
[C#]
public ISystemDebugMachine GetMachineInfo(
   int nMachineId
);
[C++]
HRESULT GetMachineInfo (
   int nMachineId,
   ISystemDebugMachine **ppIMachine
);

Parameters

nMachineId
[in] The computer identifier returned by a previous call to the ConnectToMachine method.
ppIMachine
[out, retval] An ISystemDebugMachine object. You can use the methods supported by this object to retrieve information such as the computer name, its operating system, and its other capabilities.

Return Value

[C++]

S_OK if the information was retrieved successfully.

E_INVALIDARG if the identifier specified in the nMachineId parameter is invalid or if the method was unable to retrieve information about the computer.

Remarks

If the GetMachineInfo method succeeds, you can use the methods supported by the returned ISystemDebugMachine object to retrieve information such as the computer name, operating system, and its capabilities.

See Also

Event Subscription Objects and Interfaces | ISystemDebugControlPEC Object | ISystemDebugMachine Object | API Reference

Show:
© 2016 Microsoft