CodePudding user response:
ShellExecute (GetDesktopWindow (), "open", "c: \ \ test CHM", 0, 0, SW_SHOWNORMAL);CodePudding user response:
Service program is in the Session of 0CodePudding user response:
I am using xp system, service and application in the same session, exactly like that, I built a service application project, and then put a trayicon on service, and then add an item in the trayicon ppmenu, click is invoked after the ShellExecute (GetDesktopWindow (), "open", "c: \ \ test CHM", 0, 0, SW_SHOWNORMAL); The beginning of shows a few times, then simply don't show at a time,