i want to call LookupPrivilegeValue function like this:
invoke LookupPrivilegeValue, NULL, SE_DEBUG_NAME, addr @luid
but i got an error: error A2006: undefined symbol : TEXT
SE_DEBUG_NAME macro defined in windows.inc like this:
SE_DEBUG_NAME equ TEXT("SeDebugPrivilege")
how to fix it?
The parameter requires a pointer to a null terminated string. So you can change it to something like:
invoke LookupPrivilegeValue, NULL, Addr szDebugPrivilege, Addr @luid
and in your .data section put:
szDebugPrivilege DB 'SeDebugPrivilege',0
thanks, it works
Hi, chensiyu! Welcome to the forum.
zedd
hi, zedd