首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

在C中有类似C#的SystemProperty.PhoneIncomingCall事件吗?解决办法

2012-01-22 
在C中有类似C#的SystemProperty.PhoneIncomingCall事件吗?在C中有类似C#的SystemProperty.PhoneIncomingCa

在C中有类似C#的SystemProperty.PhoneIncomingCall事件吗?
在C中有类似C#的SystemProperty.PhoneIncomingCall事件吗?

如何调用呢?

[解决办法]
RegistryNotify系列API,监控注册表键值
////////////////////////////////////////////////////////////////////////////////
// PhoneIncomingCall
// Gets a value indicating whether there is an incoming (ringing) call.
#define SN_PHONEINCOMINGCALL_ROOT HKEY_LOCAL_MACHINE
#define SN_PHONEINCOMINGCALL_PATH TEXT("System\\State\\Phone")
#define SN_PHONEINCOMINGCALL_VALUE TEXT("Status")
#define SN_PHONEINCOMINGCALL_BITMASK 0x10000

热点排行