Why this does not work ?
format pe gui 4.0
entry start
include 'win32wx.inc'
overmaxpathname fix 'xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_',\
'xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_',\
'xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_',\
'xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_',\
'xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_xxxxxxxxx_',\
'xxxxxxxxx_.txt' ; 264 bytes name
section '.data' data readable writeable
filename TCHAR '\\?\d:\',overmaxpathname,0
section '.code' code readable executable
start:
invoke CreateFile, filename, GENERIC_READ or GENERIC_WRITE,\
FILE_SHARE_READ or FILE_SHARE_WRITE, NULL, CREATE_ALWAYS,\
FILE_ATTRIBUTE_ARCHIVE, NULL
.if eax = INVALID_HANDLE_VALUE
invoke MessageBox, 0, 'NIEPOWODZENIE',0,0
jmp endstart
.endif
mov ebx, eax
invoke MessageBox,0,'successik','utworzono plik',0
invoke CloseHandle, ebx
endstart:
invoke ExitProcess,0
section '.idata' import data readable
library kernel32,'kernel32.dll',user32,'user32.dll'
include 'api\kernel32.inc'
include 'api\user32.inc'
ofcorse when i change 'overmaxpathname' to name less than MAX_PATH everythink is ok.
Forgive my english.