how can I make a Windows service beep?

前端 未结 5 1723
栀梦
栀梦 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条回答
  •  时光取名叫无心
    2020-12-06 15:12

    Call CreateFile on \device\beep, then send down IOCTL_BEEP_SET (see http://www.koders.com/c/fidFEC3527B9D951559D62722A9C0C603863106CA9B.aspx for details)

提交回复
热议问题