PageantLibrary encapsulates the shared memory access and provides
a simple pipe abstraction.
| Modifier and Type | Class and Description |
|---|---|
| public static class | PageantLibrary.
Windows' COPYDATASTRUCT. |
| pack-priv static interface | PageantLibrary.
An abstraction for a bi-directional pipe. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final String | PAGEANT
Pageant's "class" and "window name". |
| private static final int | PAGEANT_ID
Magic constant from Pageant; ID for the CopyStruct used in SendMessage. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| pack-priv PageantLibrary. | |
| pack-priv boolean | Returns: true if Pageant is running, false otherwiseDetermines whether Pageant is currently running. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| PAGEANT | back to summary |
|---|---|
| private static final String PAGEANT Pageant's "class" and "window name". | |
| PAGEANT_ID | back to summary |
|---|---|
| private static final int PAGEANT_ID Magic constant from Pageant; ID for the CopyStruct used in SendMessage.
| |
| PageantLibrary | back to summary |
|---|---|
| public PageantLibrary() | |
| close | back to summary |
|---|---|
| private static void close(LibraryHolder libs, WinNT. | |
| createPipe | back to summary |
|---|---|
| pack-priv PageantLibrary. Creates a new
| |
| isPageantAvailable | back to summary |
|---|---|
| pack-priv boolean isPageantAvailable() Determines whether Pageant is currently running.
| |
| Modifier and Type | Field and Description |
|---|---|
| public long | |
| public int | dwData
Must be set the |
| public Pointer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected List | getFieldOrder()
Overrides com. Returns this Structure's field names in their proper order. |
| cbData | back to summary |
|---|---|
| public long cbData Data length; number of bytes in | |
| dwData | back to summary |
|---|---|
| public int dwData Must be set the | |
| lpData | back to summary |
|---|---|
| public Pointer lpData Points to | |
| CopyStruct | back to summary |
|---|---|
| public CopyStruct() | |
| getFieldOrder | back to summary |
|---|---|
| protected List Overrides com. Doc from com. Returns this Structure's field names in their proper order.
Important Note When deriving from an existing Structure subclass, ensure that you augment the list provided by the superclass, e.g.
Field order must be explicitly indicated, since the
field order as returned by Class#getFields() is not
guaranteed to be predictable.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| receive | back to summary |
|---|---|
| public void receive(byte[] data) throws IOException Reads bytes from the pipe until
| |
| send | back to summary |
|---|---|
| public void send(byte[] message) throws IOException Send the given message.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final WinNT. | |
| private final LibraryHolder | |
| private final Pointer | |
| private final byte[] | |
| private long | |
| private final WinDef. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private Pointer | |
| public void | receive(byte[]
to read data)Implements org. Reads bytes from the pipe until |
| public void | send(byte[]
to send message)Implements org. Send the given message. |
| file | back to summary |
|---|---|
| private final WinNT. | |
| libs | back to summary |
|---|---|
| private final LibraryHolder libs | |
| memory | back to summary |
|---|---|
| private final Pointer memory | |
| name | back to summary |
|---|---|
| private final byte[] name | |
| readPos | back to summary |
|---|---|
| private long readPos | |
| window | back to summary |
|---|---|
| private final WinDef. | |
| PipeImpl | back to summary |
|---|---|
| pack-priv PipeImpl(LibraryHolder libs, WinDef. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| init | back to summary |
|---|---|
| private Pointer init(PageantLibrary. | |
| receive | back to summary |
|---|---|
| public void receive(byte[] data) throws IOException Implements org. Doc from org. Reads bytes from the pipe until
| |
| send | back to summary |
|---|---|
| public void send(byte[] message) throws IOException Implements org. Doc from org. Send the given message.
| |