NTSTATUS SmbTraceStop( IN PFILE_OBJECT FileObject OPTIONAL, IN SMBTRACE_COMPONENT Component ); Routine Description: This routine stops tracing in the server/redirector. If no FileObject is provided, the SmbTrace application is stopped. If a FileObject is provided, SmbTrace is stopped if the FileObject refers to the one who started it. Arguments: FileObject - FileObject of a process that terminated. If it's the process that requested SmbTracing, we shut down automatically. Component - Context from which we're called: server or redirector Return Value: NTSTATUS - result of operation. Possible results are: STATUS_SUCCESS - SmbTrace was stopped STATUS_UNSUCCESSFUL - SmbTrace was not stopped because the provided FileObject did not refer to the SmbTrace starter or because SmbTrace was not running.