News:

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

INVALID_FILE_ATTRIBUTES

Started by dedndave, July 04, 2010, 02:39:36 PM

Previous topic - Next topic

dedndave

does this need to be added to windows.inc/winextra.inc ???
INVALID_FILE_ATTRIBUTES EQU -1

MichaelW

For WINDOWS.INC for 32 bit MASM (Version 1.4c RELEASE April 2008) it's defined on line 309, but I can't find it in any of the earlier versions I have.
eschew obfuscation

Antariy

Quote from: dedndave on July 04, 2010, 02:39:36 PM
does this need to be added to windows.inc/winextra.inc ???
INVALID_FILE_ATTRIBUTES EQU -1

Use INVALID_HANDLE_VALUE equate. It have the same code, the same "reason" and it contained in all versions of windows.inc :)


dedndave

actually, i am using INC EAX   :P
        INVOKE  GetFileAttributes,offset FileName
        inc     eax
        jz      File_Not_Found

but, i thought Hutch might want to add it to windows.inc, just to keep it up to date

hutch--

Dave,

INVALID_FILE_ATTRIBUTES is in the 2008 version of Windows.inc, there is nothing to add.

Do me this favour, use an up to date version as it saves me the wild goose chase looking for values that are already there.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

i have masm32 version 10r  - the windows.inc file is dated 6-4-08
the equate is referenced in the docs for GetFileAttributes, which goes back to win2K
http://msdn.microsoft.com/en-us/library/aa364944(VS.85).aspx

so, um, where do i get the latest versions of includes, libaries, and macros ?

jj2007

Mine is a few hours older, and has the missing equate.

GregL

It's in mine line on line 309. The time difference is the difference between the time zones. Filetimes are stored as UTC but Explorer displays it in the local time, so it's going to be different depending on where you are.

jj2007

Yep. Dave needs an editor with a search function :bg

dedndave

totally my bad - lol

when i searched for it, i accidently grabbed a period also (with copy/paste)
my search was unable to find
INVALID_FILE_ATTRIBUTES.

oops   :P
i'll blame this one on my aging eyes   :bg