在vista以上的系统,有些程序需要管理员的权限,所以需要服务,这个函数可以解决低权和高权程序之间的沟通。
notice:This API only can receive msg from lower privilege app, If a service A run APP B and B use ChangeWindowMessageFilter,B can't receive msg from A.
ChangeWindowMessageFilter Function
Adds or removes a message from the User Interface Privilege Isolation (UIPI) message filter.
Syntax
BOOL ChangeWindowMessageFilter( UINT message, DWORD dwFlag );
Parameters
message
- [in] Specifies the message to add to or remove from the filter.
dwFlag- [in] Specifies the action to be performed. One of the following values.
MSGFLT_ADD
- Adds the message to the filter. This has the effect of allowing the message to be received.
MSGFLT_REMOVE- Removes the message from the filter. This has the effect of blocking the message.