Convert d_win32_disk.c to C++