cosmopolitan/libc/nt/advapi32/ImpersonateSelf.s
Justine Tunney c23b6ecc31 Fix some win32 definitions
You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been
cleared out. We might have a working load average for the platform that
should help GNU Make work well.
2022-03-22 19:54:36 -07:00

15 lines
276 B
ArmAsm

.include "o/libc/nt/codegen.inc"
.imp advapi32,__imp_ImpersonateSelf,ImpersonateSelf,0
.text.windows
ImpersonateSelf:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ImpersonateSelf(%rip)
leave
ret
.endfn ImpersonateSelf,globl
.previous