Share via


Send method of the MSFT_EtwTraceSession class

Sends the log file of the specified ETW trace session to a remote share.

Syntax

uint32 Send(
  [in]  string  destinationFolder,
  [in]  boolean deleteFile,
  [out] string  sourceFilePath,
  [out] uint32  ErrorCode
);

Parameters

destinationFolder [in]

The name of the remote folder that receives the log file.

deleteFile [in]

True to delete the log file from the local folder after it is copied to the remote share; otherwise, False.

sourceFilePath [out]

When this method returns, this parameter contains the source path from which the log file was copied.

ErrorCode [out]

If this operation encounters an error, when this method returns, this parameter will contain the error code.

Return value

Returns 0 on success.

Success (0)

CreateNewFileFailed (1)

CopyFileFailed (2)

DeleteOldFileFailed (3)

Requirements

Minimum supported client
Windows 10 [desktop apps only]
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\EventTracingManagement
MOF
EventTracingManagement.Mof
DLL
EventTracingManagement.dll

See also

MSFT_EtwTraceSession