DLL CALL SHGetFolderPathA in $WINSYSDIR$shell32.dll
Posted: Fri Aug 07, 2009 6:11 am
Hello everybody,
I have a problem to get the path of CSIDL_COMMON_APPDATA
of the function SHGetFolderPathA in $WINSYSDIR$shell32.dll
CSIDL_COMMON_APPDATA has the hex value 0x23, dec 35.
Here is a copy how I call the dll in IA
~InstallAware Clipboard Data~
~Call DLL Function~
~{06A156FA-C585-45D9-9216-0BDEDB8CD315}~
~$WINSYSDIR$shell32.dll,SHGetFolderPathA,"double word",LASTERROR,long,0,long,35,long,0,"double word",0,"pointer to string",$TARGETCOMMONAPPDIR$,$~
~mIDEFunc.dll\\mEXEFunc.dll~
But the variable $TARGETCOMMONAPPDIR$ which should held the result / directory of SHGetFolderPathA, is empty.
MSDN link:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
So what is wrong.
Thanks a lot for your help.
I have a problem to get the path of CSIDL_COMMON_APPDATA
of the function SHGetFolderPathA in $WINSYSDIR$shell32.dll
CSIDL_COMMON_APPDATA has the hex value 0x23, dec 35.
Here is a copy how I call the dll in IA
~InstallAware Clipboard Data~
~Call DLL Function~
~{06A156FA-C585-45D9-9216-0BDEDB8CD315}~
~$WINSYSDIR$shell32.dll,SHGetFolderPathA,"double word",LASTERROR,long,0,long,35,long,0,"double word",0,"pointer to string",$TARGETCOMMONAPPDIR$,$~
~mIDEFunc.dll\\mEXEFunc.dll~
But the variable $TARGETCOMMONAPPDIR$ which should held the result / directory of SHGetFolderPathA, is empty.
MSDN link:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
So what is wrong.
Thanks a lot for your help.