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.

115 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. sources
  5. Abstract:
  6. main file for the wow64svc
  7. Author:
  8. ATM Shafiqul Khalid (askhalid) 3-March-2000
  9. Revision History:
  10. --*/
  11. #ifndef __WOW64_SVC_H__
  12. #define __WOW64_SVC_H__
  13. #include <windows.h>
  14. #include <stdio.h>
  15. #include <stdlib.h>
  16. #include <tchar.h>
  17. #include <time.h>
  18. #include "wow64reg.h"
  19. #define WOW64_SERVICE_NAME TEXT("Wow64")
  20. #define WOW64_DISPLAY_NAME TEXT("Wow64 Service ")
  21. #define WOW64_DRIVER_NAME TEXT("Windows NT Wow64 Driver")
  22. #define WOW64_MONITOR_NAME TEXT("Windows NT Wow64 Monitor")
  23. #define WOW64_IMAGE_NAME TEXT("%systemroot%\\system32\\Wow64.exe")
  24. #define WOW64_FILE_PREFIX TEXT("Wow64")
  25. #define WOW64_EXTENSION_NAME TEXT("Microsoft Routing Extension")
  26. //
  27. // We need to move messages to log file.
  28. //
  29. #if DBG
  30. #define SvcDebugPrint(x) printf x
  31. #else
  32. #define SvcDebugPrint(x) ;
  33. #endif
  34. VOID
  35. Wow64ServiceMain(
  36. DWORD argc,
  37. LPTSTR *argv
  38. );
  39. DWORD
  40. InstallService(
  41. LPTSTR Username,
  42. LPTSTR Password
  43. );
  44. DWORD
  45. RemoveService(
  46. void
  47. );
  48. VOID
  49. Wow64ServiceCtrlHandler(
  50. DWORD Opcode
  51. );
  52. DWORD
  53. ReportServiceStatus(
  54. DWORD CurrentState,
  55. DWORD Win32ExitCode,
  56. DWORD WaitHint
  57. );
  58. DWORD
  59. ServiceStart(
  60. VOID
  61. );
  62. void
  63. EndWow64Svc(
  64. BOOL bEndProcess,
  65. DWORD SeverityLevel
  66. );
  67. DWORD
  68. ServiceStop(
  69. void
  70. );
  71. DWORD
  72. StartWow64Service ();
  73. DWORD
  74. StopWow64Service ();
  75. DWORD
  76. QueryWow64Service ();
  77. //should goto wow64reg.h
  78. BOOL
  79. PopulateReflectorTable ();
  80. //_________________________________________
  81. #endif //__WOW64_SVC_H__