Prevent hook helper from running when in UWP mode

This commit is contained in:
Paddy Xu
2017-07-11 23:43:16 +03:00
parent 031803a40e
commit d855e80bdc
5 changed files with 20 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ static WCHAR filePathBuffer[MAX_PATH] = {'\0'};
void DialogHook::GetSelected(PWCHAR buffer)
{
if (HelperMethods::IsUWP())
return;
auto hwndfg = GetForegroundWindow();
DWORD pid = 0;
auto tid = GetWindowThreadProcessId(hwndfg, &pid);