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.

119 lines
3.8 KiB

  1. /****************************************************************************/
  2. // ascafn.h
  3. //
  4. // Function prototypes for SC functions
  5. //
  6. // Copyright (C) 1996-2000 Microsoft Corporation
  7. /****************************************************************************/
  8. BOOL RDPCALL SC_Init(PVOID);
  9. void RDPCALL SC_Update();
  10. void RDPCALL SC_Term(void);
  11. BOOL RDPCALL SC_CreateShare(void);
  12. #ifdef DC_HICOLOR
  13. BOOL RDPCALL SC_ShadowSyncShares(PTS_COMBINED_CAPABILITIES pCaps,
  14. ULONG capsLen);
  15. #else
  16. BOOL RDPCALL SC_ShadowSyncShares(void);
  17. #endif
  18. void RDPCALL SC_EndShare(BOOLEAN);
  19. void RDPCALL SC_OnDisconnected(UINT32);
  20. void RDPCALL SC_OnDataReceived(PBYTE, NETPERSONID, unsigned, UINT32);
  21. void RDPCALL SC_OnShadowDataReceived(PBYTE, NETPERSONID, unsigned, UINT32);
  22. BOOL RDPCALL SC_SendData(PTS_SHAREDATAHEADER, UINT32, UINT32, UINT32,
  23. NETPERSONID);
  24. NTSTATUS __fastcall SC_AllocBuffer(PPVOID, UINT32);
  25. void __fastcall SC_FreeBuffer(PVOID);
  26. NETPERSONID RDPCALL SC_GetMyNetworkPersonID(void);
  27. NETPERSONID RDPCALL SC_LocalIDToNetworkID(LOCALPERSONID);
  28. BOOL RDPCALL SC_IsLocalPersonID(LOCALPERSONID);
  29. BOOL RDPCALL SC_IsNetworkPersonID(NETPERSONID);
  30. void RDPCALL SC_SetCapabilities(void);
  31. void RDPCALL SC_UpdateShm(void);
  32. BOOL RDPCALL SC_IsAutoReconnectEnabled();
  33. BOOL RDPCALL SC_IsSecureChecksum();
  34. void RDPCALL SC_SetCombinedCapabilities(UINT, PTS_COMBINED_CAPABILITIES);
  35. void RDPCALL SC_GetCombinedCapabilities(LOCALPERSONID, UINT *,
  36. PTS_COMBINED_CAPABILITIES *);
  37. NTSTATUS RDPCALL SC_AddPartyToShare(NETPERSONID, PTS_COMBINED_CAPABILITIES,
  38. unsigned);
  39. NTSTATUS RDPCALL SC_RemovePartyFromShare(NETPERSONID);
  40. LOCALPERSONID __fastcall SC_NetworkIDToLocalID(NETPERSONID);
  41. BOOL RDPCALL SC_ValidateNetworkID(NETPERSONID, PLOCALPERSONID);
  42. NTSTATUS __fastcall SC_FlushAndAllocPackage(PPDU_PACKAGE_INFO);
  43. PBYTE __fastcall SC_GetSpaceInPackage(PPDU_PACKAGE_INFO, unsigned);
  44. void RDPCALL SC_AddToPackage(PPDU_PACKAGE_INFO, unsigned, BOOL);
  45. BOOL RDPCALL SC_KeepAlive(void);
  46. void RDPCALL SC_RedrawScreen(void);
  47. // Used for shadowing
  48. NTSTATUS RDPCALL SC_SendServerCert(PSHADOWCERT, ULONG);
  49. BOOL RDPCALL SC_SaveServerCert(PTS_SERVER_CERTIFICATE_PDU, ULONG);
  50. NTSTATUS RDPCALL SC_SendClientRandom(PBYTE, ULONG);
  51. BOOL RDPCALL SC_SaveClientRandom(PTS_CLIENT_RANDOM_PDU, ULONG);
  52. NTSTATUS RDPCALL SC_GetSecurityData(PSD_IOCTL);
  53. void RDPCALL SCParseGeneralCaps();
  54. void RDPCALL SC_FlushPackage(PPDU_PACKAGE_INFO);
  55. #ifdef __cplusplus
  56. /****************************************************************************/
  57. /* API FUNCTION: SC_InShare */
  58. /* */
  59. /* Returns whether the SC is in a share or call. */
  60. /* */
  61. /* RETURNS: */
  62. /* */
  63. /* TRUE = SC is in a share or call. */
  64. /* FALSE = SC is not in a share or call. */
  65. /****************************************************************************/
  66. BOOL RDPCALL SC_InShare(void)
  67. {
  68. /************************************************************************/
  69. /* We do not check the state for this call - it can usefully be made */
  70. /* even when SC has not been initialized (or after it has been */
  71. /* terminated). */
  72. /************************************************************************/
  73. return (scState == SCS_IN_SHARE);
  74. }
  75. #endif // __cplusplus