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.

100 lines
1.6 KiB

  1. //
  2. // Share Controller
  3. //
  4. #ifndef _H_SC
  5. #define _H_SC
  6. //
  7. //
  8. // CONSTANTS
  9. //
  10. //
  11. //
  12. // Values for compression support array
  13. // - PR_UNKNOWN - don't know (yet) what level this party supports
  14. // - PR_LEVEL1 - Only PKZIP compression is supported. Compressed packets
  15. // are identified by the top bit of the compressionType
  16. // field. All other bits of compressionType are meaningless
  17. // - PR_LEVEL2 - Multiple compression types are supported. The compression
  18. // used for each packet is identified by the compressionType
  19. // field.
  20. //
  21. #define PR_UNKNOWN 0
  22. #define PR_LEVEL1 1
  23. #define PR_LEVEL2 2
  24. //
  25. // STATES
  26. //
  27. //
  28. enum
  29. {
  30. SCS_TERM = 0,
  31. SCS_INIT,
  32. SCS_SHAREENDING,
  33. SCS_SHAREPENDING,
  34. SCS_SHARING,
  35. SCS_NUM_STATES
  36. };
  37. //
  38. // Number of supported streams
  39. // THIS MUST MATCH PROT_STR values!
  40. //
  41. #define SC_STREAM_LOW 1
  42. #define SC_STREAM_HIGH 4
  43. #define SC_STREAM_COUNT 4
  44. //
  45. // Sync status constants
  46. //
  47. #define SC_NOT_SYNCED 0
  48. #define SC_SYNCED 1
  49. //
  50. // PROTOTYPES
  51. //
  52. //
  53. // SC_Init()
  54. // SC_Term()
  55. //
  56. // Init and term routines
  57. //
  58. BOOL SC_Init(void);
  59. void SC_Term(void);
  60. UINT SC_Callback(UINT eventType, MCSID mcsID, UINT cbData1, UINT cbData2, UINT cbData3);
  61. BOOL SC_Start(UINT mcsIDLocal);
  62. void SC_End(void);
  63. //
  64. // SC_CreateShare(): S20_CREATE or S20_JOIN
  65. //
  66. BOOL SC_CreateShare(UINT what);
  67. //
  68. // SC_EndShare()
  69. //
  70. void SC_EndShare(void);
  71. void SCCheckForCMCall(void);
  72. #endif // _H_SC