Commit Graph

28 Commits (0bb9797e2f827390cc803a6e59dbb78a7a8743c4)

Author SHA1 Message Date
dahall 5132c0249b Changed HFILE to implement ISyncHandle 2021-08-25 12:03:23 -06:00
dahall 20bdf64790 Added SafeHANDLE.ReleaseOwnership method to extract handle from safe handle so it is not closed on disposal. 2021-06-03 19:52:26 -06:00
dahall 04efba5ec1 Backed out changes re: SafeEventHandle from HEVENT 2021-05-24 12:11:55 -06:00
David Hall bd43c2c000 Added SafeEventHandle to HEVENT implicit operator 2021-05-22 23:32:45 -07:00
dahall c5075f648b Made implicit conversion to HANDLE work from SafeHandle instead of SafeHANDLE 2021-03-06 18:51:17 -07:00
dahall b92976fad4 Fixed bug in last commit 2021-03-04 11:41:40 -07:00
dahall 042cf8573c Added equality operators for IHandle and IntPtr to SafeHANDLE. 2021-03-04 10:56:29 -07:00
dahall 952c6cebe1 Added HWND.HWND_MESSAGE value 2020-12-18 17:49:12 -07:00
dahall 439d77f58d Added HEVENT handle 2020-11-19 14:48:23 -07:00
dahall ff11d2e393 Added standard HWND constants as static fields in HWND 2020-09-25 17:16:22 -06:00
dahall 67e89b5472 Fixed incorrect parameters for file mapping functions and added HSECTION and SafeHSECTION handles. 2020-05-16 15:15:33 -06:00
David Hall f649adbc24 Added IUserHandle reference to all user object handles. 2019-10-17 11:21:20 -06:00
David Hall 0d92eb39b8 Added HCOLORSPACE 2019-09-25 14:13:54 -05:00
David Hall 00d728f82e Added HTASK 2019-09-10 13:29:20 -06:00
David Hall 0dc30ffa2f Added DebuggerDisplayAttribute to all handles to show the handle value. Added implicit conversion from Process to HPROCESS. 2019-07-09 09:22:37 -06:00
David Hall f7dd0a9cf6 Added NoOptimization attribute to SafeHANDLE disposal method 2019-06-25 17:12:28 -06:00
David Hall d7eaafbb3b Added implicit converstaion from SafeFileHandle to HFILE 2019-06-22 14:18:53 -06:00
David Hall 6595d81b92 Improved Equals method on SafeHANDLE 2019-06-19 10:04:57 -06:00
David Hall 93a4982951 Changed type of INVALID_FILE_HANDLE to HFILE instead of IntPtr 2019-02-20 15:29:42 -07:00
David Hall bef4a869ba Added SafeHANDLE to HANDLE implicit operator and adjusted SafeHANDLE == operator to address `default` values (#40). 2019-02-19 14:16:44 -07:00
David Hall b51aef42d2 Introduced structure based HANDLE for better compatibility 2019-02-04 10:56:15 -07:00
David Hall f1085cd3a5 Change SafeHandle derived base class HANDLE to SafeHANDLE. Yes, bonehead move to not do this correctly from the beginning. 2019-02-04 09:51:08 -07:00
David Hall 0f1acd2276 Moved registry hive values to HKEY 2019-01-16 08:06:31 -07:00
David Hall 3da3c81694 Added INVALID_HANDLE_VALUE to HFILE 2019-01-15 12:17:37 -07:00
David Hall 8a1355b0af Updated comments 2018-11-28 12:33:55 -07:00
David Hall c5467dfb7e Another 2.0 major commit. All tests working. 2018-11-19 21:18:50 -07:00
David Hall 627c6d2314 2.0 Checkin - Buildable 2018-10-26 12:24:07 -06:00
David Hall 138accc380 MAJOR BREAKING CHANGES: Fundamentally changed how HANDLEs are represented and used. Much better type safety now that all handles derive from HANDLE and disposing instances are all noted by a SafeHxxx name. Solves problem with circular references and random IntPtr parameters. 2018-09-21 22:35:34 -06:00