MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / LogWorkingDriveInfo

Function LogWorkingDriveInfo

ogsr_engine/xr_3da/Device_Initialize.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24static 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
37extern LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

Callers 1

InitializeMethod · 0.85

Calls 1

MsgFunction · 0.85

Tested by

no test coverage detected