Category : OS/2 Files
Archive   : EMXTST8F.ZIP
Filename : THUNK.C
#include
#include
USHORT _THUNK_FUNCTION (Dos16Beep) (USHORT usFrequency, USHORT usDuration);
void beep (int frequency, int duration)
{
_THUNK_PROLOG (2+2);
_THUNK_SHORT (frequency);
_THUNK_SHORT (duration);
_THUNK_CALL (Dos16Beep);
}
int main (void)
{
beep (440, 200);
beep (880, 200);
beep (440, 200);
return (0);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/