ChangeWindowMessageFilter: what does this really do??

Posted: 11-13-2006, 03:54 PM
Hello,

I believe I have the situation where a "low" privileged app is sending
windows messages to an IE7 in protected mode and thereby the messages are not
allowed to pass thru.

How can I get these messages to be allow to pass?

Is ChangeWindowMessageFilter the answer?

I've tried to implement this but cannot get it to compile. Errors:

'MSGFLT_ADD' : undeclared identifier
and
'ChangeWindowMessageFilter': identifier not found


Where is this api defined? Documentation says Declared in Winuser.h,
include Windows.h but apparently not in the version I have....

I am running Visual Studio 2005.

--
Thanks so much,

george

_________________________
George S. Lockwood
Lead Client Developer
peoplePC, an EarthLink company

Reply With Quote

Responses to "ChangeWindowMessageFilter: what does this really do??"

Jimmy Brush
Guest
Posts: n/a
 
Re: ChangeWindowMessageFilter: what does this really do??
Posted: 11-13-2006, 09:41 PM
Hello,

Have you installed the Windows SDK for Windows Vista and updated your Visual
Studio to reference the new SDK?

http://www.microsoft.com/downloads/d...displaylang=en

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

Reply With Quote
GSLockwood (IUnknown)
Guest
Posts: n/a
 
Re: ChangeWindowMessageFilter: what does this really do??
Posted: 11-13-2006, 09:50 PM
I'll get it now. thanks for the link!
--
Thanks so much,

george

_________________________
George S. Lockwood
Lead Client Developer
peoplePC, an EarthLink company



"Jimmy Brush" wrote:
> Hello,
>
> Have you installed the Windows SDK for Windows Vista and updated your Visual
> Studio to reference the new SDK?
>
> http://www.microsoft.com/downloads/d...displaylang=en
>
> --
> - JB
>
> Windows Vista Support Faq
> http://www.jimmah.com/vista/
>
Reply With Quote
Jimmy Brush
Guest
Posts: n/a
 
Re: ChangeWindowMessageFilter: what does this really do??
Posted: 11-13-2006, 10:37 PM
I forgot to answer your first question ...
> I believe I have the situation where a "low" privileged app
> is sending windows messages to an IE7 in protected mode
> and thereby the messages are not allowed to pass thru.
Vista prohibits applications of different integrity levels from sending most
windows messages between each other. IE in protected mode runs in LOW
integrity; normal applications run in MEDIUM; and programs running with
administrator privileges run as HIGH. (There is also a SYSTEM level for some
system services).

ChangeWindowMessageFilter allows an application in a higher integrity level
to specify additional windows messages that it wants to accept from
applications running in a lower privilege level.

For example, if you run say NOTEPAD.exe, it will have a MEDIUM integirty
level. If you then run an administrative application, let's use task
scheduler as an example, it will run with HIGH integrity level.

notepad is isolated from task scheduler because they are running in
different integrity levels; the system prevents notepad from sending task
scheduler most window messages, prevents it from injecting code into task
scheduler via hooks, prevents it from writing into its process memory, etc,
etc, because of the difference in integrity level.

The ChangeWindowMessageFilter api can be used in this example by task
scheduler to allow it to receive additional window messages from notepad.

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

Reply With Quote
GSLockwood (IUnknown)
Guest
Posts: n/a
 
Re: ChangeWindowMessageFilter: what does this really do??
Posted: 11-21-2006, 01:05 AM
I downloaded the new SDK and installed it.

To make things easier, I just got the definition of
ChangeWindowMessageFilter from its file in the new "v6.0" include file.

I then copied the User32.lib from the "v6.0" lib dir into my project's dir.

and I'm getting a link error (unresolved external).

So apparently it is not found in User32.lib ??

Is there a reason I cannot build this on a WinXP SP2 system?



--
Thanks so much,

george

_________________________
George S. Lockwood
Lead Client Developer
peoplePC, an EarthLink company



"GSLockwood (IUnknown)" wrote:
> I'll get it now. thanks for the link!
> --
> Thanks so much,
>
> george
>
> _________________________
> George S. Lockwood
> Lead Client Developer
> peoplePC, an EarthLink company
>
>
>
> "Jimmy Brush" wrote:
>
> > Hello,
> >
> > Have you installed the Windows SDK for Windows Vista and updated your Visual
> > Studio to reference the new SDK?
> >
> > http://www.microsoft.com/downloads/d...displaylang=en
> >
> > --
> > - JB
> >
> > Windows Vista Support Faq
> > http://www.jimmah.com/vista/
> >
Reply With Quote
Jimmy Brush
Guest
Posts: n/a
 
Re: ChangeWindowMessageFilter: what does this really do??
Posted: 11-21-2006, 01:59 PM
It should compile fine on XP. I don't think the linker looks inside your
project's dir for lib files by default. Try telling the linker the exact
location of the lib file (path and filename) using the project's settings.


--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

Reply With Quote
GSLockwood (IUnknown)
Guest
Posts: n/a
 
Re: ChangeWindowMessageFilter: what does this really do??
Posted: 11-21-2006, 04:25 PM
Actually I have (".\User32.lib")

--
Thanks so much,

george

_________________________
George S. Lockwood
Lead Client Developer
peoplePC, an EarthLink company



"Jimmy Brush" wrote:
> It should compile fine on XP. I don't think the linker looks inside your
> project's dir for lib files by default. Try telling the linker the exact
> location of the lib file (path and filename) using the project's settings.
>
>
> --
> - JB
>
> Windows Vista Support Faq
> http://www.jimmah.com/vista/
>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump