Share via


HandleT::HandleT Constructor

Initializes a new instance of the HandleT class.

explicit HandleT(
   typename HandleTraits::Type h = 
      HandleTraits::GetInvalidValue()
);

HandleT(
   _Inout_ HandleT&& h
);

Parameters

  • h
    A handle.

Remarks

The first constructor initializes a HandleT object that is not a valid handle to an object. The second constructor creates a new HandleT object from parameter h.

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

See Also

Reference

HandleT Class