File_SizeW

This function returns the size of a file if it exists.

File_SizeW PROTO lpszFileName:QWORD

Parameters

  • lpszFileName - The zero terminated string that has the path & filename of the file to return the size of.

Returns

If the return value is minus one (-1) then the file does not exist, otherwise RAX contains the size of the file in bytes.

Notes

This function will return the size of a file without opening it.

This function as based on the MASM32 Library function: filesizeW

See Also

File_SizeA, File_ExistsA, File_ExistsW, File_FileSize