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.

43 lines
839 B

  1. /***********************************************************************
  2. * Microsoft (R) Windows (R) Resource Compiler
  3. *
  4. * Copyright (c) Microsoft Corporation. All rights reserved.
  5. *
  6. * File Comments:
  7. *
  8. *
  9. ***********************************************************************/
  10. #include "rc.h"
  11. #include "output.h"
  12. extern "C"
  13. {
  14. int WINAPI RCW(HWND, int, RC_MESSAGE_CALLBACKW, RC_PARSE_CALLBACKW, int, wchar_t *[]);
  15. BOOL WINAPI Handler(DWORD);
  16. }
  17. int CALLBACK UpdateRCStatus(ULONG ul1, ULONG ul2, LPCWSTR wsz)
  18. {
  19. StdOutPuts(wsz);
  20. return(0);
  21. }
  22. int __cdecl wmain(int argc, wchar_t *argv[])
  23. {
  24. int rc;
  25. OutputInit();
  26. SetConsoleCtrlHandler(Handler, TRUE);
  27. rc = RCW(NULL, 0, UpdateRCStatus, NULL, argc, argv);
  28. SetConsoleCtrlHandler(Handler, FALSE);
  29. return(rc);
  30. }