C# Class Capture.Hook.BaseDXHook

Inheritance: IDXHook
Show file Open project: remcoros/Direct3DCapture

Protected Properties

Property Type Description
Hooks List
InterfaceEventProxy Capture.Interface.ClientCaptureInterfaceEventProxy

Public Methods

Method Description
BaseDXHook ( CaptureInterface ssInterface ) : System
Cleanup ( ) : void
Dispose ( ) : void
Hook ( ) : void

Protected Methods

Method Description
CopyStream ( Stream input, Stream output ) : void
DebugMessage ( string message ) : void
Dispose ( bool disposing ) : void
Frame ( ) : void
GetVTblAddress ( IntPtr vTable, int i ) : IntPtr
GetVTblAddresses ( IntPtr pointer, int numberOfMethods ) : System.IntPtr[]
GetVTblAddresses ( IntPtr pointer, int startIndex, int numberOfMethods ) : System.IntPtr[]
InterfaceEventProxy_ScreenshotRequested ( Capture.Interface.ScreenshotRequest request ) : void
ProcessCapture ( Capture.Hook.RetrieveImageDataParams data ) : void
ReadFullStream ( Stream stream ) : byte[]

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.

TraceMessage ( string message ) : void

Private Methods

Method Description
BitmapFromBytes ( byte bitmapData ) : Bitmap
GetEncoder ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo
InterfaceEventProxy_DisplayText ( Capture.Interface.DisplayTextEventArgs args ) : void

Method Details

BaseDXHook() public method

public BaseDXHook ( CaptureInterface ssInterface ) : System
ssInterface Capture.Interface.CaptureInterface
return System

Cleanup() public abstract method

public abstract Cleanup ( ) : void
return void

CopyStream() protected static method

protected static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
return void

DebugMessage() protected method

protected DebugMessage ( string message ) : void
message string
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Frame() protected method

protected Frame ( ) : void
return void

GetVTblAddress() protected method

protected GetVTblAddress ( IntPtr vTable, int i ) : IntPtr
vTable System.IntPtr
i int
return System.IntPtr

GetVTblAddresses() protected method

protected GetVTblAddresses ( IntPtr pointer, int numberOfMethods ) : System.IntPtr[]
pointer System.IntPtr
numberOfMethods int
return System.IntPtr[]

GetVTblAddresses() protected method

protected GetVTblAddresses ( IntPtr pointer, int startIndex, int numberOfMethods ) : System.IntPtr[]
pointer System.IntPtr
startIndex int
numberOfMethods int
return System.IntPtr[]

Hook() public abstract method

public abstract Hook ( ) : void
return void

InterfaceEventProxy_ScreenshotRequested() protected method

protected InterfaceEventProxy_ScreenshotRequested ( Capture.Interface.ScreenshotRequest request ) : void
request Capture.Interface.ScreenshotRequest
return void

ProcessCapture() protected method

protected ProcessCapture ( Capture.Hook.RetrieveImageDataParams data ) : void
data Capture.Hook.RetrieveImageDataParams
return void

ReadFullStream() protected static method

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.
protected static ReadFullStream ( Stream stream ) : byte[]
stream Stream The stream to read data from
return byte[]

TraceMessage() protected method

protected TraceMessage ( string message ) : void
message string
return void

Property Details

Hooks protected property

protected List Hooks
return List

InterfaceEventProxy protected property

protected ClientCaptureInterfaceEventProxy,Capture.Interface InterfaceEventProxy
return Capture.Interface.ClientCaptureInterfaceEventProxy