| description | Learn more about: HANDLETraits Structure | |||
|---|---|---|---|---|
| title | HANDLETraits Structure | |||
| ms.date | 09/27/2018 | |||
| ms.topic | reference | |||
| f1_keywords |
|
|||
| helpviewer_keywords |
|
|||
| ms.assetid | 22963e88-d857-4624-9182-7c986daff722 |
Defines common characteristics of a handle.
struct HANDLETraits;| Name | Description |
|---|---|
Type |
A synonym for HANDLE. |
| Name | Description |
|---|---|
| HANDLETraits::Close | Closes the specified handle. |
| HANDLETraits::GetInvalidValue | Represents an invalid handle. |
HANDLETraits
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers::HandleTraits
Closes the specified handle.
inline static bool Close(
_In_ Type h
);h
The handle to close.
true if handle h closed successfully; otherwise, false.
Represents an invalid handle.
inline static HANDLE GetInvalidValue();Always returns INVALID_HANDLE_VALUE. (INVALID_HANDLE_VALUE is defined by Windows.)