Sign in to follow this  
Followers 0
LibiO

_GUICtrlTreeView_FindItem and more does not work in 64 bit

5 posts in this topic




i think its because of this directory

C:\Windows\winsxs

and the #64 redirection:

Running the 32-bit version of AutoIt on a x64 System
For Files, Windows has a special redirection mechanism for some system directories :

Directories 32-bit Value 64-Bit Value 
@SystemDir @WindowsDir & "\SYSWOW64" @WindowsDir & "\System32" 
@ProgramFilesDir {SystemDrive} & "\Program Files (x86)" {SystemDrive} & "\Program Files" 

It is possible to access the 64-bit version of those directories by disabling the redirection mechanism.


DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1)

Share this post


Link to post
Share on other sites

So, should I only insert this code:

DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1)

to my script? If it is, it still does not work....

i think its because of this directory

C:\Windows\winsxs

and the #64 redirection:

Running the 32-bit version of AutoIt on a x64 System
For Files, Windows has a special redirection mechanism for some system directories :

Directories 32-bit Value 64-Bit Value 
@SystemDir @WindowsDir & "\SYSWOW64" @WindowsDir & "\System32" 
@ProgramFilesDir {SystemDrive} & "\Program Files (x86)" {SystemDrive} & "\Program Files" 

It is possible to access the 64-bit version of those directories by disabling the redirection mechanism.


DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1)

so, should I only insert this code:

DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1)

to my script? If it is, it still does not work....

Share this post


Link to post
Share on other sites

Hi,

I think it's more then 64bit redirection..

As even the examples in the help file fail under x64 (they just don't report any value).

_GUICtrlTreeView_GetText() is broken under x64 (_GUICtrlTreeView_FindItem() uses _GUICtrlTreeView_GetText())

The tag structure constants need going over and changing so they'll be compatible with x64 & x86 properly.

There's more then a few Structure constants that are broken under x64 atm, not just tab and treeview ones.

Cheers

Share this post


Link to post
Share on other sites

dsk,

This is the second time you have used the "Report" button to try to reply to a post. :oops:

Once again: To reply in a thread you use the "Reply to this topic" button at the top or the "Reply to this topic" editor at the bottom. The "Report" button you pressed is only for alerting the Mods to a problem. :doh:

Do NOT do it a third time or your continued ability to use the forum at all will be questioned - I hope I make myself clear. :bye:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0