| 22 | } |
| 23 | |
| 24 | static void LogWorkingDriveInfo() |
| 25 | { |
| 26 | // Setup the DWORD variables. |
| 27 | ULARGE_INTEGER TotalNumberOfBytes, TotalNumberOfFreeBytes; |
| 28 | |
| 29 | if (GetDiskFreeSpaceEx(Core.ApplicationPath, nullptr, &TotalNumberOfBytes, &TotalNumberOfFreeBytes)) |
| 30 | { |
| 31 | Msg("Current drive space free: [%0.f]Mb total: [%0.f]Mb", static_cast<float>(TotalNumberOfFreeBytes.QuadPart) / 1024.f / 1024.f, |
| 32 | static_cast<float>(TotalNumberOfBytes.QuadPart) / 1024.f / 1024.f); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | |
| 37 | extern LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); |