MASM WinMain proc LOCAL acDriverPath MAX_PATH CHAR push eax invoke Get

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
MASM:
WinMain proc
LOCAL acDriverPath[MAX_PATH]:CHAR
push eax
invoke GetFullPathName, $CTA0("driver.sys"),sizeof acDriverPath,addr acDriverPath, esp
pop eax
start endp
FASM: (то что у меня получилось)
DriverName db 'driver.sys',0
proc WinMain apientry
locals
acDriverPath db MAX_PATH dup ?
endl
push eax
invoke GetFullPathName,DriverName,sizeof.acDriverPath,[acDriverPath],esp
pop eax
endp