I want to call the sdbinst.exe program in the dll. When I compile the program to an exe, sdbinst.exe can start normally. But when I compile it as dll, the sdbinst.exe program will deadlock. Exe or dll they call sdbinst.exe the code is exactly the same. The deadlock code is ShellExecuteEx. I used OD to follow ShellExecuteEx, then used in the dll will deadlock in USER32.MsgWaitForMultipleObjects, I do not know this is What causes it. Hope someone can help me. Thanks!
What I have tried:
I have tried using other APIs instead of ShellExecuteEx
, but in that case the program will not work