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.

72 lines
1.9 KiB

  1. /////////////////////////////////////////////////////////////////////
  2. //
  3. // Module: tsstream.h
  4. //
  5. // Purpose: Sound redirection shared data definitions
  6. //
  7. // Copyright(C) Microsoft Corporation 2000
  8. //
  9. // History: 4-10-2000 vladimis [created]
  10. //
  11. /////////////////////////////////////////////////////////////////////
  12. #ifndef _TSSTREAM_H
  13. #define _TSSTREAM_H
  14. #include "rdpsndp.h"
  15. #define TSSND_MAX_BLOCKS 2
  16. #define TSSND_TOTALSTREAMSIZE (TSSND_MAX_BLOCKS * TSSND_BLOCKSIZE)
  17. #define TSSND_STREAMNAME L"Local\\RDPSoundStream"
  18. #define TSSND_DATAREADYEVENT L"Local\\RDPSoundDataReadyEvent"
  19. #define TSSND_STREAMISEMPTYEVENT L"Local\\RDPSoundStreamIsEmptyEvent"
  20. #define TSSND_STREAMMUTEX L"Local\\RDPSoundStreamMutex"
  21. #define TSSND_WAITTOINIT L"Local\\RDPSoundWaitInit"
  22. #define _NEG_IDX ((((BYTE)-1) >> 1) + 1)
  23. #define TSSNDFLAGS_MUTE 1
  24. typedef struct {
  25. //
  26. // commands
  27. //
  28. BOOL bNewVolume;
  29. BOOL bNewPitch;
  30. //
  31. // sound cap data
  32. //
  33. DWORD dwSoundCaps;
  34. DWORD dwSoundFlags;
  35. DWORD dwVolume;
  36. DWORD dwPitch;
  37. //
  38. // data control
  39. //
  40. BYTE cLastBlockQueued;
  41. BYTE cLastBlockSent;
  42. BYTE cLastBlockConfirmed;
  43. //
  44. // data block
  45. //
  46. // See the PVOID... DON'T TOUCH IT
  47. // it has to be before pSndData, otherwise
  48. // it won't be aligned and will crash on WIN64
  49. // ( and all other RISC platforms )
  50. #ifdef _WIN64
  51. PVOID pPad;
  52. #else
  53. //
  54. // align with 64bit version of the stream
  55. // needed for wow64 to work smootly
  56. //
  57. DWORD dwPad1;
  58. DWORD dwPad2;
  59. #endif // !_WIN64
  60. BYTE pSndData[TSSND_MAX_BLOCKS * TSSND_BLOCKSIZE];
  61. } SNDSTREAM, *PSNDSTREAM;
  62. #endif // !_TSSTREAM_H