//*************************************************************** // From the book "Win32 System Services: The Heart of Windows 98 // and Windows 2000" // by Marshall Brain // Published by Prentice Hall // // Copyright 1995, by Prentice Hall. // // This code demonstrates a simple Windows program that uses the // Win32 API. //*************************************************************** // winsamp.cpp #include #include int WINAPI WinMain(HANDLE ghInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { Beep (100, 100); MessageBox(NULL, "Sample message", "Winsamp", MB_OK | MB_ICONHAND); return 0; }