Source code of Windows XP (NT5)
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.

36 lines
575 B

  1. #include <objbase.h>
  2. #include "dbg.h"
  3. #include <tchar.h>
  4. #include <stdio.h>
  5. #define ARRAYSIZE(a) (sizeof((a))/sizeof((a)[0]))
  6. #ifdef UNICODE
  7. extern "C"
  8. {
  9. int __cdecl wmain(int argc, wchar_t* argv[])
  10. #else
  11. int __cdecl main(int argc, char* argv[])
  12. #endif
  13. {
  14. if (argc > 1)
  15. {
  16. HANDLE hEvent = OpenEvent(EVENT_ALL_ACCESS, FALSE, argv[1]);
  17. if (hEvent)
  18. {
  19. PulseEvent(hEvent);
  20. CloseHandle(hEvent);
  21. }
  22. else
  23. {
  24. _tprintf(TEXT("FAILED"));
  25. }
  26. }
  27. return 0;
  28. }
  29. #ifdef UNICODE
  30. }
  31. #endif