flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > WIN32_FIND_DATA

Author
Thread Post new topic Reply to topic
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 19 Jan 2004, 10:51
Code:
 ;MASM



WIN32_FIND_DATA STRUCT
  dwFileAttributes      DWORD      ?
  ftCreationTime        FILETIME <>
  ftLastAccessTime      FILETIME <>
  ftLastWriteTime       FILETIME <>
  nFileSizeHigh         DWORD      ?
  nFileSizeLow          DWORD      ?
  dwReserved0           DWORD      ?
  dwReserved1           DWORD      ?
  cFileName             BYTE MAX_PATH dup(?)
  cAlternate            BYTE 14 dup(?)
WIN32_FIND_DATA ENDS
    

because I know nothing about macros, could you show me the easies way how to translate macros masm->fasm, I got especially troubles with such piece of code like this:
Code:
cFileName             BYTE MAX_PATH dup(?)

;...
;...
.if eax!=INVALID_HANDLE_VALUE 

    
and no idea what <> means Confused

_________________
Microsoft: brings power of yesterday to computers of today.
Post 19 Jan 2004, 10:51
View user's profile Send private message Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 19 Jan 2004, 11:15
Code:
cFileName BYTE MAX_PATH dup(?)    
equals:
Code:
cFileName rb MAX_PATH    

Code:
.if eax!=INVALID_HANDLE_VALUE     
equals:
Code:
cmp eax,INVALID_HANDLE_VALUE
je end_if
; code to be ran if eax!=INVALID_HANDLE_VALUE
end_if:    
Wink
Post 19 Jan 2004, 11:15
View user's profile Send private message Visit poster's website Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 19 Jan 2004, 11:19
Quote:

and no idea what <> means

Between < and > you place your initial values for structures so <> means uninitialised structure
Post 19 Jan 2004, 11:19
View user's profile Send private message Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 19 Jan 2004, 12:18

_________________
Microsoft: brings power of yesterday to computers of today.
Post 19 Jan 2004, 12:18
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.