flat assembler
Message board for the users of flat assembler.

Index > Windows > kernel32 GetFileSizeEx missing

Author
Thread Post new topic Reply to topic
r22



Joined: 27 Dec 2004
Posts: 805
r22 19 Oct 2006, 03:58
Not included because it's not present in Win98/ME?

GetFileSizeEx

BOOL GetFileSizeEx(
HANDLE hFile,
PLARGE_INTEGER lpFileSize
);


Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server "Longhorn", Windows Server 2003, or Windows 2000 Server.
Header Declared in Winbase.h; include Windows.h.

Library Use Kernel32.lib.

DLL Requires Kernel32.dll.
Post 19 Oct 2006, 03:58
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 19 Oct 2006, 20:56
Possibly, since Win9x/Me has this
Quote:
The GetFileSize function retrieves the size, in bytes, of the specified file.

DWORD GetFileSize(

HANDLE hFile, // handle of file to get size of
LPDWORD lpFileSizeHigh // address of high-order word for file size
);

You can have a 64 bit value with this function too but it's a little harder than GetFileSizeEx
Post 19 Oct 2006, 20:56
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 20 Oct 2006, 10:12
It is not in Win98 or earlier, the SDK says,
"Requires Windows Vista, Windows XP, or Windows 2000 Professional."
Post 20 Oct 2006, 10:12
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.