
Additional information on event logging
For additional information on Windows event logging, search Microsoft Developer Network (MSDN) at
http://msdn.microsoft.com/.
Remote application termination
This section describes how to create a Windows agent on the remote computer that provides remote
application termination.
A desktop session can operate independently of the RGS connection. This allows you to disconnect and
reconnect to desktop sessions as part of a normal workflow. However, when an RGS connection is
unintentionally disconnected, you might want remote applications to be terminated to prevent them from
operating unsupervised.
For a sample agent, see
Sample agent on page 71.
HPRemote log format
Data in the HPRemote log consists of a Message ID followed by optional data in both character string and
binary data formats. Binary data provides direct access to data without requiring application parsing.
Character strings format the binary data into human-readable messages compatible with the Windows Event
Viewer.
Table 8-3 RGS Sender events logged in the HPRemote log on page 65 shows the events logged in
the HPRemote log. The Message IDs are defined in the header file RGSenderEvents.h, and are 32-bit values.
The EventID is from the Code field within the Message ID and, for the HPRemote log, ranges from 1 to 13.
Table 8-3 RGS Sender events logged in the HPRemote log
Message ID Description
RGSENDER_CONNECT_STATE
EventID: 3
The connection state consists of zero or more primary
connections and zero or more non-primary connections. Each
event entry records the current number of active connections in
each category. Events appear when the connection status of
these users changes. The first field represents the number of
primary connections. The second field represents the number of
non-primary connections. Each state field provides a text string
and binary, 32-bit unsigned integer for application use.
Event Viewer Message:
Primary connections:%1.
Non-primary connections:%2.
Strings:
%1 = number of primary connections
%2 = number of non-primary connections
Data:
UINT32 numPrimary
UINT32 numNonprimary
Event Viewer Example:
Primary connections:1
Non-primary connections:0
Remote application termination 65
Commentaires sur ces manuels