getWindowsEvents()
The function returns the Windows events. The events under Windows are split into three different log types.
Synopsis
int getWindowsEvents (time start, time end, int category, dyn_dyn_string
&actions);
Synopsis
Parameter | Description |
---|---|
start | Start time. |
end | End time. |
category |
The type of the event log. This means what kind of actions should be returned. The events under Windows are split into three different log types. Application log - Integer value 0: Application log contains events that are logged by applications or programs. A database program could, for example, log a file error in the application log. The developer of the respective program decides which events should be logged. Security log - Integer value 1: The security log contains events like valid and invalid log in attempts as well as events for resource use , for example, creating, opening or deleting of files or other objects. An administrator defines the events that should be logged via the security log. When the security log is activated the log in attempts of the system are logged in the security log. System log - Integer value 2: The system log contains events that are logged by Windows system components. Events like failure when loading the device driver or failure of another system component at system start are logged in the system log. The event types logged by system components are predefined via Windows. |
&actions | The returned actions. |
Return Value
Integer.
Error
The function returns -1 in case of errors and otherwise 0.
Description
The function returns the Windows actions.
The function returns the Windows events executed via different applications between the 7th and 8th of July 2003.
main()
{
time start;
time end;
setTime(start,2003,7,7);
setTime(end,2003,7,8);
int category = 2;
dyn_dyn_string actions;
getWindowsEvents(start,end,category,actions);
DebugN(start,end,category,actions);
}
Assignment
User administration, waiting control function
Availability
CTRL