LogOpenFile - Syntax

LogOpenFile opens a log file so that it can be read using LogReadEntry. LogOpenFile returns a log_file_ID number that is used to refer to the file.

For Error Logging:

Specify either a log_file_ID number or a path name. If the log_file_ID number is specified and the log_file_ID is valid the path name is returned. If a path name is specified, the Logging Service will return the log_file_ID that corresponds to the file. (The file will be opened if it is not already open.)

#define INCL_LOGGING
#include <os2.h>
#include <lfdef.h>

ULONG     service;
PVOID     pOpenFile;
APIRET    rc;

rc = LogOpenFile(service, pOpenFile);


[Back: LogOpenFile]
[Next: LogOpenFile Parameter - service]