flat assembler
Message board for the users of flat assembler.
Index
> Windows > String Size |
Author |
|
vbVeryBeginner 20 Apr 2006, 18:34
you could do it like this,
Code: mydir rb 0xFF mydirsize dd 0 invoke GetWindowsDirectory,mydir,0xFF mov [mydirsize],eax the above would make mydirsize contained the count of bytes copied into mydir. |
|||
20 Apr 2006, 18:34 |
|
Vasilev Vjacheslav 21 Apr 2006, 05:45
is MAX_PATH = 260?
|
|||
21 Apr 2006, 05:45 |
|
Madis731 21 Apr 2006, 07:01
Win95 & NT had 255 (100h-"\n"-character), but recent versions of NT have 260 <= I don't know what is it good for
Maybe they lend 5 bytes from the name of the file or maybe they strip off C:/ drive identification. |
|||
21 Apr 2006, 07:01 |
|
Vasilev Vjacheslav 21 Apr 2006, 16:48
ok, this 5 bytes is "\\.\",0
|
|||
21 Apr 2006, 16:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.