OpenBackupEventLog
The OpenBackupEventLog
function opens a handle of a backup event log. This handle can be used with the
BackupEventLog
HANDLE OpenBackupEventLog(
LPCTSTR lpUNCServerName, |
// backup file
server name |
LPCTSTR lpFileName |
// backup filename |
); |
|
Parameters
lpUNCServerName
Points to a
null-terminated string that specifies the Universal Naming Convention (UNC)
name of the server on which this operation is to be performed. If this
parameter is NULL, the operation is performed on the local computer.
lpFileName
Points to a
null-terminated string that specifies the name of the backup file. The backup
filename may contain a server name to open a backup file on a remote server (in
this case, the lpUNCServerName parameter must be NULL).
Return Values
If the
function succeeds, the return value is a handle of the backup event log.
If the
function fails, the return value is NULL.
Remarks
If the backup
filename specifies a remote server, lpUNCServerName must be NULL. You
cannot use this function to open a file on a remote server.
See Also