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.

78 lines
1.8 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // File: TSrv.h
  4. //
  5. // Contents: TShareSRV public include file
  6. //
  7. // Copyright: (c) 1992 - 1997, Microsoft Corporation.
  8. // All Rights Reserved.
  9. // Information Contained Herein is Proprietary
  10. // and Confidential.
  11. //
  12. // History: 7-JUL-97 BrianTa Created.
  13. //
  14. //---------------------------------------------------------------------------
  15. #ifndef _TSRV_H_
  16. #define _TSRV_H_
  17. #ifndef RC_INVOKED
  18. #include <nt.h>
  19. #include <ntrtl.h>
  20. #include <nturtl.h>
  21. #endif
  22. #include <windows.h>
  23. #include <t120.h>
  24. #include <tshrutil.h>
  25. #include <lscsp.h>
  26. #include "license.h"
  27. #include <tssec.h>
  28. //
  29. // Defines
  30. //
  31. #ifndef EXTERN_C
  32. #ifdef __cplusplus
  33. #define EXTERN_C extern "C"
  34. #else
  35. #define EXTERN_C extern
  36. #endif
  37. #endif
  38. //
  39. // Externs
  40. //
  41. extern HINSTANCE g_hDllInstance; // DLL instance
  42. extern HANDLE g_hMainThread; // Main work thread
  43. extern HANDLE g_hReadyEvent; // Ready event
  44. extern BOOL g_fShutdown; // TSrvShare shutdown flag
  45. //
  46. // TSrv.c Prototypes
  47. //
  48. EXTERN_C DWORD WINAPI TSrvMainThread(LPVOID pvContext);
  49. EXTERN_C BOOL TSRVStartup(void);
  50. EXTERN_C void TSRVShutdown(void);
  51. EXTERN_C BOOL TSrvInitialize(void);
  52. //
  53. // TSrvMisc.c protptypes
  54. //
  55. EXTERN_C void TSrvReady(IN BOOL fReady);
  56. EXTERN_C BOOL TSrvIsReady(IN BOOL fWait);
  57. EXTERN_C void TSrvTerminating(BOOL fTerminating);
  58. EXTERN_C BOOL TSrvIsTerminating(void);
  59. EXTERN_C PVOID TSrvAllocSection(PHANDLE phSection, ULONG ulSize);
  60. EXTERN_C void TSrvFreeSection(HANDLE hSection, PVOID pvBase);
  61. #endif // _TSRV_H_