AuroraRuntime/Source/Threading/Primitives/ThreadCookie.x64.NT.asm

16 lines
275 B
NASM

;; Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
;;
;; File:
;; Date: 2023-3-14
;; Author: Reece
public GetCurrentThreadIDFast
.code
GetCurrentThreadIDFast PROC
mov rax, gs:[30h]
mov eax, [rax+48h]
ret
GetCurrentThreadIDFast ENDP
END