| 640 | } |
| 641 | |
| 642 | std::wstring GetCurrentProcessModulePath() |
| 643 | { |
| 644 | // 32767 is the maximum path length without the terminating null character. |
| 645 | std::wstring Path(32767, L'\0'); |
| 646 | Path.resize(::GetModuleFileNameW( |
| 647 | nullptr, &Path[0], static_cast<DWORD>(Path.size()))); |
| 648 | return Path; |
| 649 | } |
| 650 | |
| 651 | DWORD SimpleCreateVirtualDisk( |
| 652 | _In_ PCWSTR Path, |
no outgoing calls
no test coverage detected