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.

110 lines
3.9 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: fdtcfg.h
  6. * Content: Definitions the configure the full duplex test app
  7. * History:
  8. * Date By Reason
  9. * ============
  10. * 08/20/99 pnewson created
  11. * 10/28/99 pnewson Bug #114176 updated DVSOUNDDEVICECONFIG struct
  12. * 11/04/99 pnewson Bug #115279 removed unused const global
  13. * 11/30/99 pnewson default device mapping support
  14. * 01/21/2000 pnewson changed registry key names
  15. * 03/01/2002 simonpow Added gc_szLaunchAppName to support fully specifying
  16. * exe path when calling CreateProcess
  17. ***************************************************************************/
  18. #ifndef _FDTCFG_H_
  19. #define _FDTCFG_H_
  20. // the name of the DLL where the direct voice functions reside
  21. extern const char gc_szDVoiceDLLName[];
  22. // the name of the DLL where the required resources are
  23. extern const char gc_szResDLLName[];
  24. // the name of the DirectSound DLL
  25. extern const char gc_szDSoundDLLName[];
  26. // the name of the GetDeviceID DirectSound function
  27. extern const char gc_szGetDeviceIDFuncName[];
  28. // command line related definitions
  29. extern const TCHAR gc_szPriorityCommand[];
  30. extern const TCHAR gc_szFullDuplexCommand[];
  31. extern const TCHAR gc_szLaunchAppName[];
  32. // registry related definitions
  33. extern const WCHAR gc_wszKeyName_AudioConfig[];
  34. extern const WCHAR gc_wszValueName_Started[];
  35. extern const WCHAR gc_wszValueName_FullDuplex[];
  36. extern const WCHAR gc_wszValueName_HalfDuplex[];
  37. extern const WCHAR gc_wszValueName_MicDetected[];
  38. // the name of the mutex used to ensure only one app instance
  39. extern const TCHAR gc_szMutexName[];
  40. // the event names
  41. extern const TCHAR gc_szPriorityEventName[];
  42. extern const TCHAR gc_szFullDuplexEventName[];
  43. extern const TCHAR gc_szPriorityReplyEventName[];
  44. extern const TCHAR gc_szFullDuplexReplyEventName[];
  45. // the shared memory names, and sizes
  46. extern const TCHAR gc_szPriorityShMemName[];
  47. extern const DWORD gc_dwPriorityShMemSize;
  48. extern const TCHAR gc_szFullDuplexShMemName[];
  49. extern const DWORD gc_dwFullDuplexShMemSize;
  50. // the send mutex names
  51. extern const TCHAR gc_szPrioritySendMutex[];
  52. extern const TCHAR gc_szFullDuplexSendMutex[];
  53. // the error message and caption to use if the FormatMessage function fails
  54. extern const TCHAR gc_szUnknownMessage[];
  55. extern const TCHAR gc_szUnknownMessageCaption[];
  56. // The largest string we will accept from a string resource
  57. // or the system message table
  58. #define MAX_STRING_RESOURCE_SIZE 512
  59. // The number of milliseconds we will wait for the child processes
  60. // to exit before we timeout.
  61. extern const DWORD gc_dwChildWaitTimeout;
  62. // The number of milliseconds we will wait for the child processes
  63. // to startup and signal the supervisor before we timeout.
  64. extern const DWORD gc_dwChildStartupTimeout;
  65. // The number of milliseconds a process will wait for receive
  66. // and reply signals
  67. extern const DWORD gc_dwCommandReceiveTimeout;
  68. extern const DWORD gc_dwCommandReplyTimeout;
  69. // The number of milliseconds a process will wait to acquire the
  70. // mutex used to make a SendCommand() call.
  71. extern const DWORD gc_dwSendMutexTimeout;
  72. // The number of milliseconds to wait for a dialog box to spawn
  73. extern const DWORD gc_dwDialogTimeout;
  74. // The number of milliseconds of audio in a DirectSound buffer
  75. extern const DWORD gc_dwFrameSize;
  76. // The wave formats to try
  77. extern const WAVEFORMATEX gc_rgwfxPrimaryFormats[];
  78. extern const WAVEFORMATEX gc_wfxSecondaryFormat;
  79. extern const WAVEFORMATEX gc_rgwfxCaptureFormats[];
  80. // In the loopback test, how long to wait for the loopback test
  81. // thread proc to exit.
  82. extern const DWORD gc_dwLoopbackTestThreadTimeout;
  83. // the devices to test if the user passes null to CheckAudioSetup
  84. extern const GUID gc_guidDefaultCaptureDevice;
  85. extern const GUID gc_guidDefaultRenderDevice;
  86. #endif