created a simple winapi wrapper for testing