#include <windows.h>
#include "oorexxapi.h"
#include <stdio.h>
#include <string.h>
#include <ddeml.h>
#include <time.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <algorithm>
Go to the source code of this file.
Macros | |
#define | STR_BUFFER 256 |
#define | MAX_TIME_DATE 128 |
#define | MAX_REGISTRY_KEY_SIZE 256 |
#define | MSG_TIMEOUT 5000 |
#define | MSG_TIMEOUT_OPTS (SMTO_ABORTIFHUNG|SMTO_NORMAL) |
#define | INVALID_ROUTINE 40 /* Raise Rexx error */ |
#define | VALID_ROUTINE 0 /* Successful completion */ |
#define | CHECKARG(argexpctl, argexpcth) if ((argc < argexpctl) || (argc > argexpcth)) return HandleArgError(retstr, (argc > argexpcth)) |
#define | RETC(retcode) |
#define | RETERR |
#define | RETVAL(retvalue) |
#define | RET_HANDLE(retvalue) |
#define | GET_HKEY(argum, ghk) |
#define | GET_HANDLE(argum, ghk) string2pointer(argum, (void **)&(ghk)) |
#define | SET_VARIABLE(varname, data, retc) |
#define | GET_TYPE_INDEX(type, index) |
#define | IDS_REGISTRY_KEY_CURRENT_SHELLFOLDER "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" |
#define | IDS_CURRENT_DESKTOP "Desktop" |
#define | IDS_REGISTRY_KEY_ALL_NT_SHELLFOLDER "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" |
#define | IDS_ALL_NT_DESKTOP "Common Desktop" |
#define | IDS_REGISTRY_KEY_ALL_9x_SHELLFOLDER ".DEFAULT\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" |
#define | IDS_ALL_9x_DESKTOP "Desktop" |
#define | WSEL_DEFAULT_EVENTS_ARRAY_SIZE 512 |
#define | WSEL_DEFAULT_SOURCE "Application" |
#define | HANDLE_ATTRIBUTE "CURRENTHANDLE" |
#define | RECORDS_ATTRIBUTE "EVENTS" |
#define | INITCODE_ATTRIBUTE "INITCODE" |
#define | MIN_READ_BUFFER_ATTRIBUTE "MINIMUMREADBUFFER" |
#define | MIN_READ_MIN_ATTRIBUTE "MINIMUMREADMIN" |
#define | MIN_READ_MAX_ATTRIBUTE "MINIMUMREADMAX" |
#define | MAX_RECORD_SIZE 256 * 1024 |
#define | MAX_READ_KB_COUNT 256 |
#define | MAX_READ_BUFFER MAX_READ_KB_COUNT * 1024 |
#define | MIN_READ_KB_COUNT 16 |
#define | MIN_READ_BUFFER MIN_READ_KB_COUNT * 1024 |
#define | BAD_RECORD_ARRAY_MSG "The events attribute has been altered so it is no longer an array object" |
#define | BAD_RECORD_START_MSG "Requested start exceeds number of records" |
#define | TOO_SMALLBUFFER_MSG "An event log record is too large (%u) for the read buffer (%u.)" |
#define | START_RECORD_OUT_OF_RANGE_MSG "The start record (%u) is out of range; (%u - %u)" |
#define | END_RECORD_OUT_OF_RANGE_MSG "start and count produce an end record (%u) out of range; (%u - %u)" |
Enumerations | |
enum | LogNumberOp { record_count , oldest_record , youngest_record } |
Functions | |
void | memupper (char *location, size_t length) |
VOID | Little2BigEndian (BYTE *pbInt, INT iSize) |
size_t | dwordPtrToRexx (DWORD_PTR val, PRXSTRING r) |
LONG | HandleArgError (PRXSTRING r, BOOL ToMuch) |
bool | isHex (CSTRING value) |
BOOL | string2pointer (const char *string, void **pointer) |
void | pointer2string (PRXSTRING result, void *pointer) |
void | pointer2string (char *result, void *pointer) |
RexxStringObject | pointer2string (RexxMethodContext *c, void *pointer) |
HKEY | getParentKeyHandle (RexxMethodContext *c, CSTRING hkParent) |
RexxMethod0 (RexxObjectPtr, WSRegistry_init) | |
RexxMethod0 (RexxObjectPtr, getCurrent_Key) | |
RexxMethod1 (RexxObjectPtr, setCurrent_Key, RexxStringObject, regKeyHandle) | |
RexxMethod0 (POINTERSTRING, getLocal_Machine) | |
RexxMethod0 (POINTERSTRING, getCurrent_User) | |
RexxMethod0 (POINTERSTRING, getUsers) | |
RexxMethod0 (POINTERSTRING, getClasses_Root) | |
RexxMethod0 (POINTERSTRING, getPerformance_Data) | |
RexxMethod0 (POINTERSTRING, getCurrent_Config) | |
RexxMethod2 (uint32_t, WSRegistry_delete, OPTIONAL_CSTRING, hkParent, CSTRING, subKeyName) | |
RexxMethod3 (RexxObjectPtr, WSRegistry_open, OPTIONAL_CSTRING, hkParent, OPTIONAL_CSTRING, subKeyName, OPTIONAL_CSTRING, access) | |
size_t RexxEntry | WSRegistryKey (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
size_t RexxEntry | WSRegistryValue (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
size_t RexxEntry | WSRegistryFile (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
HDDEDATA CALLBACK | DDECallback (UINT wType, UINT wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hDDEData, DWORD dwData1, DWORD dwData2) |
BOOL | ProgmanCmd (LPSTR lpszCmd) |
BOOL | AddPMGroup (const char *lpszGroup, const char *lpszPath) |
BOOL | DeletePMGroup (const char *lpszGroup) |
BOOL | ShowPMGroup (const char *lpszGroup, WORD wCmd) |
BOOL | AddPMItem (const char *lpszCmdLine, const char *lpszCaption, const char *lpszIconPath, WORD wIconIndex, const char *lpszDir, BOOL bLast, const char *lpszHotKey, const char *lpszModifier, BOOL bMin) |
BOOL | DeletePMItem (const char *lpszItem) |
BOOL | LeavePM (BOOL bSaveGroups) |
BOOL | GetCurrentUserDesktopLocation (LPBYTE szDesktopDir, LPDWORD lpcbData) |
BOOL | GetAllUserDesktopLocation (LPBYTE szDesktopDir, LPDWORD lpcbData) |
BOOL | AddPMDesktopIcon (const char *lpszName, const char *lpszProgram, const char *lpszIcon, int iIconIndex, const char *lpszWorkDir, const char *lpszLocation, const char *lpszArguments, int iScKey, int iScModifier, const char *lpszRun) |
INT | DelPMDesktopIcon (const char *lpszName, const char *lpszLocation) |
size_t RexxEntry | WSProgManager (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
void | lookupMessageFile (char *pValueName, char *logName, char *source, char *fileBuffer) |
BOOL | findAndFormatDescription (char *files, DWORD msgID, char **ppInserts, LPVOID *lpMsgBuf) |
void | getEventDescription (PEVENTLOGRECORD pEvLogRecord, const char *pchSource, char **ppMessage) |
char * | getEventUserName (PEVENTLOGRECORD pEvLogRecord) |
size_t | getEventBinaryData (PEVENTLOGRECORD pEvLogRecord, char **ppBinData) |
void | systemServiceException (RexxMethodContext *context, char *msg) |
void | outOfMemoryException (RexxMethodContext *c) |
void | wrongArgValueException (RexxMethodContext *c, int pos, const char *list, RexxObjectPtr actual) |
void | wrongArgValueException (RexxMethodContext *c, int pos, const char *list, const char *actual) |
unsigned int | wrongClassException (RexxMethodContext *c, int pos, const char *n) |
void | setCurrentHandle (RexxMethodContext *context, HANDLE h) |
HANDLE | getCurrentHandle (RexxMethodContext *context) |
DWORD | getMinimumReadBufferSize (RexxMethodContext *c) |
RexxArrayObject | getRecordArray (RexxMethodContext *context) |
bool | getOpenEventLog (RexxMethodContext *context, const char *server, const char *source, HANDLE *pHandle, DWORD *pRC) |
DWORD | closeEventLog (RexxMethodContext *context) |
int32_t | getEventLogNumber (RexxMethodContext *context, LogNumberOp numberType, CSTRING server, CSTRING source) |
bool | checkReadRecordsArgs (RexxMethodContext *context, HANDLE hLog, CSTRING direction, uint32_t start, uint32_t *count, DWORD *flags, DWORD *rc) |
bool | isGoodEventType (uint16_t type) |
RexxMethod0 (int, WSEventLog_init) | |
RexxMethod2 (uint32_t, WSEventLog_open, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source) | |
RexxMethod2 (int32_t, WSEventLog_getNumber, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source) | |
RexxMethod2 (int32_t, WSEventLog_getFirst, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source) | |
RexxMethod2 (int32_t, WSEventLog_getLast, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source) | |
RexxMethod2 (logical_t, WSEventLog_isFull, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source) | |
RexxMethod3 (uint32_t, WSEventLog_clear, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source, OPTIONAL_CSTRING, backupFile) | |
RexxMethod7 (uint32_t, WSEventLog_write, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source, OPTIONAL_uint16_t, t, OPTIONAL_uint16_t, category, OPTIONAL_uint32_t, id, OPTIONAL_RexxStringObject, rawData, ARGLIST, args) | |
RexxMethod1 (int, WSEventLog_minimumReadSet, uint32_t, countKB) | |
RexxMethod0 (uint32_t, WSEventLog_minimumReadGet) | |
RexxMethod5 (uint32_t, WSEventLog_readRecords, OPTIONAL_CSTRING, direction, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source, OPTIONAL_uint32_t, start, OPTIONAL_uint32_t, count) | |
RexxMethod1 (uint32_t, WSEventLog_getLogNames, RexxObjectPtr, obj) | |
RexxMethod0 (uint32_t, WSEventLog_close) | |
RexxMethod0 (uint32_t, WSEventLog_uninit) | |
RexxMethod4 (int, WSEventLog_test, RexxStringObject, data, OPTIONAL_CSTRING, server, OPTIONAL_CSTRING, source, ARGLIST, args) | |
size_t RexxEntry | WSCtrlWindow (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
size_t RexxEntry | WSCtrlSend (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
size_t RexxEntry | WSCtrlMenu (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
size_t RexxEntry | WSClipboard (const char *funcname, size_t argc, CONSTRXSTRING argv[], const char *qname, PRXSTRING retstr) |
size_t RexxEntry | InstWinSysFuncs (const char *funcname, size_t argc, CONSTRXSTRING *argv, const char *qname, RXSTRING *retstr) |
OOREXX_GET_PACKAGE (rxwinsys) | |
Variables | |
RexxRoutineEntry | rxwinsys_functions [] |
RexxMethodEntry | rxwinsys_methods [] |
RexxPackageEntry | rxwinsys_package_entry |
#define BAD_RECORD_ARRAY_MSG "The events attribute has been altered so it is no longer an array object" |
Definition at line 1792 of file rxwinsys.cpp.
#define BAD_RECORD_START_MSG "Requested start exceeds number of records" |
Definition at line 1793 of file rxwinsys.cpp.
#define CHECKARG | ( | argexpctl, | |
argexpcth | |||
) | if ((argc < argexpctl) || (argc > argexpcth)) return HandleArgError(retstr, (argc > argexpcth)) |
Definition at line 111 of file rxwinsys.cpp.
#define END_RECORD_OUT_OF_RANGE_MSG "start and count produce an end record (%u) out of range; (%u - %u)" |
Definition at line 1796 of file rxwinsys.cpp.
#define GET_HANDLE | ( | argum, | |
ghk | |||
) | string2pointer(argum, (void **)&(ghk)) |
Definition at line 162 of file rxwinsys.cpp.
#define GET_HKEY | ( | argum, | |
ghk | |||
) |
Definition at line 149 of file rxwinsys.cpp.
#define GET_TYPE_INDEX | ( | type, | |
index | |||
) |
Definition at line 179 of file rxwinsys.cpp.
#define HANDLE_ATTRIBUTE "CURRENTHANDLE" |
Definition at line 1776 of file rxwinsys.cpp.
#define IDS_ALL_9x_DESKTOP "Desktop" |
Definition at line 1440 of file rxwinsys.cpp.
#define IDS_ALL_NT_DESKTOP "Common Desktop" |
Definition at line 1437 of file rxwinsys.cpp.
#define IDS_CURRENT_DESKTOP "Desktop" |
Definition at line 1385 of file rxwinsys.cpp.
#define IDS_REGISTRY_KEY_ALL_9x_SHELLFOLDER ".DEFAULT\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" |
Definition at line 1439 of file rxwinsys.cpp.
#define IDS_REGISTRY_KEY_ALL_NT_SHELLFOLDER "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" |
Definition at line 1436 of file rxwinsys.cpp.
#define IDS_REGISTRY_KEY_CURRENT_SHELLFOLDER "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" |
Definition at line 1384 of file rxwinsys.cpp.
#define INITCODE_ATTRIBUTE "INITCODE" |
Definition at line 1778 of file rxwinsys.cpp.
#define INVALID_ROUTINE 40 /* Raise Rexx error */ |
Definition at line 90 of file rxwinsys.cpp.
#define MAX_READ_BUFFER MAX_READ_KB_COUNT * 1024 |
Definition at line 1788 of file rxwinsys.cpp.
#define MAX_READ_KB_COUNT 256 |
Definition at line 1787 of file rxwinsys.cpp.
#define MAX_RECORD_SIZE 256 * 1024 |
Definition at line 1784 of file rxwinsys.cpp.
#define MAX_REGISTRY_KEY_SIZE 256 |
Definition at line 53 of file rxwinsys.cpp.
#define MAX_TIME_DATE 128 |
Definition at line 50 of file rxwinsys.cpp.
#define MIN_READ_BUFFER MIN_READ_KB_COUNT * 1024 |
Definition at line 1790 of file rxwinsys.cpp.
#define MIN_READ_BUFFER_ATTRIBUTE "MINIMUMREADBUFFER" |
Definition at line 1779 of file rxwinsys.cpp.
#define MIN_READ_KB_COUNT 16 |
Definition at line 1789 of file rxwinsys.cpp.
#define MIN_READ_MAX_ATTRIBUTE "MINIMUMREADMAX" |
Definition at line 1781 of file rxwinsys.cpp.
#define MIN_READ_MIN_ATTRIBUTE "MINIMUMREADMIN" |
Definition at line 1780 of file rxwinsys.cpp.
#define MSG_TIMEOUT 5000 |
Definition at line 55 of file rxwinsys.cpp.
#define MSG_TIMEOUT_OPTS (SMTO_ABORTIFHUNG|SMTO_NORMAL) |
Definition at line 59 of file rxwinsys.cpp.
#define RECORDS_ATTRIBUTE "EVENTS" |
Definition at line 1777 of file rxwinsys.cpp.
#define RET_HANDLE | ( | retvalue | ) |
Definition at line 138 of file rxwinsys.cpp.
#define RETC | ( | retcode | ) |
Definition at line 116 of file rxwinsys.cpp.
#define RETERR |
Definition at line 123 of file rxwinsys.cpp.
#define RETVAL | ( | retvalue | ) |
Definition at line 131 of file rxwinsys.cpp.
#define SET_VARIABLE | ( | varname, | |
data, | |||
retc | |||
) |
Definition at line 165 of file rxwinsys.cpp.
#define START_RECORD_OUT_OF_RANGE_MSG "The start record (%u) is out of range; (%u - %u)" |
Definition at line 1795 of file rxwinsys.cpp.
#define STR_BUFFER 256 |
Definition at line 49 of file rxwinsys.cpp.
#define TOO_SMALLBUFFER_MSG "An event log record is too large (%u) for the read buffer (%u.)" |
Definition at line 1794 of file rxwinsys.cpp.
#define VALID_ROUTINE 0 /* Successful completion */ |
Definition at line 91 of file rxwinsys.cpp.
#define WSEL_DEFAULT_EVENTS_ARRAY_SIZE 512 |
Definition at line 1774 of file rxwinsys.cpp.
#define WSEL_DEFAULT_SOURCE "Application" |
Definition at line 1775 of file rxwinsys.cpp.
enum LogNumberOp |
Enumerator | |
---|---|
record_count | |
oldest_record | |
youngest_record |
Definition at line 1798 of file rxwinsys.cpp.
BOOL AddPMDesktopIcon | ( | const char * | lpszName, |
const char * | lpszProgram, | ||
const char * | lpszIcon, | ||
int | iIconIndex, | ||
const char * | lpszWorkDir, | ||
const char * | lpszLocation, | ||
const char * | lpszArguments, | ||
int | iScKey, | ||
int | iScModifier, | ||
const char * | lpszRun | ||
) |
Definition at line 1511 of file rxwinsys.cpp.
References GetAllUserDesktopLocation(), and GetCurrentUserDesktopLocation().
Referenced by WSProgManager().
BOOL AddPMGroup | ( | const char * | lpszGroup, |
const char * | lpszPath | ||
) |
Definition at line 1246 of file rxwinsys.cpp.
References ProgmanCmd().
Referenced by WSProgManager().
BOOL AddPMItem | ( | const char * | lpszCmdLine, |
const char * | lpszCaption, | ||
const char * | lpszIconPath, | ||
WORD | wIconIndex, | ||
const char * | lpszDir, | ||
BOOL | bLast, | ||
const char * | lpszHotKey, | ||
const char * | lpszModifier, | ||
BOOL | bMin | ||
) |
Definition at line 1297 of file rxwinsys.cpp.
References ProgmanCmd().
Referenced by WSProgManager().
bool checkReadRecordsArgs | ( | RexxMethodContext * | context, |
HANDLE | hLog, | ||
CSTRING | direction, | ||
uint32_t | start, | ||
uint32_t * | count, | ||
DWORD * | flags, | ||
DWORD * | rc | ||
) |
Convenience function to do most of the arg checking for the WindowsEventLog::readRecords() method.
context | The method context we're operating under. |
hLog | The opened handle to the event log we are dealing with. |
direction | The direction arg (arg 1) passed to the method. |
start | The start arg (arg 4) passed to the method. |
count | Pointer to the count arg (arg 5) passed to the method. The true count of records to be read is returned here. |
flags | Pointer to the flags to use in the ReadEventLog() API. The actual flags to use are based on the args passed to the method and returned here. |
rc | A returned error code, 0 or a system error code. |
Definition at line 2452 of file rxwinsys.cpp.
References argumentExists, argumentOmitted, END_RECORD_OUT_OF_RANGE_MSG, Rexx_Error_Incorrect_method_noarg, Rexx_Error_Incorrect_method_user_defined, START_RECORD_OUT_OF_RANGE_MSG, and wrongArgValueException().
Referenced by RexxMethod5().
DWORD closeEventLog | ( | RexxMethodContext * | context | ) |
If the current handle attribute has an opened handle, then it is closed.
context | The method context we are operating under. |
Definition at line 2328 of file rxwinsys.cpp.
References getCurrentHandle(), and setCurrentHandle().
Referenced by RexxMethod0(), and RexxMethod2().
HDDEDATA CALLBACK DDECallback | ( | UINT | wType, |
UINT | wFmt, | ||
HCONV | hConv, | ||
HSZ | hsz1, | ||
HSZ | hsz2, | ||
HDDEDATA | hDDEData, | ||
DWORD | dwData1, | ||
DWORD | dwData2 | ||
) |
Definition at line 1172 of file rxwinsys.cpp.
Referenced by ProgmanCmd().
BOOL DeletePMGroup | ( | const char * | lpszGroup | ) |
Definition at line 1267 of file rxwinsys.cpp.
References ProgmanCmd().
Referenced by WSProgManager().
BOOL DeletePMItem | ( | const char * | lpszItem | ) |
Definition at line 1341 of file rxwinsys.cpp.
References ProgmanCmd().
Referenced by WSProgManager().
INT DelPMDesktopIcon | ( | const char * | lpszName, |
const char * | lpszLocation | ||
) |
Definition at line 1659 of file rxwinsys.cpp.
References GetAllUserDesktopLocation(), and GetCurrentUserDesktopLocation().
Referenced by WSProgManager().
size_t dwordPtrToRexx | ( | DWORD_PTR | val, |
PRXSTRING | r | ||
) |
Definition at line 95 of file rxwinsys.cpp.
References RXAUTOBUFLEN, _RXSTRING::strlength, and _RXSTRING::strptr.
Referenced by WSCtrlSend().
BOOL findAndFormatDescription | ( | char * | files, |
DWORD | msgID, | ||
char ** | ppInserts, | ||
LPVOID * | lpMsgBuf | ||
) |
Search a list of messages files for a specified message ID and, if found, format and return the message.
files | List of message files separated by a semi-colon. |
msgID | The message ID to search for. |
ppInserts | Possible array of insertion strings to use when formatting the message. |
lpMsgBuf | On success, a returned buffer containing the formatted message. |
Definition at line 1871 of file rxwinsys.cpp.
Referenced by getEventDescription().
BOOL GetAllUserDesktopLocation | ( | LPBYTE | szDesktopDir, |
LPDWORD | lpcbData | ||
) |
Definition at line 1443 of file rxwinsys.cpp.
References IDS_ALL_NT_DESKTOP, and IDS_REGISTRY_KEY_ALL_NT_SHELLFOLDER.
Referenced by AddPMDesktopIcon(), and DelPMDesktopIcon().
HANDLE getCurrentHandle | ( | RexxMethodContext * | context | ) |
Gets the handle value at the CURRENTHANDLE attribute. If the handle is not null, it is an open handle to an event log.
context | The method context we are operating under. |
Definition at line 2183 of file rxwinsys.cpp.
References HANDLE_ATTRIBUTE, and NULLOBJECT.
Referenced by closeEventLog(), and getOpenEventLog().
BOOL GetCurrentUserDesktopLocation | ( | LPBYTE | szDesktopDir, |
LPDWORD | lpcbData | ||
) |
Definition at line 1387 of file rxwinsys.cpp.
References IDS_CURRENT_DESKTOP, and IDS_REGISTRY_KEY_CURRENT_SHELLFOLDER.
Referenced by AddPMDesktopIcon(), and DelPMDesktopIcon().
size_t getEventBinaryData | ( | PEVENTLOGRECORD | pEvLogRecord, |
char ** | ppBinData | ||
) |
Allocates a buffer and fills it with the event log record's binary data field converted to a character representation. I.e., 4115 would be converted to a series of chars: 01000103 (0x1013 == 4115) and returned in the buffer.
pEvLogRecord | [in] Pointer to an event log record. |
ppBinData | [out] Allocated buffer address is returned here. |
Definition at line 2113 of file rxwinsys.cpp.
Referenced by RexxMethod5().
void getEventDescription | ( | PEVENTLOGRECORD | pEvLogRecord, |
const char * | pchSource, | ||
char ** | ppMessage | ||
) |
Builds up the descriptive message that goes with an event record.
pEvLogRecord | Event record of interest. |
pchSource | Source of event with an event log. |
ppMessage | Formatted description is returned here. |
Definition at line 1921 of file rxwinsys.cpp.
References findAndFormatDescription(), and lookupMessageFile().
Referenced by RexxMethod5().
int32_t getEventLogNumber | ( | RexxMethodContext * | context, |
LogNumberOp | numberType, | ||
CSTRING | server, | ||
CSTRING | source | ||
) |
Gets either the total count of records in the event log, or the record number of the oldest record, or the record number of the youngest record in the event log.
The first record written to the log is record number 1, so 1 is often the oldest record. However, if the user elects to have the log records over-written when the log is full, the oldest record will no longer be 1 as soon as the log starts to overwrite exsiting records.
context | The method context we are operating under. |
numberType | The number operation, i.e. what to do. |
server | The server arg, see getOpenEventLog() for details. |
source | The source arg, see getOpenEventLog() for details. |
Definition at line 2359 of file rxwinsys.cpp.
References getOpenEventLog(), oldest_record, record_count, and youngest_record.
Referenced by RexxMethod2().
char* getEventUserName | ( | PEVENTLOGRECORD | pEvLogRecord | ) |
Translates the security ID value in the event log record to a user name, or "N/A" if that is not possible.
pEvLogRecord | Pointer to event log record. |
Definition at line 2055 of file rxwinsys.cpp.
Referenced by RexxMethod5().
DWORD getMinimumReadBufferSize | ( | RexxMethodContext * | c | ) |
Gets the minimum read buffer size for reading event records from the object attribute. This minimum can be changed by the user. If some error happens, then the original default value is returned.
c | The method context we are operating under. |
Definition at line 2204 of file rxwinsys.cpp.
References MIN_READ_BUFFER, MIN_READ_BUFFER_ATTRIBUTE, and NULLOBJECT.
Referenced by RexxMethod0(), and RexxMethod5().
bool getOpenEventLog | ( | RexxMethodContext * | context, |
const char * | server, | ||
const char * | source, | ||
HANDLE * | pHandle, | ||
DWORD * | pRC | ||
) |
Gets the opened handle to the specified event log.
For the WindowsEventLog class, a currently opened event log handle always take precedence over anything specified by the user. If currentHandle is not null, then server and source are always ignored.
If there is not a currently opened handle, then the user specified server and source are used. Both server and source have defaults, so the user does not need to specify either.
Note that in the OpenEventLog() call, null is used to indicate the default server (the local machine.) If the user omitted the server arg, then sever will be null, which gives us the default automatically. Also note that historically the empty string has also been used to indicate the default, so that is maintained here.
context | The method context pointer |
server | The server to open the event log on. If specified this must be in UNC format, but we do not check for that, merely let the function fail. |
source | The source event log to open, may be omitted. |
pHandle | The opened handle is returned here. |
pRC | On an OS error, the value of GetLastError() is returned here, otherwise 0 is returned here. |
Definition at line 2287 of file rxwinsys.cpp.
References getCurrentHandle(), and WSEL_DEFAULT_SOURCE.
Referenced by getEventLogNumber(), RexxMethod2(), RexxMethod3(), and RexxMethod5().
HKEY getParentKeyHandle | ( | RexxMethodContext * | c, |
CSTRING | hkParent | ||
) |
Resolves a, possibly omitted, registry key handle in string form to a HKEY.
Most of the registry functions require an open 'parent' key handle. Most of the WindowsRegistry methods allow the user to omitt the parent key handle, in which case the stored 'current key' value is used.
c | Method context we are operating under. |
hkParent | The parent key value to resolve. |
Definition at line 327 of file rxwinsys.cpp.
References isHex(), NULLOBJECT, and string2pointer().
Referenced by RexxMethod2(), and RexxMethod3().
RexxArrayObject getRecordArray | ( | RexxMethodContext * | context | ) |
Gets the records array (the array at the EVENTS attribute.) The array is emptied before it is returnd.
context | The method context we are operating under. |
Definition at line 2229 of file rxwinsys.cpp.
References BAD_RECORD_ARRAY_MSG, NULLOBJECT, RECORDS_ATTRIBUTE, and Rexx_Error_Execution_user_defined.
Referenced by RexxMethod5().
LONG HandleArgError | ( | PRXSTRING | r, |
BOOL | ToMuch | ||
) |
Definition at line 102 of file rxwinsys.cpp.
References _RXSTRING::strlength, and _RXSTRING::strptr.
size_t RexxEntry InstWinSysFuncs | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING * | argv, | ||
const char * | qname, | ||
RXSTRING * | retstr | ||
) |
Prior to 4.0.0, this function was documented as a work around to use the WindowObject class when no WindowManager object had been instantiated. So for now it needs to stay. Does nothing.
Definition at line 4048 of file rxwinsys.cpp.
References RETC.
|
inline |
|
inline |
Definition at line 206 of file rxwinsys.cpp.
Referenced by getParentKeyHandle(), and string2pointer().
BOOL LeavePM | ( | BOOL | bSaveGroups | ) |
Definition at line 1356 of file rxwinsys.cpp.
References ProgmanCmd().
Referenced by WSProgManager().
VOID Little2BigEndian | ( | BYTE * | pbInt, |
INT | iSize | ||
) |
Definition at line 4026 of file rxwinsys.cpp.
Referenced by WSRegistryValue().
void lookupMessageFile | ( | char * | pValueName, |
char * | logName, | ||
char * | source, | ||
char * | fileBuffer | ||
) |
Query the registery for the name of an event record's message file. The file name of the message file is stored as a value of a subkey under an application log. The subkey name is the source name of the event. The value name corresponds to the type of message file, event, parameter, or category. (Although the category message file is not currently used by the WindowsEventLog object.)
pValueName | The name of the value whose data is being sought. The data is the message file name. |
logName | The name of the event log. |
source | The source of the event in the specified event log. |
fileBuffer | [out] The message file path name is returned in this buffer, which must be at least MAX_PATH in size. |
Definition at line 1815 of file rxwinsys.cpp.
Referenced by getEventDescription().
void memupper | ( | char * | location, |
size_t | length | ||
) |
Definition at line 76 of file rxwinsys.cpp.
OOREXX_GET_PACKAGE | ( | rxwinsys | ) |
|
inline |
Definition at line 2147 of file rxwinsys.cpp.
References systemServiceException().
Referenced by RexxMethod3(), and RexxMethod5().
void pointer2string | ( | char * | result, |
void * | pointer | ||
) |
Converts a pointer-sized type to a pointer-string, or 0 if the type is null.
result | [out] Pointer-string is returned here. Ensure the storage pointed to is big enough for a 64-bit pointer. |
pointer | [in] The pointer, or pointer-sized type to convert. |
For now, 0 is returned for null rather than 0x00000000 because many, many places in the Windows specific classes test for 0 to detect error.
This function should go away when the Windows classes are converted to use .Pointer for all pointer-sized data types.
Definition at line 282 of file rxwinsys.cpp.
void pointer2string | ( | PRXSTRING | result, |
void * | pointer | ||
) |
Definition at line 244 of file rxwinsys.cpp.
References _RXSTRING::strlength, and _RXSTRING::strptr.
Referenced by pointer2string(), RexxMethod0(), and RexxMethod3().
RexxStringObject pointer2string | ( | RexxMethodContext * | c, |
void * | pointer | ||
) |
Variation of above. Converts the pointer and returns it as a RexxStringObject.
c | Method context we are operating in. |
pointer | Pointer to convert |
Definition at line 305 of file rxwinsys.cpp.
References pointer2string().
BOOL ProgmanCmd | ( | LPSTR | lpszCmd | ) |
Definition at line 1184 of file rxwinsys.cpp.
References DDECallback().
Referenced by AddPMGroup(), AddPMItem(), DeletePMGroup(), DeletePMItem(), LeavePM(), and ShowPMGroup().
RexxMethod0 | ( | int | , |
WSEventLog_init | |||
) |
WindowsEventLog::init()
The init() method for the WindowsEventLog object. Sets the object attributes to their default values.
Definition at line 2567 of file rxwinsys.cpp.
References INITCODE_ATTRIBUTE, MAX_READ_KB_COUNT, MIN_READ_BUFFER, MIN_READ_BUFFER_ATTRIBUTE, MIN_READ_KB_COUNT, MIN_READ_MAX_ATTRIBUTE, MIN_READ_MIN_ATTRIBUTE, RECORDS_ATTRIBUTE, setCurrentHandle(), and WSEL_DEFAULT_EVENTS_ARRAY_SIZE.
RexxMethod0 | ( | POINTERSTRING | , |
getClasses_Root | |||
) |
Definition at line 391 of file rxwinsys.cpp.
RexxMethod0 | ( | POINTERSTRING | , |
getCurrent_Config | |||
) |
Definition at line 401 of file rxwinsys.cpp.
RexxMethod0 | ( | POINTERSTRING | , |
getCurrent_User | |||
) |
Definition at line 381 of file rxwinsys.cpp.
RexxMethod0 | ( | POINTERSTRING | , |
getLocal_Machine | |||
) |
Definition at line 376 of file rxwinsys.cpp.
RexxMethod0 | ( | POINTERSTRING | , |
getPerformance_Data | |||
) |
Definition at line 396 of file rxwinsys.cpp.
RexxMethod0 | ( | POINTERSTRING | , |
getUsers | |||
) |
Definition at line 386 of file rxwinsys.cpp.
RexxMethod0 | ( | RexxObjectPtr | , |
getCurrent_Key | |||
) |
Definition at line 365 of file rxwinsys.cpp.
RexxMethod0 | ( | RexxObjectPtr | , |
WSRegistry_init | |||
) |
Definition at line 359 of file rxwinsys.cpp.
References NULLOBJECT, and pointer2string().
RexxMethod0 | ( | uint32_t | , |
WSEventLog_close | |||
) |
WindowsEventLog::close()
If we have an open open event log handle, closes it.
Definition at line 3267 of file rxwinsys.cpp.
References closeEventLog().
RexxMethod0 | ( | uint32_t | , |
WSEventLog_minimumReadGet | |||
) |
WindowsEventLog::minimumRead
Returns the current setting for the minimum read buffer. The value returned is the size of the buffer in KiloBytes.
Definition at line 2954 of file rxwinsys.cpp.
References getMinimumReadBufferSize().
RexxMethod0 | ( | uint32_t | , |
WSEventLog_uninit | |||
) |
WindowsEventLog::uninit()
Uninit method for the class. Simply makes sure, if we have an open handle, it gets closed.
Definition at line 3277 of file rxwinsys.cpp.
References closeEventLog().
RexxMethod1 | ( | int | , |
WSEventLog_minimumReadSet | , | ||
uint32_t | , | ||
countKB | |||
) |
WindowsEventLog::minimumRead=
Sets the minimumReadBuffer attribute. This attribute controls the minimum allocation size of the buffer used to read in event log records. This value is specified in multiples of 1 KB and must be wtihin the range of MIN_READ_KB_COUNT and MAX_READ_KB_COUNT.
countKB | The number of kilobytes for the minimum buffer allocation. |
Definition at line 2926 of file rxwinsys.cpp.
References MAX_READ_KB_COUNT, MIN_READ_BUFFER_ATTRIBUTE, MIN_READ_KB_COUNT, and Rexx_Error_Invalid_argument_range.
RexxMethod1 | ( | RexxObjectPtr | , |
setCurrent_Key | , | ||
RexxStringObject | , | ||
regKeyHandle | |||
) |
Definition at line 370 of file rxwinsys.cpp.
References NULLOBJECT.
RexxMethod1 | ( | uint32_t | , |
WSEventLog_getLogNames | , | ||
RexxObjectPtr | , | ||
obj | |||
) |
WindowsEventLog::getLogNames()
Obtains a list of all the event log names on the current system.
logNames | [in/out] An .array object in which the event log names are returned. |
Definition at line 3211 of file rxwinsys.cpp.
References MAX_REGISTRY_KEY_SIZE, and wrongClassException().
RexxMethod2 | ( | int32_t | , |
WSEventLog_getFirst | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | |||
) |
WindowsEventLog::getFirst()
Returns the record number of the first recorded, or oldest, event. Event log messages are numbered sequentially, with the oldest record having the lowest record number.
server | The server to open the event log on. If specified this should be in UNC format. The default is the local machine. The empty string can also be used to specify the local macnine. |
source | The event log to open, the default is the Application log. The empty string can also be used to specify the local machine. |
Definition at line 2662 of file rxwinsys.cpp.
References getEventLogNumber(), and oldest_record.
RexxMethod2 | ( | int32_t | , |
WSEventLog_getLast | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | |||
) |
WindowsEventLog::getLast()
Returns the record number of the last recorded, or youngest, event. Event log messages are numbered sequentially, with the oldest record have the lowest record number.
server | The server to open the event log on. If specified this should be in UNC format. The default is the local machine. The empty string can also be used to specify the local macnine. |
source | The event log to open, the default is the Application log. The empty string can also be used to specify the local machine. |
Definition at line 2684 of file rxwinsys.cpp.
References getEventLogNumber(), and youngest_record.
RexxMethod2 | ( | int32_t | , |
WSEventLog_getNumber | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | |||
) |
WindowsEventLog::getNumber()
Returns the number of event records in the specified log.
server | The server to open the event log on. If specified this should be in UNC format. The default is the local machine. The empty string can also be used to specify the local macnine. |
source | The event log to open, the default is the Application log. The empty string can also be used to specify the local machine. |
Definition at line 2640 of file rxwinsys.cpp.
References getEventLogNumber(), and record_count.
RexxMethod2 | ( | logical_t | , |
WSEventLog_isFull | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | |||
) |
WindowsEventLog::isFull()
Queries the event log to see if it is full.
Definition at line 2696 of file rxwinsys.cpp.
References getOpenEventLog().
RexxMethod2 | ( | uint32_t | , |
WSEventLog_open | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | |||
) |
WindowsEventLog::open()
Opens a handle to the specified event log.
server | [optional] The server to open the event log on. If specified this should be in UNC format. The default is the local machine. The empty string can also be used to specify the local macnine. |
source | [optional] The event log to open, the default is the Application log. The empty string can also be used to specify the local machine. |
Definition at line 2599 of file rxwinsys.cpp.
References closeEventLog(), setCurrentHandle(), and WSEL_DEFAULT_SOURCE.
WindowsRegistry::delete() | WindowsRegistry::deleteKey()
Deletes a registry key. Maps to both the delete() and the deleteKey() methods.
delete() deletes a subkey and all its descendents (subkeys.) deleteKey() will only delete the subkey if it is empty, i.e. it contains no subkeys.
hkParent | [optional] A handle to an open registry key, or the name of one of the prefined, always open, registry keys. The key must have been opened with the DELETE access right. If this argument is omitted then the CURRENT_KEY attribute is used. |
subkeyName | The name of the subkey to be deleted. The name is case insensitive. |
Definition at line 425 of file rxwinsys.cpp.
References getParentKeyHandle().
RexxMethod3 | ( | RexxObjectPtr | , |
WSRegistry_open | , | ||
OPTIONAL_CSTRING | , | ||
hkParent | , | ||
OPTIONAL_CSTRING | , | ||
subKeyName | , | ||
OPTIONAL_CSTRING | , | ||
access | |||
) |
WindowsRegistry::open()
Opens a subkey with the specified access rights. When the open is successful, the CURRENT_KEY attribute is set to the opened key.
hkParent | [optional] A handle to an open registry key, or the name of one of the prefined, always open, registry keys. The key must have been opened with the DELETE access right. If this argument is omitted then the CURRENT_KEY attribute is used. |
subkeyName | [optional] The name of the subkey to be opened. The name is case insensitive. If this argument is omitted or the empty string, the operating system will open a new handle to the key identified by hkParent. |
access | [optional] A string of 0 or more keywords specifying the desired access rights. The default if this argument is omitted is all access. Specifying a higher level of access than the user has, will cause the open to fail. |
Definition at line 461 of file rxwinsys.cpp.
References argumentOmitted, getParentKeyHandle(), and pointer2string().
RexxMethod3 | ( | uint32_t | , |
WSEventLog_clear | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | , | ||
OPTIONAL_CSTRING | , | ||
backupFile | |||
) |
WindowsEventLog::clear()
Clears, empties, the specified event log. Optionally backs up the log before clearing it.
server | The server to open the event log on. If specified this should be in UNC format. The default is the local machine. The empty string can also be used to specify the local macnine. |
source | The event log to open, the default is the Application log. The empty string can also be used to specify the local machine. |
backupFile | If specified, the log will be backed up to this file. There is no default value. If backupFile is omitted, the log is not backed up. If a file name is supplied with no extension, the the default event log extension of ".evt" is added. |
Definition at line 2749 of file rxwinsys.cpp.
References getOpenEventLog(), and outOfMemoryException().
RexxMethod4 | ( | int | , |
WSEventLog_test | , | ||
RexxStringObject | , | ||
data | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | , | ||
ARGLIST | , | ||
args | |||
) |
Definition at line 3284 of file rxwinsys.cpp.
RexxMethod5 | ( | uint32_t | , |
WSEventLog_readRecords | , | ||
OPTIONAL_CSTRING | , | ||
direction | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | , | ||
OPTIONAL_uint32_t | , | ||
start | , | ||
OPTIONAL_uint32_t | , | ||
count | |||
) |
WindowsEventLog::readRecords()
Reads records from an event log. If no args are given then all records from the default system (the local machine) and the default source (the Application log) are read.
Each record is read from the event log, formatted into a string representation and placed in an ooRexx array object. The array object is the 'events' attribute of the WindowsEventLog. Before the read is started, the array is emptied. After each read, the array will contain the records for the previous read.
direction | FORWARDS or BACKWARDS default is forwards. The oldest record is considered record 1. |
server | The server to open the event log on. If specified this should be in UNC format. The default is the local machine. The empty string can also be used to specify the local macnine. |
source | The event log to open, the default is the Application log. The empty string can also be used to specify the local machine. |
start | First record to read. The default is all records. If a start record is specified then count is mandatory. |
count | Count of records to read. Only used if start is specified, in which case count is not optional. |
Definition at line 2987 of file rxwinsys.cpp.
References checkReadRecordsArgs(), GET_TYPE_INDEX, getEventBinaryData(), getEventDescription(), getEventUserName(), getMinimumReadBufferSize(), getOpenEventLog(), getRecordArray(), MAX_READ_BUFFER, MAX_TIME_DATE, NULLOBJECT, outOfMemoryException(), Rexx_Error_Execution_user_defined, TOO_SMALLBUFFER_MSG, and WSEL_DEFAULT_SOURCE.
RexxMethod7 | ( | uint32_t | , |
WSEventLog_write | , | ||
OPTIONAL_CSTRING | , | ||
server | , | ||
OPTIONAL_CSTRING | , | ||
source | , | ||
OPTIONAL_uint16_t | , | ||
t | , | ||
OPTIONAL_uint16_t | , | ||
category | , | ||
OPTIONAL_uint32_t | , | ||
id | , | ||
OPTIONAL_RexxStringObject | , | ||
rawData | , | ||
ARGLIST | , | ||
args | |||
) |
WindowsEventLog::write()
Write an event to an event log. In theory all args are optional, but that would not be much of an event.
server | The server to open the event log on. If specified this should be in UNC format. The default is the local machine. The empty string can also be used to specify the local macnine. |
source | The event log to open, the default is the Application log. The empty string can also be used to specify the local machine. |
type | The event type (EVENTLOG_SUCCESS EVENTLOG_AUDIT_FAILURE, etc.,) the default is 1. |
category | The event category, default is 0. |
id | The event ID, default is 0. |
data | Raw binary data, default is none. |
strings | Args 7 to any number. Any number of strings. These are the insertion strings used to contruct the event descripiton. |
Definition at line 2826 of file rxwinsys.cpp.
References argumentExists, isGoodEventType(), NULLOBJECT, type, and WSEL_DEFAULT_SOURCE.
|
inline |
Definition at line 2170 of file rxwinsys.cpp.
References HANDLE_ATTRIBUTE.
Referenced by closeEventLog(), RexxMethod0(), and RexxMethod2().
BOOL ShowPMGroup | ( | const char * | lpszGroup, |
WORD | wCmd | ||
) |
Definition at line 1281 of file rxwinsys.cpp.
References ProgmanCmd().
Referenced by WSProgManager().
BOOL string2pointer | ( | const char * | string, |
void ** | pointer | ||
) |
Definition at line 224 of file rxwinsys.cpp.
References isHex().
Referenced by getParentKeyHandle().
void systemServiceException | ( | RexxMethodContext * | context, |
char * | msg | ||
) |
Definition at line 2142 of file rxwinsys.cpp.
References Rexx_Error_System_service_user_defined.
Referenced by outOfMemoryException().
void wrongArgValueException | ( | RexxMethodContext * | c, |
int | pos, | ||
const char * | list, | ||
const char * | actual | ||
) |
Definition at line 2158 of file rxwinsys.cpp.
References wrongArgValueException().
void wrongArgValueException | ( | RexxMethodContext * | c, |
int | pos, | ||
const char * | list, | ||
RexxObjectPtr | actual | ||
) |
Definition at line 2152 of file rxwinsys.cpp.
References Rexx_Error_Incorrect_method_list.
Referenced by checkReadRecordsArgs(), and wrongArgValueException().
|
inline |
Definition at line 2163 of file rxwinsys.cpp.
References Rexx_Error_Incorrect_method_noclass.
Referenced by RexxMethod1().
size_t RexxEntry WSClipboard | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 3938 of file rxwinsys.cpp.
References CHECKARG, RETC, RETVAL, _RXSTRING::strlength, and _RXSTRING::strptr.
size_t RexxEntry WSCtrlMenu | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 3827 of file rxwinsys.cpp.
References CHECKARG, GET_HANDLE, RET_HANDLE, RETC, RETVAL, _RXSTRING::strlength, and _RXSTRING::strptr.
size_t RexxEntry WSCtrlSend | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 3645 of file rxwinsys.cpp.
References CHECKARG, dwordPtrToRexx(), GET_HANDLE, MSG_TIMEOUT_OPTS, RETC, RETVAL, _RXSTRING::strlength, and _RXSTRING::strptr.
size_t RexxEntry WSCtrlWindow | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 3291 of file rxwinsys.cpp.
References CHECKARG, GET_HANDLE, MSG_TIMEOUT, MSG_TIMEOUT_OPTS, RET_HANDLE, RETC, RETERR, RETVAL, RXAUTOBUFLEN, _RXSTRING::strlength, and _RXSTRING::strptr.
size_t RexxEntry WSProgManager | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 1689 of file rxwinsys.cpp.
References AddPMDesktopIcon(), AddPMGroup(), AddPMItem(), CHECKARG, DeletePMGroup(), DeletePMItem(), DelPMDesktopIcon(), LeavePM(), RETC, RETVAL, and ShowPMGroup().
size_t RexxEntry WSRegistryFile | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 1018 of file rxwinsys.cpp.
References CHECKARG, GET_HKEY, RET_HANDLE, RETC, RETVAL, and _CONSTRXSTRING::strptr.
size_t RexxEntry WSRegistryKey | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 500 of file rxwinsys.cpp.
References CHECKARG, GET_HANDLE, GET_HKEY, RET_HANDLE, RETC, SET_VARIABLE, _RXSTRING::strlength, and _RXSTRING::strptr.
size_t RexxEntry WSRegistryValue | ( | const char * | funcname, |
size_t | argc, | ||
CONSTRXSTRING | argv[], | ||
const char * | qname, | ||
PRXSTRING | retstr | ||
) |
Definition at line 630 of file rxwinsys.cpp.
References CHECKARG, GET_HKEY, Little2BigEndian(), pTail, RETC, RETERR, RETVAL, RexxAllocateMemory(), RexxVariablePool(), RXSHV_BADN, RXSHV_SYSET, SET_VARIABLE, _SHVBLOCK::shvcode, _SHVBLOCK::shvname, _SHVBLOCK::shvnamelen, _SHVBLOCK::shvnext, _SHVBLOCK::shvret, _SHVBLOCK::shvvalue, _SHVBLOCK::shvvaluelen, STR_BUFFER, _RXSTRING::strlength, _CONSTRXSTRING::strlength, and _RXSTRING::strptr.
RexxRoutineEntry rxwinsys_functions[] |
Definition at line 4055 of file rxwinsys.cpp.
RexxMethodEntry rxwinsys_methods[] |
Definition at line 4070 of file rxwinsys.cpp.
RexxPackageEntry rxwinsys_package_entry |
Definition at line 4101 of file rxwinsys.cpp.