enable virtualiztion in 64bit mfc c++ app? how?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: enable virtualiztion in 64bit mfc c++ app? how?

  1. #1
    Join Date
    Dec 1999
    Posts
    83

    enable virtualiztion in 64bit mfc c++ app? how?

    Ok, I have a version of an app in 64bit but the problem is under program files on windows 8 64bit it doesn't have access to the programs files folder... usually virtualiztion will redirect it to the virtual store but with 64bit exe's this doesn't happen automatically.
    How do I enable it in code or in the manifest file?

    any ideas?

    Hobnob


    From MSDN:

    Virtualization is only enabled for:

    32 bit interactive processes
    Administrator writeable file/folder and registry keys
    Virtualization is disabled for:

    64 bit processes
    Non-interactive processes
    Processes that impersonate
    Kernel mode callers
    Executables that have a requestedExecutionLevel

  2. #2
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,643

    Re: enable virtualiztion in 64bit mfc c++ app? how?

    don't write new applications that require virtualization. Make your app to NOT require it and use the proper technologies.
    Virtualization was added to windows ONLY for old programs to be compatible with the UAC changes without changes.
    MS has announced that they will stop supporting virtualization in some future version of windows. Windows 8 is still a bit too early, but I'm guessing this is a very strong candidate for removal in the next windows version.



    Regardless... Virtualization is ONLY possible for (some) 32bit apps. All 64bit apps are required to be compatible with UAC restrictions/guidelines.
    if you really NEED your 64bit app to write into the Program Files folder from a non elevated process, this is only possible by changing the permissions on the folder or subfolders. Setting the permissions will require elevation. It is generally speaking a really bad idea to make the program files folder writable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center