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.

69 lines
1.2 KiB

  1. /*
  2. * server.hxx
  3. */
  4. #ifndef _SERVER_
  5. #define _SERVER_
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <windows.h>
  9. #include <rpc.h>
  10. #include <ole2.h>
  11. #include "..\acttest.h"
  12. #include "..\dll\goober.h"
  13. typedef unsigned long ulong;
  14. typedef unsigned char uchar;
  15. #define LOCAL 1
  16. #define REMOTE 2
  17. #define ATBITS 3
  18. #define INPROC 4
  19. typedef enum _debugger_type {
  20. same_debugger,
  21. clear_debugger,
  22. ntsd_debugger,
  23. windbg_debugger
  24. } DebuggerType;
  25. void PrintUsageAndExit();
  26. BOOL SetPassword(
  27. TCHAR * szCID,
  28. TCHAR * szPw );
  29. long InitializeRegistry(
  30. DebuggerType eDebug );
  31. long SetClsidRegKeyAndStringValue(
  32. TCHAR * pwszClsid,
  33. TCHAR * pwszKey,
  34. TCHAR * pwszValue,
  35. HKEY * phClsidKey,
  36. HKEY * phNewKey );
  37. long SetRegKeyAndStringValue(
  38. HKEY hKey,
  39. TCHAR * pwszKey,
  40. TCHAR * pwszValue,
  41. HKEY * phNewKey );
  42. long SetAppIDRegKeyAndNamedValue(
  43. TCHAR * pwszAppID,
  44. TCHAR * pwszKey,
  45. TCHAR * pwszValue,
  46. HKEY * phClsidKey );
  47. long SetNamedStringValue(
  48. HKEY hKey,
  49. TCHAR * pwszKey,
  50. TCHAR * pwszValue );
  51. extern BOOL fStartedAsService;
  52. extern HANDLE hStopServiceEvent;
  53. extern long ObjectCount;
  54. void ShutDown();
  55. #endif