blob: bddbbf3f3cb74c225b959164052880b03237d81c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* -------------------------------------------
Copyright Mahrouss Logic
------------------------------------------- */
//
// Created by Amlal on 3/18/24
//
#ifndef __THREAD_API__
#define __THREAD_API__
#include <System.Core/Defs.hxx>
/// @brief Thread Information Block variant for scheduling.
struct PACKED ThreadInformationBlock final {
const UINT_PTR StartAddress; // Start Address
const UINT_PTR StartHeap; // Allocation Heap
const UINT_PTR StartStack; // Stack Pointer.
const WORD ThreadID; // Execution Thread ID.
};
ThreadInformationBlock* HcCreateThread(_Input PVOID Start,
_Optional _InOut PVOID HeapOpt,
_Optional _InOut PVOID StackOpt);
BOOL HcDestroyThread(_Input ThreadInformationBlock* TIB);
BOOL HcStopThread(_Input ThreadInformationBlock* TIB);
BOOL HcResumeThread(_Input ThreadInformationBlock* TIB);
#endif // __THREAD_API__
|