Removed function GetThreadId.