C# Class Cairo.WindowsHooksWrapper.NativeMethods

Show file Open project: RevolutionSmythe/cairoshell

Public Methods

Method Description
GetFileNameFromHandle ( IntPtr FileHandle ) : string
GetProcess ( IntPtr hwnd ) : Process

Retrieves a running process.

GetProcessPath ( IntPtr hwnd ) : string

Retrieves the Path of a running process.

Private Methods

Method Description
CloseHandle ( IntPtr hObject ) : bool
CreateFileMapping ( IntPtr hFile, IntPtr lpFileMappingAttributes, FileMapProtection flProtect, uint dwMaximumSizeHigh, uint dwMaximumSizeLow, [ lpName ) : IntPtr
GetFileSize ( IntPtr hFile, IntPtr lpFileSizeHigh ) : uint
GetMappedFileName ( IntPtr m_hProcess, IntPtr lpv, StringBuilder lpFilename, uint nSize ) : uint
GetModuleFileNameEx ( IntPtr hProcess, IntPtr hModule, StringBuilder &lpBaseName, [ nSize ) : uint
GetWindowThreadProcessId ( IntPtr handle, uint &processId ) : int
MapViewOfFile ( IntPtr hFileMappingObject, FileMapAccess dwDesiredAccess, uint dwFileOffsetHigh, uint dwFileOffsetLow, uint dwNumberOfBytesToMap ) : IntPtr
QueryFullProcessImageNameW ( IntPtr hProcess, uint dwFlags, [ lpExeName, uint &lpdwSize ) : bool
UnmapViewOfFile ( IntPtr lpBaseAddress ) : bool

Method Details

GetFileNameFromHandle() public static method

public static GetFileNameFromHandle ( IntPtr FileHandle ) : string
FileHandle System.IntPtr
return string

GetProcess() public static method

Retrieves a running process.
public static GetProcess ( IntPtr hwnd ) : Process
hwnd System.IntPtr
return System.Diagnostics.Process

GetProcessPath() public static method

Retrieves the Path of a running process.
public static GetProcessPath ( IntPtr hwnd ) : string
hwnd System.IntPtr
return string