DwmGetTransportAttributes function (dwmapi.h)

Retrieves transport attributes.

Syntax

HRESULT DwmGetTransportAttributes(
  [out] BOOL  *pfIsRemoting,
  [out] BOOL  *pfIsConnected,
  [out] DWORD *pDwGeneration
);

Parameters

[out] pfIsRemoting

A pointer to a BOOL value that indicates whether the transport supports remoting. TRUE if the transport supports remoting; otherwise, FALSE.

[out] pfIsConnected

A pointer to a BOOL value that indicates whether the transport is connected. TRUE if the transport is connected; otherwise, FALSE.

[out] pDwGeneration

A pointer to a DWORD that receives a generation value for the transport.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header dwmapi.h
Library Dwmapi.lib
DLL Dwmapi.dll