Re: Other information and dates of an archive

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
> 
> }}}
<eucode>
> constant kernel32=open_dll("kernel32.dll"),
> gft=define_c_func(kernel32,"GetFileTime",repeat(C_POINTER,4),C_BOOL),
>
> ft2st=define_c_func(kernel32,"FileTimeToSystemTime",repeat(C_POINTER,2),C_BOOL),
> mem_area=allocate(72),
> create_time=mem_area,
> last_access=mem_area+8,
> last_write=mem_area+16
> system_time=mem_area+24,
> system_last_access=mem_area+40,
> system_last_write=mem_area+56
> 
> atom hfile
> integer rc
> -- set hfile to a handle on your file
> rc=c_func(gft,{hfile,create_time,last_access,last_write)
> rc=c_func(create_time,system_create_time)
> rc=c_func(last_access,system_last_access)
> rc=c_func(last_write,system_last_write)
> </eucode>
{{{

> 
> CChris

Hello CCris,

Your code is very beyond what I can understand.

I tried to make it to run, but it is impossible.

You can explain better?

Many Thanks,

Sérgio - Brasil

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu