BlackBone
Windows memory hacking library
 All Classes Functions
blackbone::ProcessThreads Class Reference

Public Member Functions

BLACKBONE_API ProcessThreads (class ProcessCore &core)
 
BLACKBONE_API Thread CreateNew (ptr_t threadProc, ptr_t arg, enum CreateThreadFlags flags=(CreateThreadFlags) 0)
 Create the thread. More...
 
BLACKBONE_API std::vector
< Thread > & 
getAll (bool dontUpdate=false)
 Gets all process threads More...
 
BLACKBONE_API Thread * getMain ()
 Get main process thread More...
 
BLACKBONE_API Thread * getLeastExecuted ()
 Get least executed thread More...
 
BLACKBONE_API Thread * getMostExecuted ()
 Get most executed thread More...
 
BLACKBONE_API Thread * getRandom ()
 Get random thread More...
 
BLACKBONE_API Thread * get (DWORD id)
 Get thread by ID More...
 
BLACKBONE_API void reset ()
 Reset data More...
 

Member Function Documentation

Thread blackbone::ProcessThreads::CreateNew ( ptr_t  threadProc,
ptr_t  arg,
enum CreateThreadFlags  flags = (CreateThreadFlags)0 
)

Create the thread.

Parameters
threadProcThread enty point
argThread argument.
flagsThread creation flags
Returns
New thread object
Thread * blackbone::ProcessThreads::get ( DWORD  id)

Get thread by ID

Parameters
idThread ID
Returns
Pointer to thread object, nullptr if failed
std::vector< Thread > & blackbone::ProcessThreads::getAll ( bool  dontUpdate = false)

Gets all process threads

Parameters
dontUpdateReturn already existing thread list
Returns
Threads collection
Thread * blackbone::ProcessThreads::getLeastExecuted ( )

Get least executed thread

Returns
Pointer to thread object, nullptr if failed
Thread * blackbone::ProcessThreads::getMain ( )

Get main process thread

Returns
Pointer to thread object, nullptr if failed
Thread * blackbone::ProcessThreads::getMostExecuted ( )

Get most executed thread

Returns
Pointer to thread object, nullptr if failed
Thread * blackbone::ProcessThreads::getRandom ( )

Get random thread

Returns
Pointer to thread object, nullptr if failed
BLACKBONE_API void blackbone::ProcessThreads::reset ( )
inline

Reset data


The documentation for this class was generated from the following files: