MCPcopy Create free account
hub / github.com/M2Team/NanaBox / GetFileSystemPathFromFileDialog

Function GetFileSystemPathFromFileDialog

NanaBox/Utils.cpp:278–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278std::wstring GetFileSystemPathFromFileDialog(
279 _In_ IFileDialog* Object)
280{
281 std::wstring Path;
282 if (Object)
283 {
284 IShellItem* ShellItem = nullptr;
285 if (SUCCEEDED(Object->GetResult(&ShellItem)))
286 {
287 Path = GetDisplayNameFromShellItem(ShellItem, SIGDN_FILESYSPATH);
288 ShellItem->Release();
289 }
290 }
291 return Path;
292}
293
294void SetForegroundWindowSimple(
295 _In_ HWND WindowHandle)

Calls 1

Tested by

no test coverage detected