locked
Multiple shared memories of same name exists in widnows XP RRS feed

  • Question

  • Hi

    I have created named file mapping object for file access (at windows XP) by using the CreateFileMapping API with the name "SHAREDMRY_XXMEM:C::WINDOWS:WP.txt".

    but when running my executable "CalImp.exe" and capture the output of "Handle.exe" (Microsoft tool) then output is as follows:

    4C: Section       \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1A0: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1B4: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1C0: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt

    As per my understanding Handle.exe is showing that multiple file mapping objects has been created of same name.

    But as per the MSDN for the documentation of CreateFileMapping API it is mentioned that If this name matches the name of an existing mapping object, the function requests access to the object with the protection that flProtect specifies.

    Please suggest how it is possible that output of Handle.exe is showing multiple instance of same name file mapping object.

    Thank You

    Wednesday, July 18, 2012 2:01 PM

Answers

  • Handle is a utility that displays information about open handles for any process in the syste. It uses for show which process open the specified Named  file mapping object 

    Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/

    • Proposed as answer by Helen Zhao Thursday, July 19, 2012 6:03 AM
    • Marked as answer by Jesse Jiang Friday, August 10, 2012 6:27 AM
    Wednesday, July 18, 2012 4:47 PM
  • Hi Selvam

    Thanks for your reply.

    can you please suggest what the following entries exactly meant for:

    4C: Section       \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1A0: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1B4: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1C0: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt

    As per my understanding above entries means that process "CalImp.exe" opens 4 handle for the named file mapping object "SHAREDMRY_XXMEM:C::WINDOWS:WP.txt".

    Please suggest my above understanding is correct?

    Thank You

    • Marked as answer by Jesse Jiang Friday, August 10, 2012 6:27 AM
    Thursday, July 19, 2012 5:08 AM

All replies

  • Handle is a utility that displays information about open handles for any process in the syste. It uses for show which process open the specified Named  file mapping object 

    Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/

    • Proposed as answer by Helen Zhao Thursday, July 19, 2012 6:03 AM
    • Marked as answer by Jesse Jiang Friday, August 10, 2012 6:27 AM
    Wednesday, July 18, 2012 4:47 PM
  • Hi Selvam

    Thanks for your reply.

    can you please suggest what the following entries exactly meant for:

    4C: Section       \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1A0: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1B4: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt
    1C0: Section      \BaseNamedObjects\SHAREDMRY_XXMEM:C::WINDOWS:WP.txt

    As per my understanding above entries means that process "CalImp.exe" opens 4 handle for the named file mapping object "SHAREDMRY_XXMEM:C::WINDOWS:WP.txt".

    Please suggest my above understanding is correct?

    Thank You

    • Marked as answer by Jesse Jiang Friday, August 10, 2012 6:27 AM
    Thursday, July 19, 2012 5:08 AM
  • I think it is right,


    Please mark this reply as answer if it helps you! Thanks for your cooperation! Good Luck to you.

    Thursday, July 26, 2012 3:14 AM