MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / ShowLastError

Function ShowLastError

Rtxpt/SampleCommon/SampleCommon.cpp:214–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void ShowLastError()
215{
216 DWORD err = GetLastError(); wchar_t buf[4096];
217 FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, 0, buf, sizeof(buf) / sizeof(wchar_t), NULL);
218 MessageBoxW(NULL, buf, L"LastError", MB_OK | MB_ICONERROR);
219}
220
221#else // _WIN32
222void HelpersRegisterActiveWindow() {}

Callers 1

ShowProgressWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected