Library wrapper under WINAPI