Some Windows C++ commonly used function encapsulation