WinApi wrapper in C++