mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
c23b6ecc31
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.
15 lines
276 B
ArmAsm
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
|