用ShellExecute()
HINSTANCE ShellExecute(
NULL,
"open",
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
HINSTANCE ShellExecute(
NULL,
"open",
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
调试欢乐多
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,1,NULL,0);
PostMessage(GetDesktopWindow(), WM_SYSCOMMAND, SC_SCREENSAVE,NULL);