This is not a com pointer; it should not release/close the handle when an & operator is used, it should only return the handle value. Clearing is only used on assignment.
@@ -44,8 +44,6 @@ public:
inline HANDLE* operator&()
{
- Clear();
- handle = NULL;
return &handle;
}