EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

winsfile.htm
Constants
Structures
WIN32_FIND_DATA

This file can be included to program for Windows written in EuroAssembler.

It declares the most often used constant symbols and structures used for
file functions of MS Windows Application Programming Interface (WinAPI),
as they were derived from header files in [WindowsSDK].

winsfile HEAD
↑ WIN32_FIND_DATA
; Used in FindFirstFile or FindNextFile function.
WIN32_FIND_DATAW STRUC                        ; WIDE version.
 .FileAttributes    D DWORD
 .CreationTime      D 2*DWORD
 .LastAccessTime    D 2*DWORD
 .LastWriteTime     D 2*DWORD
 .FileSizeHigh      D DWORD
 .FileSizeLow       D DWORD
 .Reserved          D 2*DWORD
 .FileName          D MAX_PATH_SIZE * UNICHAR ; Wildcard-resolved name without path.
 .AlternateFileName D 14*UNICHAR              ; Wildcard-resolved name 8.3 shortcut.
 ENDSTRUC WIN32_FIND_DATAW                    ; SIZE# WIN32_FIND_DATAW = 592.

WIN32_FIND_DATAA STRUC                        ; ANSI version.
 .FileAttributes    D DWORD
 .CreationTime      D 2*DWORD
 .LastAccessTime    D 2*DWORD
 .LastWriteTime     D 2*DWORD
 .FileSizeHigh      D DWORD
 .FileSizeLow       D DWORD
 .Reserved          D 2*DWORD
 .FileName          D MAX_PATH_SIZE * BYTE    ; Wildcard-resolved name without path.
 .AlternateFileName D 14*BYTE                 ; Wildcard-resolved name 8.3 shortcut.
 .Alignment         D 2*BYTE
 ENDSTRUC WIN32_FIND_DATAA                    ; SIZE# WIN32_FIND_DATAA = 148.
↑ Constants
Encoding of constant symbols used in WinAPI.
; File flags
MAX_PATH_SIZE               = 260        ; Maximum path length.
FILE_MAP_COPY               = 0x0001
FILE_MAP_WRITE              = 0x0002
FILE_MAP_READ               = 0x0004
FILE_MAP_EXECUTE            = 0x0008
FILE_MAP_ALL_ACCESS         = 0x000E

FILE_ATTRIBUTE_READONLY     = 00000001h
FILE_ATTRIBUTE_HIDDEN       = 00000002h
FILE_ATTRIBUTE_SYSTEM       = 00000004h
FILE_ATTRIBUTE_DIRECTORY    = 00000010h
FILE_ATTRIBUTE_ARCHIVE      = 00000020h
FILE_ATTRIBUTE_NORMAL       = 00000080h
FILE_ATTRIBUTE_TEMPORARY    = 00000100h
FILE_ATTRIBUTE_COMPRESSED   = 00000800h
FILE_ATTRIBUTE_OFFLINE      = 00001000h
FILE_ATTRIBUTE_ENCRYPTED    = 00004000h

; SetFilePointer() methods
FILE_BEGIN                  = 0
FILE_CURRENT                = 1
FILE_END                    = 2

; CreateFile() actions
CREATE_NEW                  =  1
CREATE_ALWAYS               =  2
OPEN_EXISTING               =  3
OPEN_ALWAYS                 =  4
TRUNCATE_EXISTING           =  5
CREATE_NEW_CONSOLE          = 16

; MoveFile() flags
MOVEFILE_REPLACE_EXISTING   = 1
MOVEFILE_COPY_ALLOWED       = 2
MOVEFILE_DELAY_UNTIL_REBOOT = 4

; File share and access modes
FILE_SHARE_NONE             = 0
FILE_SHARE_READ             = 1
FILE_SHARE_WRITE            = 2
FILE_SHARE_READWRITE        = 3
GENERIC_READ                = 0x80000000
GENERIC_WRITE               = 0x40000000
 ENDHEAD winsfile

▲Back to the top▲