Quantcast
Channel: BlogoSfera » DATA
Viewing all articles
Browse latest Browse all 64

How do you get a Windows Environment Variable in assembly language?

$
0
0

I have an assembly language program that attempts to print out the value of a Window Environment Variable, namely “%AppData%”. Unfortunately, my program only crashes. I suspect the problem is caused by an incorrect stack reservation. Here is my code: includelib \Masm64\Lib\Kernel32.lib includelib \Masm64\Lib\User32.lib extern GetEnvironmentVariableA : proc extern MessageBoxA : proc extern ExitProcess : [...]

The post How do you get a Windows Environment Variable in assembly language? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 64

Trending Articles