flat assembler
Message board for the users of flat assembler.
Index
> Windows > StrCpyNA |
Author |
|
semiono 14 Jan 2014, 14:37
StrCpyN
http://msdn.microsoft.com/en-us/library/windows/desktop/bb759961(v=vs.85).aspx Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only] Code: include '%fasm%/win64ax.inc' include '%fasm%/macro/de.inc' include '%fasm%/equates/ole32.inc' section '.code' executable start: sub rsp,8 ;.. macro path w,x,y,z { invoke GetCurrentDirectory,MAX_PATH,a invoke lstrlen,a sub eax,6 invoke StrCpyN,b,a,eax invoke PathAddBackslash,b invoke lstrcat,b,z invoke lstrlen,b invoke SHSetValue,w,x,y,REG_SZ,b,eax } path HKEY_CURRENT_USER,'Software\Image-Line\Shared\Paths','Shared DLLs' ;.. section '.idata' import readable library kernel32,'KERNEL32.DLL',ole32,'OLE32.DLL',shell32,'SHELL32.DLL',shlwapi,'SHLWAPI.DLL',user32,'USER32.DLL' include '%fasm%/api/kernel32.inc' include '%fasm%/api/shell32.inc' include '%fasm%/api/shlwapi.inc' include '%fasm%/api/user32.inc' import ole32,CoCreateInstance,'CoCreateInstance',CoInitializeEx,'CoInitializeEx' Maybe the windows has problem? _________________ Windows 9, FL Studio 19 |
|||
14 Jan 2014, 14:37 |
|
semiono 14 Jan 2014, 17:00
Only StrCpyN function found on msdn
|
|||
14 Jan 2014, 17:00 |
|
semiono 14 Jan 2014, 22:01
Achtung!
StrCpyNW placed into shell32.inc original fasm.zip but this API from shlwapi.dll Is it correct? shell32.inc: Shell_NotifyIconW,'Shell_NotifyIconW',\ StrChrA,'StrChrA',\< shlwapi StrChrW,'StrChrW',\< shlwapi StrChrIA,'StrChrIA',\< shlwapi StrChrIW,'StrChrIW',\< shlwapi |
|||
14 Jan 2014, 22:01 |
|
typedef 14 Jan 2014, 22:39
The only version is StrCpyNW
|
||||||||||
14 Jan 2014, 22:39 |
|
baldr 15 Jan 2014, 14:19
semiono wrote: StrCpyNW placed into shell32.inc original fasm.zip but this API from shlwapi.dll |
|||
15 Jan 2014, 14:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.