News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

a ver 98 and XP - GetFileSizeEx

Started by orbb, March 20, 2009, 02:46:50 PM

Previous topic - Next topic

orbb

Hi masters
I have a problem with working code under XP , where running in 98 .
Here is code of unfinished my project of File Compare - find huge count files and compare it to CRC32 , and display if doubled .
The code is working , unfinished only function delete .
My question : how to modifi to work with 98 and XP ?

[attachment deleted by admin]

orbb

If running in 98 - error : The FILECOMPARE.EXE file is linked to missing export KERNEL32.DLL:GetFileSizeEx.

hutch--

There are two approaches, do an OS version detect and call different API functions depending on which OS version is running or use the win98 version if its available on 2000/XP/Vista and have reduced capacity.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

orbb

yes hutch , this is clearly , but never less than 98 starts , i am will get version and call corect function IF APPLICATION LOAD NO ERROR ...

evlncrn8

well if the api doesn't exist in 9x and you have it in your import table, then the exe will not load,
you will have to do the GetModuleHandle(kernel32) -> GetProcAddress(kernel32, the api you want)
runtime in your code, of the GetProcAddress returns NULL then the api doesn't exist.. no need
for a version check then

orbb