For NT 4.0
I want generate a beep with frequency and duration: the api 'Beep' is synchronous, however. So how can I do something similar asynchronously.
(I've tried using a separate thread just for beeping, but because the thread isn't actually sleeping during the
beep call, it prevents the rest of the process running as well.)