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.

108 lines
2.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: validate.h
  4. //
  5. // Description:
  6. //
  7. //
  8. //@@BEGIN_MSINTERNAL
  9. // Development Team:
  10. // Alper Selcuk
  11. //
  12. // History: Date Author Comment
  13. // 02/28/02 AlperS Created
  14. //
  15. // To Do: Date Author Comment
  16. //
  17. //@@END_MSINTERNAL
  18. //
  19. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  20. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  21. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  22. // PURPOSE.
  23. //
  24. // Copyright (c) 2002-2002 Microsoft Corporation. All Rights Reserved.
  25. //
  26. //---------------------------------------------------------------------------
  27. #ifndef _VALIDATE_H_
  28. #define _VALIDATE_H_
  29. //---------------------------------------------------------------------------
  30. // Local prototypes
  31. //---------------------------------------------------------------------------
  32. //---------------------------------------------------------------------------
  33. // Validation Routines
  34. NTSTATUS
  35. ValidateAudioDataFormats(
  36. PKSDATAFORMAT pDataFormat
  37. );
  38. NTSTATUS
  39. ValidateDataFormat(
  40. PKSDATAFORMAT pDataFormat
  41. );
  42. NTSTATUS
  43. ValidateDeviceIoControl(
  44. PIRP pIrp
  45. );
  46. BOOL
  47. IsSysaudioIoctlCode(
  48. ULONG IoControlCode
  49. );
  50. NTSTATUS
  51. SadValidateConnectionState(
  52. IN PIRP pIrp,
  53. IN PKSPROPERTY pProperty,
  54. IN OUT PKSSTATE pState
  55. );
  56. NTSTATUS
  57. SadValidateAudioQuality(
  58. IN PIRP pIrp,
  59. IN PKSPROPERTY pProperty,
  60. IN PLONG pQuality
  61. );
  62. NTSTATUS
  63. SadValidateAudioMixLevelCaps(
  64. IN PIRP pIrp,
  65. IN PKSPROPERTY pProperty,
  66. IN OUT PVOID pVoid
  67. );
  68. NTSTATUS
  69. SadValidateAudioStereoEnhance(
  70. IN PIRP pIrp,
  71. IN PKSPROPERTY pProperty,
  72. IN PKSAUDIO_STEREO_ENHANCE pStereoEnhance
  73. );
  74. NTSTATUS
  75. SadValidateAudioPreferredStatus(
  76. IN PIRP pIrp,
  77. IN PKSPROPERTY pProperty,
  78. IN PKSAUDIO_PREFERRED_STATUS pPreferredStatus
  79. );
  80. NTSTATUS
  81. SadValidateDataFormat(
  82. IN PIRP pIrp,
  83. IN PKSPROPERTY pProperty,
  84. PKSDATAFORMAT pDataFormat
  85. );
  86. NTSTATUS
  87. SadValidateDataIntersection(
  88. IN PIRP pIrp,
  89. IN PKSP_PIN pPin
  90. );
  91. #endif