DwmGetTransportAttributes function dwmapi

void DwmGetTransportAttributes(
  1. Pointer<Int32> pfIsRemoting,
  2. Pointer<Int32> pfIsConnected,
  3. Pointer<Uint32> pDwGeneration
)

Retrieves transport attributes.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/dwmapi/nf-dwmapi-dwmgettransportattributes.

Implementation

@pragma('vm:prefer-inline')
void DwmGetTransportAttributes(
  Pointer<Int32> pfIsRemoting,
  Pointer<Int32> pfIsConnected,
  Pointer<Uint32> pDwGeneration,
) {
  final hr$ = HRESULT(
    _DwmGetTransportAttributes(pfIsRemoting, pfIsConnected, pDwGeneration),
  );
  if (hr$.isError) throw WindowsException(hr$);
}