how can I make a Windows service beep?

前端 未结 5 1728
栀梦
栀梦 2020-12-06 14:23

I\'ve got a service that acts as a watchdog for several apps/servers. There are no user sessions on this machine. I\'d like the watchdog to be capable of beeping on the

5条回答
  •  萌比男神i
    2020-12-06 14:56

    It may work if you allow it to interact with the desktop (an option configurable somewhere, I can't remember where).

    But personally, I'd have it email me.

    Though maybe you could have it use the task scheduling API to schedule a task for yourself, so next time you log on you can see it.

    I don't know; you've got a few options. I'd avoid beeping though.

提交回复
热议问题