Thread Control

The following functions are used to create and manage threads:

IPowerThread.Close

Releases the thread handle of this thread.

IPowerThread.Equals

Compares the specified object to determine if it references the same object as this object.

IPowerThread.Handle

Retrieves the handle of the thread for use with Windows API functions.

IPowerThread.Id

Retrieves the ID of the thread for use with Windows API functions.

IPowerThread.IsAlive

Checks the thread to see if it is currently "alive".

IPowerThread.Join

Waits for the specified thread object to complete before execution of this thread continues.

IPowerThread.Launch

Begins execution of the thread object.

IPowerThread.Priority <Get>

Retrieves the priority value for this thread.

IPowerThread.Priority <Set>

Sets the Priority Value for this thread.

IPowerThread.Result

If the thread has ended, the result value is retrieved and returned to the caller.

IPowerThread.Resume

Resumes execution of a suspended thread.

IPowerThread.StackSize <Get>

Retrieves the size of the stack for this thread.

IPowerThread.StackSize <Set>

Sets the size of the stack for this thread to the value specified.

IPowerThread.Suspend

Suspends execution of the thread.

IPowerThread.TimeCreate

Retrieves the date and time-of-day of the thread creation.

IPowerThread.TimeExit

Retrieves the date and time-of-day of the thread exit

IPowerThread.TimeKernel

Retrieves the amount of time this thread has spent in kernel mode.

IPowerThread.TimeUser

Retrieves the amount of time this thread has spent in user mode.

PROCESS GET PRIORITY

Retrieve the Priority Value for the current process.

PROCESS SET PRIORITY

Sets the Priority Value for the current process.

THREADED

Declare Thread Local Storage (TLS) variables.

THREAD CLOSE

Close a Windows thread.

THREAD CREATE

Create a Windows thread.

THREAD GET PRIORITY

Retrieve the Priority Value for a thread.

THREAD FUNCTION

Declares a thread function.

THREAD SET PRIORITY

Sets the Priority Value for a thread.

THREAD RESUME

Resume execution of a suspended Windows thread.

THREAD STATUS

Retrieve the Status of a Windows thread.

THREAD SUSPEND

Suspend execution of a Windows thread.

THREADCOUNT

Return the number of active threads that exist in a module.

THREADID

Return a Long-integer thread identifier of the current thread.