CopyData Class
From Tungsten Suite
Tungsten
|
|
CopyData Class |
Sends and receives data via WM_COPYDATA
SystemObject SystemMarshalByRefObject
System.Windows.FormsNativeWindow
W.InterProcessCopyData
W.InterProcessCopyDataTMessage
System.Windows.FormsNativeWindow
W.InterProcessCopyData
W.InterProcessCopyDataTMessage
Namespace: W.InterProcess
Assembly: Tungsten.InterProcess (in Tungsten.InterProcess.dll) Version: 2.0.0
C#
public class CopyData : NativeWindow
The CopyData type exposes the following members.
| Name | Description | |
|---|---|---|
| CopyData(String) |
Constructs a new CopyData instance which can only listen for messages
| |
| CopyData(PredicateString, Boolean) |
Constructs a new CopyData instance
| |
| CopyData(IntPtr, PredicateString, Boolean) |
Constructs a new CopyData instance
| |
| CopyData(Form, PredicateString, Boolean) |
Constructs a new CopyData instance
|
| Name | Description | |
|---|---|---|
| Handle | Gets the handle for this window. (Inherited from NativeWindow.) | |
| TargetWindows |
The windows which should receive messages
|
| Name | Description | |
|---|---|---|
| AssignHandle | Assigns a handle to this window. (Inherited from NativeWindow.) | |
| CreateHandle | Creates a window and its handle with the specified creation parameters. (Inherited from NativeWindow.) | |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| DefWndProc | Invokes the default window procedure associated with this window. (Inherited from NativeWindow.) | |
| DestroyHandle | Destroys the window and its handle. (Inherited from NativeWindow.) | |
| Enable |
Enables a window to receive WM_COPYDATA messages
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Releases the resources associated with this window. (Inherited from NativeWindow.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| OnHandleChange | Specifies a notification method that is called when the handle for a window is changed. (Inherited from NativeWindow.) | |
| OnThreadException | When overridden in a derived class, manages an unhandled thread exception. (Inherited from NativeWindow.) | |
| OnWM_COPYDATA |
Called when the window receives a WM_COPYDATA message
| |
| RaiseBytesReceived |
Raises the BytesReceived event
| |
| RaiseError |
Raises the Error event
| |
| RefreshTargets |
Refreshes the list of target windows
| |
| ReleaseHandle | Releases the handle associated with this window. (Inherited from NativeWindow.) | |
| Send(Byte) |
Sends a message via WM_COPYDATA
| |
| Send(IntPtr, Byte, IntPtr) |
Sends a byte array from the source window to windows matching the filter predicate
| |
| Send(IntPtr, Byte, IntPtr, ActionWin32Exception) |
Sends a byte array from the source window to windows matching the filter predicate
| |
| Send(IntPtr, Byte, PredicateString, ActionWin32Exception) |
Sends a byte array from the source window to windows matching the filter predicate
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| WndProc |
The window procedure
(Overrides NativeWindowWndProc(Message).) |
| Name | Description | |
|---|---|---|
| BytesReceived |
Raised when a message has been received
| |
| Error |
Raised when an error occurs while sending or receiving messages
|
| Name | Description | |
|---|---|---|
| AsTType |
Use Generic syntax for the as operator.
(Defined by AsExtensions.) | |
| InitializeProperties | Scans the fields and properties of "owner" and sets the member's Owner property to "owner" This method should be called in the constructor of any class which has IOwnedProperty members | |
| InLock(Action) | Overloaded.
Performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
| InLockTType(FuncTType) | Overloaded.
Performs the function in a Monitor lock
(Defined by MonitorExtensions.) | |
| InLockAsync(Action) | Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
| InLockAsyncTType(FuncTType) | Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
| IsDirty | Scans the IsDirty value of each field and property of type IProperty | |
| Lock |
Performs a Monitor lock
(Defined by MonitorExtensions.) | |
| MarkAsClean | Scans each field and property of type IProperty and sets it's IsDirty flag to false | |
| Unlock |
Performs a Monitor unlock
(Defined by MonitorExtensions.) |