MSDN: ) thereturnvalueisapseudohandletothecurrentprocess.remarkpseudohandlesarenotinheritedbychildprocesses .机智的黑米/填充- bottom :15 px; line-height:18px; 字体系列: ' segoe ui ',' Lucida Grande ',Verdana,Arial,Helvetica,sans-serif; 字体大小:13 px ' aprocesscancreatea ' real ' handletoitselfthatisvalidinthecontextofotherprocesses,orthatcanbeinheriterites byspecifyingthepseudohandleasthesourcehandleinacalltothe http://www.Sina.com/function.aprocesscanalsousethe 3358 www.sin ction.aprocesscanalsousethe 358 ww.sin che functiontoopenarealhandletoitself.ststhe margin-bottom:0px; 填充- bottom :15 px; line-height:18px; 字体系列: ' segoe ui ',' Lucida Grande ',Verdana,Arial,Helvetica,sans-serif; 字体大小336013 px ' thepseudohandleneednotbeclosedwhenitisnolongerneeded.calling the 3358 www.Sina.com/functionwithapseudohandlehasnoeffect.ifthepseudohandleisduplicatedby http://www.Sina.com /, 如果在the duplicate handle must be closed子进程中获取父进程的handle,则可以通过将ProcessID传递给子进程并在子进程中使用GetCurrentProcessId ()来实现智能