When I tried this:
LookupPrivilegeValue,NULL,SE_SYSTEMTIME_NAME,ADDR luid
I got this:
c:\asm\time\time.asm(49) : error A2084: constant value too large
c:\asm\time\time.asm(49) : error A2114: INVOKE argument type mismatch : argument
: 2
So I looked up "SE_SYSTEMTIME_NAME" in windows.inc:
SE_SYSTEMTIME_NAME equ ("SeSystemtimePrivilege")
but I couldn't find anything about "SeSystemtimePrivilege".
Can anybody help me?
TIA,
Locu
LookupPrivilegeValue,NULL,SE_SYSTEMTIME_NAME,ADDR luid
I got this:
c:\asm\time\time.asm(49) : error A2084: constant value too large
c:\asm\time\time.asm(49) : error A2114: INVOKE argument type mismatch : argument
: 2
So I looked up "SE_SYSTEMTIME_NAME" in windows.inc:
SE_SYSTEMTIME_NAME equ ("SeSystemtimePrivilege")
but I couldn't find anything about "SeSystemtimePrivilege".
Can anybody help me?
TIA,
Locu
Try this:
szLalala db SE_SYSTEMTIME_NAME
invoke LookupPrivilegeValue,NULL,ADDR szLalala,ADDR luid
f0dder,
"szLalala db SE_SYSTEMTIME_NAME" gives:
error A2084: constant value too large
"szLalala db SE_SYSTEMTIME_NAME" gives:
error A2084: constant value too large
Try to define it directly as
szLalala db "SeSystemtimePrivilege"
(and do this in .data)
.data
szLalala db "SeSystemtimePrivilege"
.code
invoke LookupPrivilegeValue,NULL,ADDR szLalala,ADDR luid
returns FALSE
------
.data
szLalala db ("SeSystemtimePrivilege")
assembler:
error A2084: constant value too large
szLalala db "SeSystemtimePrivilege"
.code
invoke LookupPrivilegeValue,NULL,ADDR szLalala,ADDR luid
returns FALSE
------
.data
szLalala db ("SeSystemtimePrivilege")
assembler:
error A2084: constant value too large