HANDLENullTraits Structure

Defines common characteristics of an uninitialized handle.

Syntax

struct HANDLENullTraits;

Members

Public Typedefs

Name Description
Type A synonym for HANDLE.

Public Methods

Name Description
HANDLENullTraits::Close Closes the specified handle.
HANDLENullTraits::GetInvalidValue Represents an invalid handle.

Inheritance Hierarchy

HANDLENullTraits

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers::HandleTraits

HANDLENullTraits::Close

Closes the specified handle.

inline static bool Close(
   _In_ Type h
);

Parameters

h
The handle to close.

Return Value

true if handle h closed successfully; otherwise, false.

HANDLENullTraits::GetInvalidValue

Represents an invalid handle.

inline static Type GetInvalidValue();

Return Value

Always returns nullptr.