IAPI::WriteLogFile

property WriteLogFile.

Writes a line of regular string data (without 0 character) into a log (text) file.

This text file will be created automatically if not exists, and subsequent strings are written and appended.

 

HRESULT WriteLogFile(
  BSTR LogFileName,
  BSTR Data,
  long *pVal
);

Parameters

LogFileName

[in] .   Full filename

Data

[in] .   String data which must not contain more than 1 linefeed

pVal

[out, retval] The returned value is number of bytes or 0 if failed.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI