我进行了深入的搜索,发现了这篇文章。本文提供了下载源代码的链接:我在NtSystemInfoTest.cpp(下载的源代码)中尝试了方法,并且效果很好。void ListHandles( DWORD processID, LPCTSTR lpFilter )该代码具有以下免责声明:// Written by Zoltan Csizmadia, zoltan_csizmadia@yahoo.com// For companies(Austin,TX): If you would like to get my resume, send an email.//// The source is free, but if you want to use it, mention my name and e-mail address//////////////////////////////////////////////////////////////////////////////////////////我希望这可以帮助你。