C# 클래스 dlech.SshAgentLib.WinInternals

파일 보기 프로젝트 열기: dlech/SshAgentLib

공개 메소드들

메소드 설명
FindProcessWithMatchingHandle ( MemoryMappedFile mmf ) : Process

Iterates all open handles on the system (using internal system call) to find the other process that has a handle open to the same memtory mapped file.

Code based on http://forum.sysinternals.com/overview-handle-enumeration_topic14546.html

GetProcessForTcpPort ( IPEndPoint localEndpoint, IPEndPoint remoteEndpoint ) : Process

Searches all current TCP connections (IPv4 only) for the matching port (local port of the connection).

비공개 메소드들

메소드 설명
GetExtendedTcpTable ( IntPtr pTcpTable, UInt32 &pdwSize, System.Boolean bOrder, UInt32 ulAf, TCP_TABLE_CLASS TableClass, UInt32 Reserved ) : UInt32
NtQuerySystemInformation ( SYSTEM_INFORMATION_CLASS SystemInformationClass, IntPtr SystemInformation, UInt32 Length, UInt32 &ResultLength ) : NTSTATUS

메소드 상세

FindProcessWithMatchingHandle() 공개 정적인 메소드

Iterates all open handles on the system (using internal system call) to find the other process that has a handle open to the same memtory mapped file.
Code based on http://forum.sysinternals.com/overview-handle-enumeration_topic14546.html
public static FindProcessWithMatchingHandle ( MemoryMappedFile mmf ) : Process
mmf System.IO.MemoryMappedFiles.MemoryMappedFile
리턴 System.Diagnostics.Process

GetProcessForTcpPort() 공개 정적인 메소드

Searches all current TCP connections (IPv4 only) for the matching port (local port of the connection).
public static GetProcessForTcpPort ( IPEndPoint localEndpoint, IPEndPoint remoteEndpoint ) : Process
localEndpoint System.Net.IPEndPoint
remoteEndpoint System.Net.IPEndPoint
리턴 System.Diagnostics.Process