Jump to content

Recommended Posts

Hello,

after doing some search upon the start issues for OSK.EXE I found several threads covering the nice 32bit/64bit filesystem redirection.

 

Searching the autoit help is bringing up this topic:

 

_WinAPI_Wow64EnableWow64FsRedirection

 

That one is telling:

 

This function is useful for 32-bit applications that want to gain access to the native system32 directory.
By default, WOW64 file system redirection is enabled.

This function may not work reliably when there are nested calls.
Therefore, this function has been replaced by the Wow64DisableWow64FsRedirection and Wow64RevertWow64FsRedirection functions.

 

But I cannot find any other topic in the help system covering this stuff?

 

BTW, this is working for me perfectly to keep OSK.EXE running all the time. Purpose is a tablet application, where some users tend to close OSK and to complain afterwards, that it vanished ;-)

 

Func OSKchecker()
    If ProcessExists("osk.exe") Then
        Return
    Else
        ; MsgBox(0,"kein OSK erkannt",$PIDosk)
        If (@OSArch = "X64") And (@AutoItX64 = 0) Then
            DllCall("kernel32.dll", "boolean", "Wow64DisableWow64FsRedirection", "boolean", 1) ;~ Turns On 64 Bit Redirection
            $PIDosk = ShellExecute("osk.exe")
            DllCall("kernel32.dll", "boolean", "Wow64DisableWow64FsRedirection", "boolean", 0) ;~ Turns Off 64 Bit Redirection
        Else
            $PIDosk = ShellExecute("osk.exe")
        EndIf
    EndIf
EndFunc   ;==>OSKchecker

 

Edited by rudi
typo

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...