Jump to content
Sign in to follow this  
w0uter

WIN32_FIND_DATA

Recommended Posts

w0uter

WIN32_FIND_DATA

need one for FtpFindFirstFile.

but if i call it, the entire structure is filled with 0's

Local $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 else

DllCall('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 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

Share this post


Link to post
Share on other sites
hgeras

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 by hgeras

Share this post


Link to post
Share on other sites
Dickb

Hi Wouter,

I've been working on this. No time to finish it, but in basics it works.

Give it a look.

Dick

FTP_Find.au3

Share this post


Link to post
Share on other sites
Dickb

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.

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  

×