MASM32 Downloads
include \masm32\include\masm32rt.inc.codestart: .if rv(ShellExecute, 0, chr$("runas"), rv(GetCommandLine), 0, 0, 0)>32 inkey "hi admin" .endif exitend start
Only the guy that says "hi admin" is not the administrator. :(
include \masm32\include\masm32rt.inc.codestart: invoke GetCommandLine xchg eax, ebx .if sdword ptr find$(1, ebx, "-A")>0 MsgBox 0, "I am the admin, really", "Hi", MB_OK .else invoke ShellExecute, 0, chr$("runas"), ebx, chr$("-A"), 0, 0 .endif exitend start