CloseHandle到底什么意思?
scdyx 2003-10-16 03:05:05 下面的程序是怎么分离子程序的:
PROCESS_INFORMATION ProcessInformation;
BOOL fSuccess=CreateProcess(...,&ProcessInformation);
if(fSuccess)
{
CloseHandle(ProcessInformation.hThread);
CloseHandle(ProcessInformation.hProcess);
}
其中closehandle有什么作用?invalidates the specified object handle,那无效是什么意思,就是把对象挂起
了还是?那是无效的对象还有什么用?
无效是不是还没有释放资源,还要通过中止函数来释放资源?