Use SetErrorMode to disable annoying prompts

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5814 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2015-04-21 12:59:12 +00:00
parent fa3709b486
commit 71ee6fcc9c
+1
View File
@@ -97,6 +97,7 @@ INT WINAPI wWinMain(
#endif
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
PhInstanceHandle = (HINSTANCE)NtCurrentPeb()->ImageBaseAddress;