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.

64 lines
2.2 KiB

  1. /****************************************************************************/
  2. // aupafn.h
  3. //
  4. // Function prototypes for UP API functions
  5. //
  6. // Copyright (C) 1996-2000 Microsoft Corporation
  7. /****************************************************************************/
  8. void RDPCALL UP_Init(void);
  9. void RDPCALL SHCLASS UP_ReceivedPacket(
  10. PTS_SUPPRESS_OUTPUT_PDU pSupOutPDU,
  11. unsigned DataLength,
  12. LOCALPERSONID locPersonID);
  13. NTSTATUS RDPCALL UP_SendUpdates(BYTE *pFrameBuf,
  14. UINT32 frameBufWidth,
  15. PPDU_PACKAGE_INFO pPkgInfo);
  16. void RDPCALL UP_SyncNow(BOOLEAN);
  17. BOOL RDPCALL UP_SendBeep(UINT32 duration, UINT32 frequency);
  18. BOOL RDPCALL UP_PartyJoiningShare(LOCALPERSONID locPersonID,
  19. unsigned oldShareSize);
  20. void RDPCALL UP_PartyLeftShare(LOCALPERSONID personID,
  21. unsigned newShareSize);
  22. BOOL RDPCALL UPSendSyncToken(PPDU_PACKAGE_INFO);
  23. NTSTATUS RDPCALL UPSendOrders(PPDU_PACKAGE_INFO pPkgInfo);
  24. unsigned RDPCALL UPFetchOrdersIntoBuffer(PBYTE, unsigned *, PUINT);
  25. void CALLBACK UPEnumSoundCaps(LOCALPERSONID, UINT_PTR,
  26. PTS_CAPABILITYHEADER);
  27. /****************************************************************************/
  28. /* UP_Term */
  29. /****************************************************************************/
  30. void RDPCALL UP_Term(void)
  31. {
  32. upfSyncTokenRequired = FALSE;
  33. }
  34. /****************************************************************************/
  35. // UP_UpdateHeaderSize
  36. //
  37. // Called in UP and SC when the fast-path output state changes to recalculate
  38. // orders header size.
  39. /****************************************************************************/
  40. __inline void RDPCALL UP_UpdateHeaderSize()
  41. {
  42. // Precalculate the header space needed for update-orders PDUs.
  43. if (scUseFastPathOutput)
  44. upUpdateHdrSize = scUpdatePDUHeaderSpace + 2;
  45. else
  46. upUpdateHdrSize = scUpdatePDUHeaderSpace +
  47. FIELDOFFSET(TS_UPDATE_ORDERS_PDU_DATA, orderList);
  48. }