Win32 API wrapper in C++