Editare

Partajați prin


HANDLETraits Structure

Defines common characteristics of a handle.

Syntax

struct HANDLETraits;

Members

Public Typedefs

Name Description
Type A synonym for HANDLE.

Public Methods

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

Inheritance Hierarchy

HANDLETraits

Requirements

Header: corewrappers.h

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

HANDLETraits::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.

HANDLETraits::GetInvalidValue

Represents an invalid handle.

inline static HANDLE GetInvalidValue();

Return Value

Always returns INVALID_HANDLE_VALUE. (INVALID_HANDLE_VALUE is defined by Windows.)