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.

54 lines
2.3 KiB

  1. /**INC+**********************************************************************/
  2. /* Header: nspint.h */
  3. /* */
  4. /* Purpose: Sound Player - 32-bit specific internal header. */
  5. /* */
  6. /* Copyright(C) Microsoft Corporation 1997 */
  7. /* */
  8. /****************************************************************************/
  9. /** Changes:
  10. * $Log: Y:/logs/hydra/tshrclnt/core/nspint.h_v $
  11. *
  12. * Rev 1.1 25 Sep 1997 14:49:54 KH
  13. * SFR1037: Initial Sound player implementation
  14. **/
  15. /**INC-**********************************************************************/
  16. #ifndef _H_NSPINT
  17. #define _H_NSPINT
  18. #define TRC_GROUP TRC_GROUP_CORE
  19. #define TRC_FILE "nspint"
  20. /****************************************************************************/
  21. /* */
  22. /* INLINE FUNCTIONS */
  23. /* */
  24. /****************************************************************************/
  25. __inline DCVOID DCINTERNAL SPPlaySound(DCUINT32 frequency, DCUINT32 duration)
  26. {
  27. DC_BEGIN_FN("SPPlaySound");
  28. /************************************************************************/
  29. /* The parameters have no effect on Win95. A Win95 system with a sound */
  30. /* card always plays the default system sound; a Win95 system without a */
  31. /* sound card always plays the standard system beep. */
  32. /************************************************************************/
  33. #ifndef OS_WINCE
  34. if ( !Beep(frequency, duration) )
  35. #else // OS_WINCE
  36. DC_IGNORE_PARAMETER(frequency);
  37. DC_IGNORE_PARAMETER(duration);
  38. if ( !MessageBeep(0xFFFFFFFF) )
  39. #endif // OS_WINCE
  40. {
  41. TRC_ERR((TB, _T("Beep(%#lx, %lu) failed"), frequency, duration));
  42. TRC_SYSTEM_ERROR("Beep");
  43. }
  44. DC_END_FN();
  45. }
  46. #undef TRC_GROUP
  47. #undef TRC_FILE
  48. #endif /* _H_NSPINT */