ReactOS  0.4.14-dev-337-gf981a68
lmaudit.h
Go to the documentation of this file.
1 #ifndef _LMAUDIT_H
2 #define _LMAUDIT_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 #define REVISED_AUDIT_ENTRY_STRUCT
8 #define LOGFLAGS_FORWARD 0
9 #define LOGFLAGS_BACKWARD 1
10 #define LOGFLAGS_SEEK 2
11 #define ACTION_LOCKOUT 0
12 #define ACTION_ADMINUNLOCK 1
13 #define AE_GUEST 0
14 #define AE_USER 1
15 #define AE_ADMIN 2
16 #define AE_NORMAL 0
17 #define AE_USERLIMIT 0
18 #define AE_GENERAL 0
19 #define AE_ERROR 1
20 #define AE_SESSDIS 1
21 #define AE_BADPW 1
22 #define AE_AUTODIS 2
23 #define AE_UNSHARE 2
24 #define AE_ADMINPRIVREQD 2
25 #define AE_ADMINDIS 3
26 #define AE_NOACCESSPERM 3
27 #define AE_ACCRESTRICT 4
28 #define AE_NORMAL_CLOSE 0
29 #define AE_SES_CLOSE 1
30 #define AE_ADMIN_CLOSE 2
31 #define AE_LIM_UNKNOWN 0
32 #define AE_LIM_LOGONHOURS 1
33 #define AE_LIM_EXPIRED 2
34 #define AE_LIM_INVAL_WKSTA 3
35 #define AE_LIM_DISABLED 4
36 #define AE_LIM_DELETED 5
37 #define AE_MOD 0
38 #define AE_DELETE 1
39 #define AE_ADD 2
40 #define AE_UAS_USER 0
41 #define AE_UAS_GROUP 1
42 #define AE_UAS_MODALS 2
43 #define SVAUD_SERVICE 1
44 #define SVAUD_GOODSESSLOGON 6
45 #define SVAUD_BADSESSLOGON 24
46 #define SVAUD_SESSLOGON (SVAUD_GOODSESSLOGON|SVAUD_BADSESSLOGON)
47 #define SVAUD_GOODNETLOGON 96
48 #define SVAUD_BADNETLOGON 384
49 #define SVAUD_NETLOGON (SVAUD_GOODNETLOGON|SVAUD_BADNETLOGON)
50 #define SVAUD_LOGON (SVAUD_NETLOGON|SVAUD_SESSLOGON)
51 #define SVAUD_GOODUSE 0x600
52 #define SVAUD_BADUSE 0x1800
53 #define SVAUD_USE (SVAUD_GOODUSE|SVAUD_BADUSE)
54 #define SVAUD_USERLIST 8192
55 #define SVAUD_PERMISSIONS 16384
56 #define SVAUD_RESOURCE 32768
57 #define SVAUD_LOGONLIM 65536
58 #define AA_AUDIT_ALL 1
59 #define AA_A_OWNER 4
60 #define AA_CLOSE 8
61 #define AA_S_OPEN 16
62 #define AA_S_WRITE 32
63 #define AA_S_CREATE 32
64 #define AA_S_DELETE 64
65 #define AA_S_ACL 128
66 #define AA_S_ALL 253
67 #define AA_F_OPEN 256
68 #define AA_F_WRITE 512
69 #define AA_F_CREATE 512
70 #define AA_F_DELETE 1024
71 #define AA_F_ACL 2048
72 #define AA_F_ALL (AA_F_OPEN|AA_F_WRITE|AA_F_DELETE|AA_F_ACL)
73 #define AA_A_OPEN 2048
74 #define AA_A_WRITE 4096
75 #define AA_A_CREATE 8192
76 #define AA_A_DELETE 16384
77 #define AA_A_ACL 32768
78 #define AA_A_ALL (AA_F_OPEN|AA_F_WRITE|AA_F_DELETE|AA_F_ACL)
79 typedef struct _AUDIT_ENTRY {
87 typedef struct _HLOG {
92 } HLOG,*PHLOG,*LPHLOG;
93 typedef struct _AE_SRVSTATUS {
96 typedef struct _AE_SESSLOGON {
101 typedef struct _AE_SESSLOGOFF {
106 typedef struct _AE_SESSPWERR {
110 typedef struct _AE_CONNSTART {
116 typedef struct _AE_CONNSTOP {
123 typedef struct _AE_CONNREJ {
129 typedef struct _AE_RESACCESS {
138 typedef struct _AE_RESACCESSREJ {
144 typedef struct _AE_CLOSEFILE {
152 typedef struct _AE_SERVICESTAT {
161 typedef struct _AE_ACLMOD {
168 typedef struct _AE_UASMOD {
176 typedef struct _AE_NETLOGON {
182 typedef struct _AE_NETLOGOFF {
188 typedef struct _AE_ACCLIM {
194 typedef struct _AE_LOCKOUT {
200 typedef struct _AE_GENERIC {
217 
218 /* These conflict with struct typedefs, why? */
219 #define AE_SRVSTATUS 0
220 #define AE_SESSLOGON 1
221 #define AE_SESSLOGOFF 2
222 #define AE_SESSPWERR 3
223 #define AE_CONNSTART 4
224 #define AE_CONNSTOP 5
225 #define AE_CONNREJ 6
226 #define AE_RESACCESS 7
227 #define AE_RESACCESSREJ 8
228 #define AE_CLOSEFILE 9
229 #define AE_SERVICESTAT 11
230 #define AE_ACLMOD 12
231 #define AE_UASMOD 13
232 #define AE_NETLOGON 14
233 #define AE_NETLOGOFF 15
234 #define AE_NETLOGDENIED 16
235 #define AE_ACCLIMITEXCD 17
236 #define AE_RESACCESS2 18
237 #define AE_ACLMODFAIL 19
238 #define AE_LOCKOUT 20
239 #define AE_GENERIC_TYPE 21
240 #define AE_SRVSTART 0
241 #define AE_SRVPAUSED 1
242 #define AE_SRVCONT 2
243 #define AE_SRVSTOP 3
244 #ifdef __cplusplus
245 }
246 #endif
247 #endif
DWORD ae_lk_username
Definition: lmaudit.h:196
DWORD ae_cr_compname
Definition: lmaudit.h:124
struct _HLOG * PHLOG
DWORD ae_cp_username
Definition: lmaudit.h:118
DWORD ae_um_username
Definition: lmaudit.h:170
DWORD ae_cf_fileid
Definition: lmaudit.h:148
DWORD ae_ra_returncode
Definition: lmaudit.h:134
DWORD ae_um_compname
Definition: lmaudit.h:169
DWORD ae_cp_netname
Definition: lmaudit.h:119
DWORD ae_reserved
Definition: lmaudit.h:81
struct _AE_UASMOD * PAE_UASMOD
struct _AE_SESSLOGOFF * PAE_SESSLOGOFF
DWORD ae_al_username
Definition: lmaudit.h:190
#define AE_LOCKOUT
Definition: lmaudit.h:238
DWORD ae_ge_param7
Definition: lmaudit.h:210
DWORD ae_ge_param5
Definition: lmaudit.h:208
#define AE_CONNREJ
Definition: lmaudit.h:225
struct _AE_ACLMOD * LPAE_ACLMOD
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
DWORD ae_ra_fileid
Definition: lmaudit.h:136
struct _AE_SERVICESTAT * LPAE_SERVICESTAT
DWORD ae_cp_compname
Definition: lmaudit.h:117
DWORD ae_cp_connid
Definition: lmaudit.h:120
struct _HLOG * LPHLOG
DWORD ae_ge_param6
Definition: lmaudit.h:209
struct _AE_CONNREJ * PAE_CONNREJ
DWORD ae_ss_compname
Definition: lmaudit.h:153
DWORD ae_ct_connid
Definition: lmaudit.h:114
DWORD ae_cf_duration
Definition: lmaudit.h:149
DWORD ae_ra_compname
Definition: lmaudit.h:130
struct _AE_CONNSTART * LPAE_CONNSTART
struct _AE_NETLOGON * PAE_NETLOGON
struct _AE_SESSPWERR * LPAE_SESSPWERR
#define AE_ACLMOD
Definition: lmaudit.h:230
struct _AE_GENERIC * LPAE_GENERIC
struct _AE_SESSLOGON * PAE_SESSLOGON
DWORD ae_ge_param9
Definition: lmaudit.h:212
struct _AE_NETLOGON * LPAE_NETLOGON
DWORD ae_cf_username
Definition: lmaudit.h:146
struct _AE_SESSPWERR * PAE_SESSPWERR
#define AE_SRVSTATUS
Definition: lmaudit.h:219
DWORD ae_am_username
Definition: lmaudit.h:163
DWORD ae_nf_reserved1
Definition: lmaudit.h:185
DWORD ae_ra_resname
Definition: lmaudit.h:132
struct _AE_SRVSTATUS * PAE_SRVSTATUS
DWORD ae_ss_status
Definition: lmaudit.h:156
DWORD ae_no_authflags
Definition: lmaudit.h:180
DWORD ae_cr_reason
Definition: lmaudit.h:127
DWORD rec_offset
Definition: lmaudit.h:91
DWORD ae_so_username
Definition: lmaudit.h:98
DWORD ae_ct_netname
Definition: lmaudit.h:113
DWORD ae_data_size
Definition: lmaudit.h:85
DWORD ae_nf_username
Definition: lmaudit.h:184
NET_API_STATUS WINAPI NetAuditWrite(DWORD, PBYTE, DWORD, LPCWSTR, PBYTE)
struct _AE_CONNSTOP * PAE_CONNSTOP
DWORD ae_len
Definition: lmaudit.h:80
struct _AUDIT_ENTRY AUDIT_ENTRY
struct _AE_RESACCESS * PAE_RESACCESS
DWORD ae_um_rectype
Definition: lmaudit.h:172
DWORD ae_ge_param4
Definition: lmaudit.h:207
#define AE_NETLOGOFF
Definition: lmaudit.h:233
DWORD ae_al_compname
Definition: lmaudit.h:189
struct _HLOG HLOG
#define AE_CONNSTOP
Definition: lmaudit.h:224
DWORD ae_cf_reason
Definition: lmaudit.h:150
DWORD ae_so_compname
Definition: lmaudit.h:97
DWORD ae_lk_compname
Definition: lmaudit.h:195
DWORD time
Definition: lmaudit.h:88
#define AE_RESACCESS
Definition: lmaudit.h:226
DWORD ae_ss_returnval
Definition: lmaudit.h:159
DWORD ae_time
Definition: lmaudit.h:82
struct _AE_CLOSEFILE * LPAE_CLOSEFILE
DWORD ae_nf_reserved2
Definition: lmaudit.h:186
DWORD ae_no_privilege
Definition: lmaudit.h:179
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
DWORD ae_ss_text
Definition: lmaudit.h:158
DWORD ae_al_limit
Definition: lmaudit.h:192
DWORD ae_ge_param2
Definition: lmaudit.h:205
DWORD ae_ra_restype
Definition: lmaudit.h:135
DWORD ae_am_datalen
Definition: lmaudit.h:166
DWORD ae_cr_netname
Definition: lmaudit.h:126
struct _AE_CONNREJ * LPAE_CONNREJ
DWORD ae_data_offset
Definition: lmaudit.h:84
#define AE_CLOSEFILE
Definition: lmaudit.h:228
NET_API_STATUS WINAPI NetAuditRead(LPCWSTR, LPCWSTR, LPHLOG, DWORD, PDWORD, DWORD, DWORD, PBYTE *, DWORD, PDWORD, PDWORD)
DWORD ae_cf_compname
Definition: lmaudit.h:145
#define WINAPI
Definition: msvc.h:8
DWORD ae_rr_operation
Definition: lmaudit.h:142
struct _AE_SRVSTATUS * LPAE_SRVSTATUS
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD ae_type
Definition: lmaudit.h:83
DWORD ae_um_action
Definition: lmaudit.h:173
DWORD ae_am_action
Definition: lmaudit.h:165
DWORD ae_ct_compname
Definition: lmaudit.h:111
#define AE_RESACCESSREJ
Definition: lmaudit.h:227
DWORD ae_rr_username
Definition: lmaudit.h:140
#define AE_SERVICESTAT
Definition: lmaudit.h:229
DWORD ae_sv_status
Definition: lmaudit.h:94
DWORD ae_am_resname
Definition: lmaudit.h:164
struct _AE_SESSLOGOFF * LPAE_SESSLOGOFF
Definition: lmaudit.h:79
struct _AE_GENERIC AE_GENERIC
#define AE_SESSPWERR
Definition: lmaudit.h:222
DWORD ae_lk_bad_pw_count
Definition: lmaudit.h:198
struct _AE_CONNSTART * PAE_CONNSTART
DWORD ae_sp_username
Definition: lmaudit.h:108
DWORD ae_cf_resname
Definition: lmaudit.h:147
struct _AE_SERVICESTAT * PAE_SERVICESTAT
struct _AE_SESSLOGON * LPAE_SESSLOGON
DWORD ae_nf_compname
Definition: lmaudit.h:183
struct _AE_RESACCESS * LPAE_RESACCESS
DWORD ae_so_privilege
Definition: lmaudit.h:99
DWORD ae_ra_username
Definition: lmaudit.h:131
DWORD ae_ge_param3
Definition: lmaudit.h:206
struct _AE_CONNSTOP * LPAE_CONNSTOP
DWORD ae_ss_svcname
Definition: lmaudit.h:155
DWORD ae_al_resname
Definition: lmaudit.h:191
struct _AE_LOCKOUT * LPAE_LOCKOUT
DWORD ae_sf_username
Definition: lmaudit.h:103
#define AE_SESSLOGON
Definition: lmaudit.h:220
DWORD ae_am_compname
Definition: lmaudit.h:162
DWORD ae_rr_compname
Definition: lmaudit.h:139
#define AE_SESSLOGOFF
Definition: lmaudit.h:221
DWORD ae_ge_param1
Definition: lmaudit.h:204
struct _AE_LOCKOUT * PAE_LOCKOUT
DWORD ae_sf_compname
Definition: lmaudit.h:102
DWORD ae_ge_param8
Definition: lmaudit.h:211
#define AE_CONNSTART
Definition: lmaudit.h:223
DWORD ae_sp_compname
Definition: lmaudit.h:107
Definition: lmaudit.h:87
struct _AUDIT_ENTRY * LPAUDIT_ENTRY
struct _AE_RESACCESSREJ * LPAE_RESACCESSREJ
DWORD ae_ss_username
Definition: lmaudit.h:154
DWORD ae_um_datalen
Definition: lmaudit.h:174
DWORD ae_ge_params
Definition: lmaudit.h:203
NET_API_STATUS WINAPI NetAuditClear(LPCWSTR, LPCWSTR, LPCWSTR)
struct _AE_ACCLIM AE_ACCLIM
DWORD * PDWORD
Definition: pedump.c:68
struct _AE_ACLMOD * PAE_ACLMOD
struct _AE_ACCLIM * PAE_ACCLIM
DWORD ae_ge_msgfile
Definition: lmaudit.h:201
struct _AE_GENERIC * PAE_GENERIC
DWORD ae_lk_action
Definition: lmaudit.h:197
struct _AE_NETLOGOFF * LPAE_NETLOGOFF
struct _AE_NETLOGOFF * PAE_NETLOGOFF
DWORD ae_ss_code
Definition: lmaudit.h:157
DWORD ae_rr_resname
Definition: lmaudit.h:141
#define AE_NETLOGON
Definition: lmaudit.h:232
struct _AE_UASMOD * LPAE_UASMOD
DWORD ae_no_username
Definition: lmaudit.h:178
DWORD ae_ct_username
Definition: lmaudit.h:112
DWORD ae_um_resname
Definition: lmaudit.h:171
#define AE_UASMOD
Definition: lmaudit.h:231
DWORD ae_cr_username
Definition: lmaudit.h:125
DWORD ae_cp_reason
Definition: lmaudit.h:121
struct _AE_ACCLIM * LPAE_ACCLIM
DWORD ae_sf_reason
Definition: lmaudit.h:104
BYTE * PBYTE
Definition: pedump.c:66
DWORD offset
Definition: lmaudit.h:90
struct _AUDIT_ENTRY * PAUDIT_ENTRY
DWORD ae_ra_operation
Definition: lmaudit.h:133
DWORD ae_no_compname
Definition: lmaudit.h:177
struct _AE_CLOSEFILE * PAE_CLOSEFILE
DWORD last_flags
Definition: lmaudit.h:89
DWORD ae_ge_msgnum
Definition: lmaudit.h:202
struct _AE_RESACCESSREJ * PAE_RESACCESSREJ