Getting rid of the evil delay caused by ShellExecute

This is what bothered me for a while, and just need to solve it. Each time I call ShellExecute to open an external file (be it a document, executable file or URL), it causes a very long lock in my program before ShellExecute creates a new process and returns. Does anyone know how to solve or get around this?

EDIT: And, as the tags indicate, this is on Win32 using C ++.

+3
source share
2 answers

Multithreading?

ShellExecute. , , - MS Office. , DDE , (, , ...) . , ( ) . , , , , .

, PeekMessage , . , -, , -, ?


, , , , . Raymond ( 1) ( 2). CoInitialize ( ), - MFC .

+3

, , ( sysinternal fame) , , . " Windows Vista Open Open" , , explorer (, ). , , Windows.

, , , , . CreateProcess, , .

.

+9

Source: https://habr.com/ru/post/1697971/


All Articles