Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
457 B

  1. #include <windows.h>
  2. #include <shellapi.h>
  3. #include <shlwapi.h>
  4. #define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0]))
  5. int __cdecl main(int argc, char *argv[], char *envp[])
  6. {
  7. WCHAR szExplorerPath[MAX_PATH];
  8. if (GetWindowsDirectory(szExplorerPath, ARRAYSIZE(szExplorerPath)) &&
  9. PathAppend(szExplorerPath, L"explorer.exe"))
  10. {
  11. ShellExecute(NULL, NULL, szExplorerPath, NULL, NULL, SW_SHOWNORMAL);
  12. }
  13. return 0;
  14. }