home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / win_lrn / message / messbeep.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  421 b   |  19 lines

  1. /*
  2.  *  MessageBeep
  3.  *
  4.  *  This program demonstrates the use of the MessageBeep function.
  5.  *
  6.  */
  7.  
  8. #include <windows.h>
  9.  
  10. int     PASCAL WinMain (hInstance, hPrevInstance, lpszCmdLine, cmdShow)
  11. HANDLE    hInstance, hPrevInstance;
  12. LPSTR     lpszCmdLine;
  13. int       cmdShow;
  14.   {
  15.   if (MessageBeep (MB_OK) == FALSE)
  16.     MessageBox (NULL, (LPSTR)"MessageBeep Failed", (LPSTR)"ERROR!!!", MB_OK);
  17.   return 0;
  18.   }
  19.