C# Class ZeroInstall.Hooking.EntryPoint

ファイルを表示 Open project: 0install/0install-win

Public Methods

Method Description
EntryPoint ( RemoteHooking inContext, string implentationDir, RegistryFilter registryFilter, RelaunchControl relaunchControl ) : System

Creates a new entry point.

Run ( RemoteHooking inContext, string implentationDir, RegistryFilter registryFilter, RelaunchControl relaunchControl ) : void

Sets up the API hooks and maintains them.

Private Methods

Method Description
ConfigureTaskbar ( IntPtr windowHandle ) : void

Applies relaunch command and jump list modifications to a Windows 7 taskbar entry.

CreateProcessACallback ( string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, IntPtr lpStartupInfo, ProcessInformation &lpProcessInformation ) : bool
CreateProcessWCallback ( string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, IntPtr lpStartupInfo, ProcessInformation &lpProcessInformation ) : bool
CreateWindowExACallback ( uint dwExStyle, IntPtr lpClassName, IntPtr lpWindowName, uint dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, IntPtr hMenu, IntPtr hInstance, IntPtr lpParam ) : IntPtr
CreateWindowExWCallback ( uint dwExStyle, IntPtr lpClassName, IntPtr lpWindowName, uint dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, IntPtr hMenu, IntPtr hInstance, IntPtr lpParam ) : IntPtr
FilterWriteBuffer ( IntPtr &dataPointer, uint &dataLength, bool unicode ) : bool

Applies filter operations to string buffers for registry set/write operations.

GetFilteredValue ( IntPtr hKey, string valueName ) : string

Perfrms a registry read operation applying _registryFilter.

RegQueryValueExACallback ( IntPtr hKey, string lpValueName, IntPtr lpReserved, RegistryValueKind &dwType, IntPtr lpData, uint &cbData ) : uint
RegQueryValueExWCallback ( IntPtr hKey, string lpValueName, IntPtr lpReserved, RegistryValueKind &dwType, IntPtr lpData, uint &cbData ) : uint
RegSetValueExACallback ( IntPtr hKey, string lpValueName, int lpReserved, RegistryValueKind dwType, IntPtr lpData, uint cbData ) : uint
RegSetValueExWCallback ( IntPtr hKey, string lpValueName, int lpReserved, RegistryValueKind dwType, IntPtr lpData, uint cbData ) : uint
SetupHooks ( ) : void
WriteStringToBuffer ( IntPtr buffer, uint &dataLength, bool unicode, string data ) : uint

Writes data to a string buffer.

Method Details

EntryPoint() public method

Creates a new entry point.
public EntryPoint ( RemoteHooking inContext, string implentationDir, RegistryFilter registryFilter, RelaunchControl relaunchControl ) : System
inContext RemoteHooking Hooking context information.
implentationDir string The base directory of the implementation containing this executable.
registryFilter RegistryFilter A set of filter rules to registry access.
relaunchControl RelaunchControl Stores information about how commands within an implementation can be relaunched. Used for Windows 7 taskbar pinning.
return System

Run() public method

Sets up the API hooks and maintains them.
public Run ( RemoteHooking inContext, string implentationDir, RegistryFilter registryFilter, RelaunchControl relaunchControl ) : void
inContext RemoteHooking Hooking context information.
implentationDir string The base directory of the implementation containing this executable.
registryFilter RegistryFilter A set of filter rules to registry access.
relaunchControl RelaunchControl Stores information about how commands within an implementation can be relaunched. Used for Windows 7 taskbar pinning.
return void