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
2.5 KiB

  1. /****************************************************************************/
  2. /* aoaapi.c */
  3. /* */
  4. /* RDP Order Accumulation API functions */
  5. /* */
  6. /* Copyright(c) Microsoft, PictureTel 1993-1997 */
  7. /* Copyright(c) Microsoft 1997-1999 */
  8. /****************************************************************************/
  9. #include <precomp.h>
  10. #pragma hdrstop
  11. #define TRC_FILE "aoaapi"
  12. #define TRC_GROUP TRC_GROUP_DCSHARE
  13. #include <as_conf.hpp>
  14. #include <aoacom.c>
  15. /****************************************************************************/
  16. /* OA_Init */
  17. /****************************************************************************/
  18. void RDPCALL SHCLASS OA_Init(void)
  19. {
  20. DC_BEGIN_FN("OA_Init");
  21. #define DC_INIT_DATA
  22. #include <aoadata.c>
  23. #undef DC_INIT_DATA
  24. DC_END_FN();
  25. }
  26. /****************************************************************************/
  27. /* OA_UpdateShm */
  28. /* */
  29. /* Updates the OA shared memory */
  30. /****************************************************************************/
  31. void RDPCALL SHCLASS OA_UpdateShm(void)
  32. {
  33. DC_BEGIN_FN("OA_UpdateShm");
  34. if (oaSyncRequired) {
  35. OA_ResetOrderList();
  36. oaSyncRequired = FALSE;
  37. }
  38. DC_END_FN();
  39. }
  40. /****************************************************************************/
  41. /* OA_SyncUpdatesNow */
  42. /* */
  43. /* Called when a sync operation is required. */
  44. /* */
  45. /* Discards all outstanding orders. */
  46. /****************************************************************************/
  47. void RDPCALL SHCLASS OA_SyncUpdatesNow(void)
  48. {
  49. DC_BEGIN_FN("OA_SyncUpdatesNow");
  50. oaSyncRequired = TRUE;
  51. DCS_TriggerUpdateShmCallback();
  52. DC_END_FN();
  53. }