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.

180 lines
4.0 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (C) 1992 - 1996 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // waveio.h
  13. //
  14. // Description:
  15. // Contains structure definitions and prototypes for the functions in
  16. // waveio.c. Also contains Win16/Win32 portability definitions.
  17. //
  18. //
  19. //==========================================================================;
  20. #ifndef _INC_WAVEIO
  21. #define _INC_WAVEIO // #defined if file has been included
  22. #ifndef RC_INVOKED
  23. #pragma pack(1) // assume byte packing throughout
  24. #endif
  25. #ifndef EXTERN_C
  26. #ifdef __cplusplus
  27. #define EXTERN_C extern "C"
  28. #else
  29. #define EXTERN_C extern
  30. #endif
  31. #endif
  32. #ifdef __cplusplus
  33. extern "C" // assume C declarations for C++
  34. {
  35. #endif
  36. #ifdef WIN32
  37. //
  38. // for compiling Unicode
  39. //
  40. #ifndef SIZEOF
  41. #ifdef UNICODE
  42. #define SIZEOF(x) (sizeof(x)/sizeof(WCHAR))
  43. #else
  44. #define SIZEOF(x) sizeof(x)
  45. #endif
  46. #endif
  47. #else
  48. //
  49. // stuff for Unicode in Win 32--make it a noop in Win 16
  50. //
  51. #ifndef TEXT
  52. #define TEXT(a) a
  53. #endif
  54. #ifndef SIZEOF
  55. #define SIZEOF(x) sizeof(x)
  56. #endif
  57. #ifndef _TCHAR_DEFINED
  58. #define _TCHAR_DEFINED
  59. typedef char TCHAR, *PTCHAR;
  60. typedef unsigned char TBYTE, *PTUCHAR;
  61. typedef PSTR PTSTR, PTCH;
  62. typedef LPSTR LPTSTR, LPTCH;
  63. typedef LPCSTR LPCTSTR;
  64. #endif
  65. #endif
  66. //
  67. //
  68. //
  69. //
  70. //
  71. #ifdef WIN32
  72. #define WIOAPI _stdcall
  73. #else
  74. #ifdef _WINDLL
  75. #define WIOAPI FAR PASCAL _loadds
  76. #else
  77. #define WIOAPI FAR PASCAL
  78. #endif
  79. #endif
  80. //
  81. //
  82. //
  83. typedef UINT WIOERR;
  84. //
  85. //
  86. //
  87. //
  88. typedef struct tWAVEIOCB
  89. {
  90. DWORD dwFlags;
  91. HMMIO hmmio;
  92. DWORD dwDataOffset;
  93. DWORD dwDataBytes;
  94. DWORD dwDataSamples;
  95. LPWAVEFORMATEX pwfx;
  96. #if 0
  97. HWAVEOUT hwo;
  98. DWORD dwBytesLeft;
  99. DWORD dwBytesPerBuffer;
  100. DISP FAR * pDisp;
  101. INFOCHUNK FAR * pInfo;
  102. #endif
  103. } WAVEIOCB, *PWAVEIOCB, FAR *LPWAVEIOCB;
  104. //
  105. // error returns from waveio functions
  106. //
  107. #define WIOERR_BASE (0)
  108. #define WIOERR_NOERROR (0)
  109. #define WIOERR_ERROR (WIOERR_BASE+1)
  110. #define WIOERR_BADHANDLE (WIOERR_BASE+2)
  111. #define WIOERR_BADFLAGS (WIOERR_BASE+3)
  112. #define WIOERR_BADPARAM (WIOERR_BASE+4)
  113. #define WIOERR_BADSIZE (WIOERR_BASE+5)
  114. #define WIOERR_FILEERROR (WIOERR_BASE+6)
  115. #define WIOERR_NOMEM (WIOERR_BASE+7)
  116. #define WIOERR_BADFILE (WIOERR_BASE+8)
  117. #define WIOERR_NODEVICE (WIOERR_BASE+9)
  118. #define WIOERR_BADFORMAT (WIOERR_BASE+10)
  119. #define WIOERR_ALLOCATED (WIOERR_BASE+11)
  120. #define WIOERR_NOTSUPPORTED (WIOERR_BASE+12)
  121. //
  122. // function prototypes and flag definitions
  123. //
  124. WIOERR WIOAPI wioFileClose
  125. (
  126. LPWAVEIOCB pwio,
  127. DWORD fdwClose
  128. );
  129. WIOERR WIOAPI wioFileOpen
  130. (
  131. LPWAVEIOCB pwio,
  132. LPCTSTR pszFilePath,
  133. DWORD fdwOpen
  134. );
  135. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  136. //
  137. //
  138. //
  139. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  140. #ifndef RC_INVOKED
  141. #pragma pack() // revert to default packing
  142. #endif
  143. #ifdef __cplusplus
  144. } // end of extern "C" {
  145. #endif
  146. #endif // _INC_WAVEIO