We are trying to Memory Mapping File Technique to share some information across the processes
But when we use this in one of our component which is IE Toolbar it throws access violation exception when IE is running in protected mode.
Can someone help me in this regard??.
If there is any alternative to share memroy within multiple process through which IE do not have any problem while running in protected mode, please also share
Detailed scenario is already explained here Thanks
No Reply Yet???
Anyway I found the Solution, We need to understand the problem first.
When IE is running in Protected Mode its actually take IE process to Low-Integrity level to avoid usage of secure objects from IE. So if a Kernal Object (Memory Map File) is created in Highty-Integrity Process (e.g. from a console or window application) then it would not be accessed from the IE when its in protected mode.
So make this work one has to mark the Kernal Object to Low-Integrity level from the high-Integrity process, this object will be accessible from low-integrity level processes as well though it will make the object vulnerable as well.
after a long research i found(here) the following VC++ code to set a kernal object to the low-integrity level:
to make it workable in C# I converted above windows Apis into C# as follow;