Search found 4 matches
- 15 Jan 2019, 06:33
- Forum: Scripts and Functions (v1)
- Topic: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
- Replies: 80
- Views: 30381
Re: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
I played a little with dwDesiredAccess . The minimum we need is: hProcess := DllCall("OpenProcess" , "UInt", 0x18 ; VirtualMemoryOperation|VirtualMemoryRead , "Int", FALSE ; inherit = false , "ptr", iProcessID) It also works with the max of 0x1F0FFF. But it doesn't help in my case with elevated righ...
- 14 Jan 2019, 13:56
- Forum: Scripts and Functions (v1)
- Topic: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
- Replies: 80
- Views: 30381
Re: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
@vanipede
Code: Select all
Save:
coords := DeskIcons()
FileDelete, %ProgramData%\TEMP\desktopicons.txt
FileAppend, %coords%, %ProgramData%\TEMP\desktopicons.txt
return
Code: Select all
Restore:
FileRead, coords, %ProgramData%\TEMP\desktopicons.txt
DeskIcons(coords)
return
- 14 Jan 2019, 13:19
- Forum: Scripts and Functions (v1)
- Topic: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
- Replies: 80
- Views: 30381
Re: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
After i added if !hwWindow ControlGet, hwWindow, HWND,, SysListView321, ahk_class WorkerW it works on every machine. What does not work: If i'm logged in as normal domainuser and run the script with elevated rights as domainadmin. In that case it looks like the OpenProcess function denies access.
- 14 Jan 2019, 06:32
- Forum: Scripts and Functions (v1)
- Topic: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
- Replies: 80
- Views: 30381
Re: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
Is there any solution for the "OpenProcess" issue? Edit: For one machine i got it, i changed following ControlGet, hwWindow, HWND,, SysListView321, ahk_class Progman if !hwWindow ; #D mode ControlGet, hwWindow, HWND,, SysListView321, A to: ControlGet, hwWindow, HWND,, SysListView321, ahk_class Progm...