danielkza Posted May 2, 2008 Posted May 2, 2008 Hi,I'm trying to create a wrapper to the IContextMenu interface,but it needs an IShellFolder object from the wanted folder. I want to get it from the desktops folder object(Got as a pointer in a structure passed to SHGetDesktopFolder),but i can't invoke any of it's properties/methods because AU3 does not identify it as an object. Like in this example:$tDesktopFolder = DllStructCreate("ptr") DllCall("shell32.dll","int","SHGetDesktopFolder","ptr",DllStructGetPtr($tDesktopFolder)) $oDesktopFolder = DllStructGetData($tDesktopFolder,1) ; Pointer was allocated MsgBox(0,0,$oDesktopFolder) Local $tPIDL = DllStructCreate("ptr") ;use autoexec.bat because all Win versions have it $iRet = $oDesktopFolder.ParseDisplayName(0,0,"C:\autoexec.bat",0,DllStructGetPTR($tPIDL),0 Is this possible within AU3?If not,does anybody know an easier way to obtain shell's context menu for a specified file/folder? Thank You.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now