GetOpenFileName failed after Wow64DisableWow64FsRedirection

Discussion in 'Windows 64bit' started by Xiao, Li, May 22, 2007.

  1. Xiao, Li

    Xiao, Li Guest

    Hi,

    I have a 32-bit application which calls Wow64DisableWow64FsRedirection
    first, then call GetOpenFileName to show a common file dialog, and
    GetOpenFileName fails on 64-bit Vista (RTM). If I remove the call to
    Wow64DisableWow64FsRedirection, GetOpenFileName shows file open dialog fine,
    but system32 was redirected syswow64 folder.

    Does there anybody know how to turn off Wow64 file redirection on common
    file dialogs for 32-bit applications?

    Thanks.
     
    Xiao, Li, May 22, 2007
    #1
    1. Advertisements

  2. Xiao, Li

    Xiao, Li Guest

    Thanks, the PDF describes the situation that I tried to avoid: is that
    possible for the 32-bit version of notepad.exe save a file into the real
    system32 folder?

    With my test, if I disable Wow64 file redirection in 32-bit application,
    GetOpenFileName/GetSaveFileName fails with no error (even
    CommDlgExtendedError() returns 0 which is generic error).

    I just didn't get it why common file dialogs fail if file redirection was
    disabled.

    "Juergen Kluth" <> wrote in message
    news:...
    >i googelt it :
    > http://www.64advantage.com/files/64-bit Insider Volume 1 Issue 5.pdf
    > regards jk
    >
     
    Xiao, Li, May 23, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Moti
    Replies:
    1
    Views:
    1,457
    jonathan fernandes
    Jul 16, 2003
  2. Ken

    Failed to boot after system restore

    Ken, Dec 10, 2004, in forum: Computer Support
    Replies:
    5
    Views:
    800
    Plato
    Dec 10, 2004
  3. Coleen
    Replies:
    1
    Views:
    2,317
    Ben Myers
    Feb 19, 2005
  4. Robert11
    Replies:
    6
    Views:
    3,404
    burris
    Apr 24, 2005
  5. DMC
    Replies:
    6
    Views:
    1,872
  6. Abert
    Replies:
    3
    Views:
    618
    Abert
    Dec 15, 2005
  7. Replies:
    11
    Views:
    943
    Walter Mautner
    Jul 31, 2006
  8. Famel
    Replies:
    0
    Views:
    1,822
    Famel
    Nov 9, 2006
Loading...