Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with CreateFileMapping() window7/Vista.

Problem with CreateFileMapping() window7/Vista.

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    janaswamy uday
    wrote on last edited by
    #1

    Hi All, My problem is that the code no longer works under Windows 7/Vista when called from within the limited user account. CreateFileMapping() routine returns ERROR_ACCESS_DENIED (code 5) upon attempt to create the file mapping object in global namespace. I've searched the web and discovered that from Vista onwards, Microsoft has changed the policy that affects who will be granted to obtain SeCreateGlobalPrivilege and that is it impossible for any code called from within the limited user account to create global objects. Does anyone know how to work around this limitation? Any pointers on how to make this code compatible with Windows 7/Vista would be highly appreciated. Thanks & Regards, Uday.

    H L 2 Replies Last reply
    0
    • J janaswamy uday

      Hi All, My problem is that the code no longer works under Windows 7/Vista when called from within the limited user account. CreateFileMapping() routine returns ERROR_ACCESS_DENIED (code 5) upon attempt to create the file mapping object in global namespace. I've searched the web and discovered that from Vista onwards, Microsoft has changed the policy that affects who will be granted to obtain SeCreateGlobalPrivilege and that is it impossible for any code called from within the limited user account to create global objects. Does anyone know how to work around this limitation? Any pointers on how to make this code compatible with Windows 7/Vista would be highly appreciated. Thanks & Regards, Uday.

      H Offline
      H Offline
      hanq_38910130
      wrote on last edited by
      #2

      What type of program are your code in? normal application or service? A service has the highest permission. If you put your code in a service, there won't be error, i think.

      1 Reply Last reply
      0
      • J janaswamy uday

        Hi All, My problem is that the code no longer works under Windows 7/Vista when called from within the limited user account. CreateFileMapping() routine returns ERROR_ACCESS_DENIED (code 5) upon attempt to create the file mapping object in global namespace. I've searched the web and discovered that from Vista onwards, Microsoft has changed the policy that affects who will be granted to obtain SeCreateGlobalPrivilege and that is it impossible for any code called from within the limited user account to create global objects. Does anyone know how to work around this limitation? Any pointers on how to make this code compatible with Windows 7/Vista would be highly appreciated. Thanks & Regards, Uday.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You need to run your application under an enhanced security level; see here[^] for some suggestions.

        It's time for a new signature.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups