16 lines
272 B
NASM
16 lines
272 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
|