--- os2sdk/demos/examples/beepc/beepc.c 2018/08/09 12:25:13 1.1 +++ os2sdk/demos/examples/beepc/beepc.c 2018/08/09 12:26:18 1.1.1.2 @@ -1,23 +1,26 @@ /* - * Example of DOSBEEP usage + * Example of DosBeep usage * * This call generates a tone from the speaker with the specified * frequency and duration. This program works in Family API mode. * * Compile as: cl -AL -Lp -G0 beepc.c * - * Copyright (C) Microsoft Corp. 1986 + * Created by Microsoft Corp. 1986 */ -#include +#define INCL_DOSPROCESS + +#include +#include main() { - unsigned int Frequency; /* in Hertz (range 0x25 to 0x7fff) */ - unsigned int Duration; /* in milliseconds */ + UINT Frequency; /* in Hertz (range 0x25 to 0x7fff) */ + UINT Duration; /* in milliseconds */ Frequency = 1000; Duration = 500; /* 1/2 second */ - DOSBEEP(Frequency, Duration); /* Produce tone */ + DosBeep(Frequency, Duration); /* Produce tone */ }