IFileBasedLogInit::InitNew method

Create a new log instance on the specified file. If a file with that name already exists, it is overwritten.

Syntax


HRESULT InitNew(
  [in] LPCWSTR filename,
  [in] ULONG   cbCapacityHint
);

Parameters

filename [in]

The absolute path of the file to be created.

cbCapacityHint [in]

A hint to the implementation about the total capacity that will be needed.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Txlogpub.h

IDL

Txlogpub.idl

IID

IID_IFileBasedLogInit is defined as 00951E8C-1294-11d1-97E4-00C04FB9618A

See also

IFileBasedLogInit

 

 

Show: