News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

error A2006: undefined symbol : TEXT

Started by chensiyu, July 27, 2018, 03:07:33 AM

Previous topic - Next topic

chensiyu

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?

fearless

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


zedd151

Hi, chensiyu! Welcome to the forum.

zedd