请教高手两个问题,请进!

xqchang 2003-10-17 04:23:31
1、谁能比较详细的解释一下函数CreateKernelThread(),用它创建的线程到底在哪个进程中?我能随便指个进程让它在其中创建线程吗?
2、在win9x中如何根据线程ID得到该线程的handle?(用CreateKernelThread()创建的线程)
谢谢!
...全文
38 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
xqchang 2003-10-24
  • 打赏
  • 举报
回复
呵呵,怎么会这样???????/

是kernel32.dll中的一个未公开的函数,我已经有办法了,谢谢大家!
lzzqqq 2003-10-23
  • 打赏
  • 举报
回复
我也正纳闷呢,怎么没听说过这个函数呢??
luoluonet 2003-10-23
  • 打赏
  • 举报
回复
难道是微软没有公布的函数?
Oldyig 2003-10-21
  • 打赏
  • 举报
回复
MSDN中没有你这个函数,是不是别人写的?
vcforever 2003-10-21
  • 打赏
  • 举报
回复
Win32的线程函数列举如下:并没有楼主所说的CreateKernelThread()函数,你的这个函数是不是别人写的一个函数啊!能看看他的代码吗?
AttachThreadInput :Attaches the input processing mechanism of one thread to that of another thread.
CreateRemoteThread :Creates a thread that runs in the virtual address space of another process.
CreateThread :Creates a thread to execute within the virtual address space of the calling process.
ExitThread :Ends a thread.
GetCurrentThread :Retrieves a pseudo handle for the current thread.
GetCurrentThreadId :Retrieves the thread identifier of the calling thread.
GetExitCodeThread :Retrieves the termination status of the specified thread.
GetThreadPriority :Retrieves the priority value for the specified thread.
GetThreadPriorityBoost :Retrieves the priority boost control state of the specified thread.
GetThreadTimes :Retrieves timing information for the specified thread.
OpenThread Opens an existing thread object.
ResumeThread :Decrements a thread's suspend count.
SetThreadAffinityMask :Sets a processor affinity mask for the specified thread.
SetThreadIdealProcessor :Specifies a preferred processor for a thread.
SetThreadPriority :Sets the priority value for the specified thread.
SetThreadPriorityBoost :Disables the ability of the system to temporarily boost the priority of a thread.
Sleep :Suspends the execution of the current thread for a specified interval.
SleepEx :Suspends the current thread until the specified condition is met.
SuspendThread :Suspends the specified thread.
SwitchToThread :Causes the calling thread to yield execution to another thread that is ready to run on the current processor.
TerminateThread :Terminates a thread.
ThreadProc :An 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.
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.
WaitForInputIdle :Waits until the specified process is waiting for user input with no input pending, or until the time-out interval has elapsed.
xqchang 2003-10-20
  • 打赏
  • 举报
回复
????
xqchang 2003-10-20
  • 打赏
  • 举报
回复
三天了,还没人解答,急盼中。。。。。。。。。。。
xqchang 2003-10-20
  • 打赏
  • 举报
回复
up again.
lsl7909 2003-10-17
  • 打赏
  • 举报
回复
顶一下

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧