Dim fileSecu As SECURITY_ATTRIBUTES

filehandle = CreateFile("c:\temp.jpg", GENERIC_READ, 0, fileSecu, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)

filesize = GetFileSize(filehandle, 10000000)

Hi,
I am trying to use the above two API functions to get the file size of certain jpg file but I am always getting a file handle value of -1 and the filesize -1. What am I missing here? Thanks for any help in advance

Sparhawk