flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 22 Apr 2009, 15:46
Maybe: GetCurrentDirectory - The GetCurrentDirectory function retrieves the current directory for the current process.
|
|||
![]() |
|
semiono 22 Apr 2009, 16:12
GetCurrentDirectory Function
lpBuffer [out] ...This null-terminated string specifies the absolute path to the current directory. I don't need absolute! I need some like %1 or .\ not predefined path (before I install it in different copy Windows or computers) Maybe I don't understand this api some... "..string specifies the" hm... It's returned for me? |
|||
![]() |
|
semiono 22 Apr 2009, 16:30
Code: ... section '.code' code readable executable start: invoke GetCurrentDirectory,\ nBufferLength,\ lpBuffer invoke CopyFile,nBufferLength + lpExistingFileName,\ nBufferLength + lpNewFileName,TRUE invoke ExitProcess,0 section '.data' data readable writeable nBufferLength dw 255 lpBuffer db ? lpExistingFileName db '\HprSnap6.h',0 lpNewFileName db '\HprSnap6.hs6lic',0 My lame code... ![]() Last edited by semiono on 22 Apr 2009, 16:31; edited 1 time in total |
|||
![]() |
|
revolution 22 Apr 2009, 16:31
Do you want to convert %SystemRoot%? GetEnvironmentVariable?
|
|||
![]() |
|
semiono 22 Apr 2009, 16:32
Yes! I not sure... but it's idea!
|
|||
![]() |
|
semiono 22 Apr 2009, 19:36
Imsorry. How can to append a Returns from
LPTCH WINAPI GetEnvironmentStrings(void); to lpExistingFileName, and lpNewFileName ? Where is result gets for asm? Is it in [eax] ? It's could has not asm supported - $var = GetEnvironmentStrings(void); ![]() |
|||
![]() |
|
revolution 23 Apr 2009, 01:32
semiono wrote: How can to append ... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.