Windows Dev Center

IPart::GetPartType method

The GetPartType method gets the part type of this part.

Syntax


HRESULT GetPartType(
  [out] PartType *pPartType
);

Parameters

pPartType [out]

Pointer to a PartType variable into which the method writes the part type. The part type is one of the following PartType enumeration values, which indicate whether the part is a connector or subunit:

Connector

Subunit

Return value

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return codeDescription
E_POINTER

Pointer pPartType is NULL.

 

Remarks

For a code example that uses this method, see the implementation of the SelectCaptureDevice function in Device Topologies.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Devicetopology.h

See also

IPart Interface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft