|
#ifndef I_WINDOWS_HANDLE_H
#define I_WINDOWS_HANDLE_H
#include <windows.h>
namespace Windows
{
class Handle
{
public:
Handle();
Handle(HANDLE handle);
~Handle();
HANDLE operator = (HANDLE other); // Specialized HANDLE assigning
operator HANDLE() const;
bool operator == (HANDLE other);
bool operator != (HANDLE other);
HANDLE GetHandle() const;
protected:
Handle(const Handle& other); // Prevent copying
Handle& operator = (const Handle& other); // Prevent assigning
private:
HANDLE m_handle;
};
} // namespace Windows
#endif // I_WINDOWS_HANDLE_H
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.