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.

82 lines
3.3 KiB

  1. #ifndef _AUDIOWIZ_H
  2. #define _AUDIOWIZ_H
  3. //for uOptions in wizard calls
  4. #define RUNDUE_CARDCHANGE 0x00000001
  5. #define RUNDUE_NEVERBEFORE 0x00000002
  6. #define RUNDUE_USERINVOKED 0x00000003
  7. #define STARTWITH_BACK 0x10000000
  8. #define ENDWITH_NEXT 0x20000000
  9. //card capabilities
  10. #define SOUNDCARD_NONE 0x00000000
  11. #define SOUNDCARD_PRESENT 0x00000001
  12. #define SOUNDCARD_FULLDUPLEX 0x00000002
  13. #define SOUNDCARD_HAVEAGC 0x00000004
  14. #define SOUNDCARD_HAVERECVOLCNTRL 0x00000008
  15. #define SOUNDCARD_DIRECTSOUND 0x00000010
  16. #define MASKOFFFULLDUPLEX(SoundCap) ((SoundCap) & (0xFFFFFFFF ^ SOUNDCARD_FULLDUPLEX))
  17. #define MASKOFFHAVEAGC(SoundCap) ((SoundCap) & (0xFFFFFFFF ^ SOUNDCARD_HAVEAGC))
  18. #define MASKOFFHAVERECVOLCNTRL(SoundCap) ((SoundCap) & (0xFFFFFFFF ^ SOUNDCARD_HAVERECVOLCNTRL))
  19. #define ISSOUNDCARDPRESENT(SoundCap) (SoundCap & SOUNDCARD_PRESENT)
  20. #define ISSOUNDCARDFULLDUPLEX(SoundCap) (SoundCap & SOUNDCARD_FULLDUPLEX)
  21. #define DOESSOUNDCARDHAVEAGC(SoundCap) (SoundCap & SOUNDCARD_HAVEAGC)
  22. #define DOESSOUNDCARDHAVERECVOLCNTRL(SoundCap) (SoundCap & SOUNDCARD_HAVERECVOLCNTRL)
  23. #define ISDIRECTSOUNDAVAILABLE(SoundCap) (SoundCap & SOUNDCARD_DIRECTSOUND)
  24. #pragma warning (disable:4200)
  25. typedef struct _WIZCONFIG{
  26. BOOL fCancel; //if a dialog was cancelled, this will be set
  27. UINT uFlags; //the higher order WORD specifying the config of this dialog
  28. DWORD dwCustomDataSize;
  29. BYTE pCustomData[];
  30. }WIZCONFIG, *PWIZCONFIG;
  31. #pragma warning (default:4200)
  32. #define AUDIOWIZ_NOCHANGES 0x00000000
  33. #define CALIBVOL_CHANGED 0x00000001
  34. #define SOUNDCARDCAPS_CHANGED 0x00000002
  35. #define CODECPOWER_CHANGED 0x00000004
  36. #define TYPBANDWIDTH_CHANGED 0x00000008
  37. #define SOUNDCARD_CHANGED 0x00000010
  38. #define SPEAKERVOL_CHANGED 0x00000020
  39. #define MASKOFFCALIBVOL_CHANGED(uChange) ((uChange) | (0xFFFFFFFF ^ CALIBVOL_CHANGED))
  40. #define MASKOFFSOUNDCARDCAPS_CHANGED(uChange) ((uChange) | (0xFFFFFFFF ^ SOUNDCARDCAPS_CHANGED))
  41. #define MASKOFFCODECPOWER_CHANGED(uChange) ((uChange) | (0xFFFFFFFF ^ CODECPOWER_CHANGED))
  42. #define MASKOFFTYPBANDWIDTH_CHANGED(uChange) ((uChange) | (0xFFFFFFFF ^ TYPBANDWIDTH_CHANGED))
  43. #define MASKOFFSOUNDCARD_CHANGED(uChange) ((uChange) | (0xFFFFFFFF ^ SOUNDCARD_CHANGED))
  44. typedef struct _AUDIOWIZOUTPUT{
  45. UINT uChanged;
  46. UINT uValid;
  47. UINT uSoundCardCaps;
  48. UINT uCalibratedVol;
  49. UINT uTypBandWidth;
  50. UINT uWaveInDevId;
  51. UINT uWaveOutDevId;
  52. TCHAR szWaveInDevName[MAXPNAMELEN];
  53. TCHAR szWaveOutDevName[MAXPNAMELEN];
  54. } AUDIOWIZOUTPUT, *PAUDIOWIZOUTPUT;
  55. //for now set uDevId to WAVE_MAPPER - later that will allow user to
  56. //select the device.
  57. //uOptions-rundue_userinvoked brings up just the calibration pages
  58. //uOptions-rundue_cardchange or rundue_neverbefore also invoked full duplex check pages.
  59. BOOL GetAudioWizardPages(UINT uOptions, UINT uDevId,
  60. LPPROPSHEETPAGE *plpPropSheetPages, PWIZCONFIG *plpWizConfig,LPUINT lpuNumPages);
  61. void ReleaseAudioWizardPages(LPPROPSHEETPAGE lpPropSheetPages,
  62. PWIZCONFIG pWizConfig,PAUDIOWIZOUTPUT pAudioWizOut);
  63. // Global flag keeps setting that changed for windows msg broadcast
  64. INT_PTR CallAudioCalibWizard(HWND hwndOwner, UINT uOptions,
  65. UINT uDevId,PAUDIOWIZOUTPUT pAudioWizOut,INT iSetAgc);
  66. VOID CmdAudioCalibWizard(HWND hwnd);
  67. #endif //#ifndef _AUDIOWIZ_H
  68.