Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windowing
Windows
Windows Reference
Functions
 ChangeWindowMessageFilter Function
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.

Return Value

TRUE if successful; otherwise, FALSE. To get extended error information, call GetLastError.

Note  A message can be successfully removed from the filter, but that is not a guarantee that the message will be blocked. See the Remarks section for more details.

Remarks

UIPI is a security feature that prevents messages from being received from a lower integrity level sender. All such messages with a value above WM_USER are blocked by default. The filter, somewhat contrary to intuition, is a list of messages that are allowed through. Therefore, adding a message to the filter allows that message to be received from a lower integrity sender, while removing a message blocks that message from being received.

Certain messages with a value less than WM_USER are required to pass through the filter regardless of the filter setting. You can call this function to remove one of those messages from the filter and it will return TRUE. However, the message will still be received by the calling process.

Processes at or below SECURITY_MANDATORY_LOW_RID are not allowed to change the filter. If those processes call this function, it will fail.

For more information on integrity levels, see Understanding and Working in Protected Mode Internet Explorer.

Function Information

Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systems Windows Vista
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
protection mode      saltwo   |   Edit   |  
I am new to Windows Vista, and do not understand the protection mode. On the bottom of my screen, the words Protected Mode:On are printed, but for whatever reason, I find many of my areas, like one of the Auction Sites, and others, will not allow the green bar to go accross and open the program for me. Is this because of the Protection Mode? If so, how do I get past it, as when clicked it brings up a load of options and/or areas in a box, and I have no idea, which one is the one to hit, to allow me to access the Auction Site, and some of the other areas. Any advice would be helpful. many thanks Saltwo
Tags What's this?: salwo (x) Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker