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
Posted on 2001-11-25 16:23:43 by Locu
Try this:


szLalala db SE_SYSTEMTIME_NAME
invoke LookupPrivilegeValue,NULL,ADDR szLalala,ADDR luid
Posted on 2001-11-25 16:54:36 by f0dder
f0dder,

"szLalala db SE_SYSTEMTIME_NAME" gives:

error A2084: constant value too large
Posted on 2001-11-25 17:05:17 by Locu
Try to define it directly as


szLalala db "SeSystemtimePrivilege"

(and do this in .data)
Posted on 2001-11-25 17:10:43 by f0dder
.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
Posted on 2001-11-25 17:53:12 by Locu