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. 64 bit XP

64 bit XP

Scheduled Pinned Locked Moved C / C++ / MFC
securityhelp
3 Posts 2 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.
  • M Offline
    M Offline
    Monty2
    wrote on last edited by
    #1

    This Code fails on XP 64 bit even if the file exists in the target folder The exe is 32 bit

    CString str;
    str = "C:\\WINDOWS\\system32\\drivers\\acpi.sys";

    if(!PathFileExists(str))
    {
    //Fails but the file exists and can be seen in explorer
    //fopen fails to with err=2 (invalid path)
    }

    i can paste any file in that folder (text file or whatever) and the result will be file not found (errcode=2) it shows same behaviour in "c:\windows\system32" folder So is there some security issue i am not seeing cause this thing runs fine in vista with UAC enabled Thanks

    M 1 Reply Last reply
    0
    • M Monty2

      This Code fails on XP 64 bit even if the file exists in the target folder The exe is 32 bit

      CString str;
      str = "C:\\WINDOWS\\system32\\drivers\\acpi.sys";

      if(!PathFileExists(str))
      {
      //Fails but the file exists and can be seen in explorer
      //fopen fails to with err=2 (invalid path)
      }

      i can paste any file in that folder (text file or whatever) and the result will be file not found (errcode=2) it shows same behaviour in "c:\windows\system32" folder So is there some security issue i am not seeing cause this thing runs fine in vista with UAC enabled Thanks

      M Offline
      M Offline
      Monty2
      wrote on last edited by
      #2

      http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1673046&SiteID=1[^]


      C++ where friends have access to your private members !

      M 1 Reply Last reply
      0
      • M Monty2

        http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1673046&SiteID=1[^]


        C++ where friends have access to your private members !

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Good to know! Thanks for the update! Mark

        "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

        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