w0uter Posted August 29, 2005 Share Posted August 29, 2005 (edited) WIN32_FIND_DATAneed one for FtpFindFirstFile.but if i call it, the entire structure is filled with 0'sLocal $v_FT1 = DllStructCreate('dword;dword') Local $v_FT2 = DllStructCreate('dword;dword') Local $v_FT3 = DllStructCreate('dword;dword') Local $v_Struct = DllStructCreate('dword;ptr;ptr;ptr;dword;dword;dword;dword;chr[260];chr[14]') DllStructSetData($v_Struct, 2, DllStructGetPtr($v_FT1)) DllStructSetData($v_Struct, 3, DllStructGetPtr($v_FT2)) DllStructSetData($v_Struct, 4, DllStructGetPtr($v_FT3))calling it like evrything elseDllCall('wininet.dll', 'int', 'FtpFindFirstFile', 'long', $l_FtpSession, 'str', $s_RemoteFile, 'ptr', DllStructGetPtr($v_Struct), 'long', $l_Flags, 'long', $l_Context)the call itself does return an indentifier. Edited August 29, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
hgeras Posted August 30, 2005 Share Posted August 30, 2005 (edited) You dont show us where you use the $v_FTx structures.... You tell it to get the pointer of this structures but i dont see them called by any dll or how you fill them...I believe they are the FILETIME structures huh? Have you tried to use DllStructGetData instead of DllStructGetPtr? Or try to use in your $v_Struct "long_ptr" or "int_ptr" instead of simple "ptr"... Play with these and tell me.... EDIT:Typos.... C ya Edited August 30, 2005 by hgeras Useful information about COM/Objects referenceMy Scripts:PapDefragNvidia Temperature Logger V3.0 with graph analyzerAutoiIt Update Checker And Downloader V1.0ArrayPush UDF Link to comment Share on other sites More sharing options...
Dickb Posted August 30, 2005 Share Posted August 30, 2005 Hi Wouter, I've been working on this. No time to finish it, but in basics it works. Give it a look. DickFTP_Find.au3 Link to comment Share on other sites More sharing options...
w0uter Posted August 30, 2005 Author Share Posted August 30, 2005 thank you Dickb. i didnt reallise i could use [2] to create a sub struct. i will check it out. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Dickb Posted August 30, 2005 Share Posted August 30, 2005 thank you Dickb. i didnt reallise i could use [2] to create a sub struct.i will check it out.<{POST_SNAPBACK}>Took me some time to find it out. I hope you can finish this. I am lacking the time for it.If you can use it then my time is well spend. Link to comment Share on other sites More sharing options...
w0uter Posted August 30, 2005 Author Share Posted August 30, 2005 I hope you can finish this.<{POST_SNAPBACK}>oh i will. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
hgeras Posted August 30, 2005 Share Posted August 30, 2005 The [2] parameter is indeed interesting.... There are many structures that use sub structures in MSDN.... Very useful.... C ya Useful information about COM/Objects referenceMy Scripts:PapDefragNvidia Temperature Logger V3.0 with graph analyzerAutoiIt Update Checker And Downloader V1.0ArrayPush UDF Link to comment Share on other sites More sharing options...
Holger Posted August 30, 2005 Share Posted August 30, 2005 Yeah, you may also take a look in the helpfile at function "DllStructCreate" -> "Remarks":...Create arrays by adding '' after the data type.DllStructCreate("int;char[128]")So long... Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
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