OLD | NEW |
1 #include PRECOMPILED_HEADER_FILE | 1 #include "..\engine\stdafx.h" |
2 | 2 |
3 #include "AutoHandle.h" | 3 #include "AutoHandle.h" |
4 | 4 |
5 AutoHandle::AutoHandle() | 5 AutoHandle::AutoHandle() |
6 { | 6 { |
7 } | 7 } |
8 | 8 |
9 AutoHandle::AutoHandle(HANDLE handle) : handle(handle) | 9 AutoHandle::AutoHandle(HANDLE handle) : handle(handle) |
10 { | 10 { |
11 } | 11 } |
12 | 12 |
13 AutoHandle::~AutoHandle() | 13 AutoHandle::~AutoHandle() |
14 { | 14 { |
15 CloseHandle(handle); | 15 CloseHandle(handle); |
16 } | 16 } |
17 | 17 |
18 HANDLE AutoHandle::get() | 18 HANDLE AutoHandle::get() |
19 { | 19 { |
20 return handle; | 20 return handle; |
21 } | 21 } |
OLD | NEW |