如何获取Windows中所有打开的邮箱的列表? [英] How can I get a list of all open mailslots in Windows?
问题描述
如何使用.NET获取所有打开的邮件槽?
对于命名管道,我会这样做:
string [] listOfPipes = 系统 。 IO 。 目录 。 GetFiles (@ " \\.\pipe \");
但是邮件将不起作用:
string [] listOfPipes = 系统 。 IO 。 目录 。 GetFiles (@ " \\.\mailslot \");
MSDN-Blogger,
感谢您在此发帖。
根据您的描述,我在.NET中尝试了很多方法来获取邮件列表。但是,我无法在.net中解决它。
在我的测试中,我有另一种方法来获取邮件列表。请从以下链接下载Process Explorer。
然后在Process Explorer Search中搜索邮件槽。之后,您将获得邮件列表。
最诚挚的问候,
Wendy
How to get all open mailslots with .NET?
For named pipes I would do:
string[] listOfPipes = System.IO.Directory.GetFiles(@"\\.\pipe\");
but with mailslots it won't work:
string[] listOfPipes = System.IO.Directory.GetFiles(@"\\.\mailslot\");
Hi MSDN-Blogger,
Thank you for posting here.
According to your description, I try a lot ways in .NET to get the list of mailslots. But, I could not solve it in .net.
On my test, I have another way to get the list of mailslots. Please download the Process Explorer from the link below.
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
Run procexp64.exe as Admin. Choose Find> Find Handle or Dll...
And then search mailslot in Process Explorer Search. After that, you will get the list of mailslot.
Best Regards,
Wendy
这篇关于如何获取Windows中所有打开的邮箱的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!