summaryrefslogtreecommitdiffstats
path: root/private/net/svcdlls/browser/server/brutil.h
blob: d0aa7c85ff67ecfc34bb19122d700d8a187be476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*++

Copyright (c) 1991 Microsoft Corporation

Module Name:

    brutil.h

Abstract:

    Private header file for the NT Workstation service included by every module
    module of the Workstation service.

Author:

    Rita Wong (ritaw) 15-Feb-1991

Revision History:

--*/

#ifndef _BRUTIL_INCLUDED_
#define _BRUTIL_INCLUDED_

//
// This include file will be included by tstring.h if Unicode
// is defined.
//
#ifndef UNICODE
#include <stdlib.h>                     // Unicode string functions
#endif

#include "br.h"


//
// An invalid parameter is encountered.  Return the value to identify
// the parameter at fault.
//
#define RETURN_INVALID_PARAMETER(ErrorParameter, ParameterId) \
    if (ARGUMENT_PRESENT(ErrorParameter)) {                   \
        *ErrorParameter = ParameterId;                        \
    }                                                         \
    return ERROR_INVALID_PARAMETER;



//-------------------------------------------------------------------//
//                                                                   //
// Type definitions                                                  //
//                                                                   //
//-------------------------------------------------------------------//


//-------------------------------------------------------------------//
//                                                                   //
// Function prototypes of utility routines found in wsutil.c         //
//                                                                   //
//-------------------------------------------------------------------//

NET_API_STATUS
BrMapStatus(
    IN  NTSTATUS NtStatus
    );

ULONG
BrCurrentSystemTime(VOID);

VOID
BrLogEvent(
    IN ULONG MessageId,
    IN ULONG ErrorCode,
    IN ULONG NumberOfSubStrings,
    IN LPWSTR *SubStrings
    );

#if DBG
VOID
BrOpenTraceLogFile(
    VOID
    );

VOID
BrowserTrace(
    PCHAR FormatString,
    ...
    );
VOID
BrInitializeTraceLog(
    VOID
    );

VOID
BrUninitializeTraceLog(
    VOID
    );

NET_API_STATUS
BrTruncateLog(
    VOID
    );

#endif
#endif // ifndef _WSUTIL_INCLUDED_