Microsoft Knowledge Base Email Alertz

In Microsoft Windows NT 4.0-based systems and earlier, if you call the

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 297542 - Last Review: November 21, 2006 - Revision: 4.1

PRB: MessageBeep(-1) Is Not Redirected to Terminal Server Clients

This article was previously published under Q297542

SYMPTOMS

In Microsoft Windows NT 4.0-based systems and earlier, if you call the MessageBeep function with -1 specified for the uType parameter, a beep is played through the computer speakers instead of through the sound card. For an application running in a Terminal Server session, this beep is redirected to the client computer, which therefore permits limited audio feedback to be sent to the client. In Windows 2000, MessageBeep(-1) always causes a beep to be played through the sound card and is not redirected to the client.

CAUSE

In Windows NT 4.0 and earlier, MessageBeep(-1) results in a call to the Beep function. The Beep function is always redirected to the client computer in both Windows NT 4.0 and Windows 2000. In Windows 2000, MessageBeep does not call the Beep function.

RESOLUTION

If you want an application to provide audio feedback to Terminal Server clients, make it call the Beep function directly.

MORE INFORMATION

Depending on how the system is configured, MessageBeep(0) can also cause a beep to be played through the computer speakers on a Windows NT 4.0-based system. As with MessageBeep(-1), MessageBeep(0) always causes a beep to be played through the sound card on a Windows 2000-based system, and the MessageBeep function is not redirected to a Terminal Server client.

APPLIES TO
  • Microsoft Win32 Application Programming Interface, when used with:
    • Microsoft Windows 2000 Standard Edition
Keywords: 
kbapi kbkernbase kbprb kbtermserv KB297542
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate