Support for WINAPI calls