次の方法で共有


Process and Thread Functions (Compact 2013)

3/28/2014

The following table shows the process and thread functions.

Function

Description

CeGetProcessorState

Obtains the state of the specified processor.

CeGetThreadPriority

Gets the priority for a real-time thread.

CeGetThreadQuantum

Gets the time quantum for the specified thread.

CeSetThreadPriority

Sets the priority for a real-time thread on a thread by thread basis.

CeSetThreadQuantum

Sets the time quantum for the specified thread.

CeTlsAlloc

Allocates a thread local storage (TLS) index and sets a cleanup function for the slot.

CeTlsFree

Releases a TLS index and calls the cleanup function.

CreateProcess

Runs a new program

CreateThread

Creates a thread to execute within the address space of the calling process.

ExitProcess

Ends a process and all of its threads.

ExitThread

Ends a thread.

FlushInstructionCache

Flushes the instruction cache for the specified process.

GetCommandLine

Returns a pointer to the command-line string for the current process.

GetCurrentProcess

Returns a pseudohandle for the current process.

GetCurrentProcessId

Returns the process identifier of the calling process.

GetCurrentThread

Returns a pseudohandle for the current thread.

GetCurrentThreadId

Returns the thread identifier, which is used as a handle of the calling thread.

GetExitCodeProcess

Retrieves the termination status of the specified process.

GetExitCodeThread

Retrieves the termination status of the specified thread.

GetProcessTimes

Retrieves the timing information for the specified process.

GetProcessVersion

Retrieves the major and minor version numbers of the system on which the specified process expects to run.

GetThreadPriority

Returns the priority value for the specified thread.

GetThreadTimes

Obtains timing information about a specified thread.

OpenProcess

Returns a handle to an existing process object.

OpenThread

Opens an existing thread object.

ReadProcessMemory

Reads memory in a specified process.

ResumeThread

Decrements a thread's suspend count.

SetThreadContext

Sets the context in the specified thread.

SetThreadPriority

Sets the priority value for the specified thread.

Sleep

Suspends the current thread for a specified interval.

SuspendThread

Suspends the specified thread.

TerminateProcess

Ends the specified process and all of its threads.

TerminateThread

Stops the specified thread.

ThreadProc

Application-defined function that serves as the starting address for a thread.

TlsAlloc

Allocates a thread local storage (TLS) index.

TlsFree

Releases a TLS index, making it available for reuse.

TlsGetValue

Retrieves the value in the calling thread's TLS slot for a specified TLS index.

TlsSetValue

Stores a value in the calling thread's TLS slot for a specified TLS index.

WriteProcessMemory

Writes memory in a specified process.

See Also

Reference

Process and Thread Reference