Home | History | Annotate | Download | only in win

Lines Matching defs:Handle

31 //   - IsValid() method can tolerate multiple invalid handle values such as NULL
38 typedef typename Traits::Handle Handle;
42 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) {
43 Set(handle);
67 void Set(Handle handle) {
68 if (handle_ != handle) {
71 if (Traits::IsHandleValid(handle)) {
72 handle_ = handle;
73 Verifier::StartTracking(handle, this, BASE_WIN_GET_CALLER,
79 Handle Get() const {
83 operator Handle() const {
88 Handle Take() {
89 Handle temp = handle_;
98 // Explicitly closes the owned handle.
112 Handle handle_;
120 typedef HANDLE Handle;
122 // Closes the handle.
123 static bool CloseHandle(HANDLE handle) {
124 return ::CloseHandle(handle) != FALSE;
127 // Returns true if the handle value is valid.
128 static bool IsHandleValid(HANDLE handle) {
129 return handle != NULL && handle != INVALID_HANDLE_VALUE;
132 // Returns NULL handle value.
133 static HANDLE NullHandle() {
144 typedef HANDLE Handle;
146 static void StartTracking(HANDLE handle, const void* owner,
148 static void StopTracking(HANDLE handle, const void* owner,
158 typedef HANDLE Handle;
160 static void StartTracking(HANDLE handle, const void* owner,
162 static void StopTracking(HANDLE handle, const void* owner,