tags:

views:

31

answers:

2

I need to write a JNI wrapper for windows file system calls. I want to be able to get the size and created date of files on a windows system using the appropriate native library. Can anyone point me in the right direction?

thanks

+1  A: 

should be able to find what you need here

objects
thanks objects, I don't see where I can get the created date in that list - do you know where that function is? or how I do it? thanks
MalcomTucker
the call is documented here:http://msdn.microsoft.com/en-us/library/aa364946(VS.85).aspxAnd the structure used here:http://msdn.microsoft.com/en-us/library/aa365739(VS.85).aspx
objects
+1  A: 

You can use GetFileAttributesEx to get the creation time from the filename. or GetFileInformationByHandle if you already have the file open.

The library is kernel32.dll

John Knoeller