ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

lmaudit.h
Go to the documentation of this file.
00001 #ifndef _LMAUDIT_H
00002 #define _LMAUDIT_H
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 #define REVISED_AUDIT_ENTRY_STRUCT
00008 #define LOGFLAGS_FORWARD 0
00009 #define LOGFLAGS_BACKWARD 1
00010 #define LOGFLAGS_SEEK 2
00011 #define ACTION_LOCKOUT 0
00012 #define ACTION_ADMINUNLOCK 1
00013 #define AE_GUEST 0
00014 #define AE_USER 1
00015 #define AE_ADMIN 2
00016 #define AE_NORMAL 0
00017 #define AE_USERLIMIT 0
00018 #define AE_GENERAL 0
00019 #define AE_ERROR 1
00020 #define AE_SESSDIS 1
00021 #define AE_BADPW 1
00022 #define AE_AUTODIS 2
00023 #define AE_UNSHARE 2
00024 #define AE_ADMINPRIVREQD 2
00025 #define AE_ADMINDIS 3
00026 #define AE_NOACCESSPERM 3
00027 #define AE_ACCRESTRICT 4
00028 #define AE_NORMAL_CLOSE 0
00029 #define AE_SES_CLOSE 1
00030 #define AE_ADMIN_CLOSE 2
00031 #define AE_LIM_UNKNOWN 0
00032 #define AE_LIM_LOGONHOURS 1
00033 #define AE_LIM_EXPIRED 2
00034 #define AE_LIM_INVAL_WKSTA 3
00035 #define AE_LIM_DISABLED 4
00036 #define AE_LIM_DELETED 5
00037 #define AE_MOD 0
00038 #define AE_DELETE 1
00039 #define AE_ADD 2
00040 #define AE_UAS_USER 0
00041 #define AE_UAS_GROUP 1
00042 #define AE_UAS_MODALS 2
00043 #define SVAUD_SERVICE  1
00044 #define SVAUD_GOODSESSLOGON 6
00045 #define SVAUD_BADSESSLOGON 24
00046 #define SVAUD_SESSLOGON (SVAUD_GOODSESSLOGON|SVAUD_BADSESSLOGON)
00047 #define SVAUD_GOODNETLOGON 96
00048 #define SVAUD_BADNETLOGON 384
00049 #define SVAUD_NETLOGON (SVAUD_GOODNETLOGON|SVAUD_BADNETLOGON)
00050 #define SVAUD_LOGON (SVAUD_NETLOGON|SVAUD_SESSLOGON)
00051 #define SVAUD_GOODUSE 0x600
00052 #define SVAUD_BADUSE 0x1800
00053 #define SVAUD_USE (SVAUD_GOODUSE|SVAUD_BADUSE)
00054 #define SVAUD_USERLIST 8192
00055 #define SVAUD_PERMISSIONS 16384
00056 #define SVAUD_RESOURCE 32768
00057 #define SVAUD_LOGONLIM 65536
00058 #define AA_AUDIT_ALL 1
00059 #define AA_A_OWNER 4
00060 #define AA_CLOSE 8
00061 #define AA_S_OPEN 16
00062 #define AA_S_WRITE 32
00063 #define AA_S_CREATE 32
00064 #define AA_S_DELETE 64
00065 #define AA_S_ACL 128
00066 #define AA_S_ALL 253
00067 #define AA_F_OPEN 256
00068 #define AA_F_WRITE 512
00069 #define AA_F_CREATE 512
00070 #define AA_F_DELETE 1024
00071 #define AA_F_ACL 2048
00072 #define AA_F_ALL (AA_F_OPEN|AA_F_WRITE|AA_F_DELETE|AA_F_ACL)
00073 #define AA_A_OPEN 2048
00074 #define AA_A_WRITE 4096
00075 #define AA_A_CREATE 8192
00076 #define AA_A_DELETE 16384
00077 #define AA_A_ACL 32768
00078 #define AA_A_ALL (AA_F_OPEN|AA_F_WRITE|AA_F_DELETE|AA_F_ACL)
00079 typedef struct _AUDIT_ENTRY {
00080     DWORD ae_len;
00081     DWORD ae_reserved;
00082     DWORD ae_time;
00083     DWORD ae_type;
00084     DWORD ae_data_offset;
00085     DWORD ae_data_size;
00086 } AUDIT_ENTRY,*PAUDIT_ENTRY,*LPAUDIT_ENTRY;
00087 typedef struct _HLOG {
00088     DWORD time;
00089     DWORD last_flags;
00090     DWORD offset;
00091     DWORD rec_offset;
00092 } HLOG,*PHLOG,*LPHLOG;
00093 typedef struct _AE_SRVSTATUS {
00094     DWORD ae_sv_status;
00095 } AE_SRVSTATUS,*PAE_SRVSTATUS,*LPAE_SRVSTATUS;
00096 typedef struct _AE_SESSLOGON {
00097     DWORD ae_so_compname;
00098     DWORD ae_so_username;
00099     DWORD ae_so_privilege;
00100 } AE_SESSLOGON,*PAE_SESSLOGON,*LPAE_SESSLOGON;
00101 typedef struct _AE_SESSLOGOFF {
00102     DWORD ae_sf_compname;
00103     DWORD ae_sf_username;
00104     DWORD ae_sf_reason;
00105 } AE_SESSLOGOFF,*PAE_SESSLOGOFF,*LPAE_SESSLOGOFF;
00106 typedef struct _AE_SESSPWERR {
00107     DWORD ae_sp_compname;
00108     DWORD ae_sp_username;
00109 } AE_SESSPWERR,*PAE_SESSPWERR,*LPAE_SESSPWERR;
00110 typedef struct _AE_CONNSTART {
00111     DWORD ae_ct_compname;
00112     DWORD ae_ct_username;
00113     DWORD ae_ct_netname;
00114     DWORD ae_ct_connid;
00115 } AE_CONNSTART,*PAE_CONNSTART,*LPAE_CONNSTART;
00116 typedef struct _AE_CONNSTOP {
00117     DWORD ae_cp_compname;
00118     DWORD ae_cp_username;
00119     DWORD ae_cp_netname;
00120     DWORD ae_cp_connid;
00121     DWORD ae_cp_reason;
00122 } AE_CONNSTOP,*PAE_CONNSTOP,*LPAE_CONNSTOP;
00123 typedef struct _AE_CONNREJ {
00124     DWORD ae_cr_compname;
00125     DWORD ae_cr_username;
00126     DWORD ae_cr_netname;
00127     DWORD ae_cr_reason;
00128 } AE_CONNREJ,*PAE_CONNREJ,*LPAE_CONNREJ;
00129 typedef struct _AE_RESACCESS {
00130     DWORD ae_ra_compname;
00131     DWORD ae_ra_username;
00132     DWORD ae_ra_resname;
00133     DWORD ae_ra_operation;
00134     DWORD ae_ra_returncode;
00135     DWORD ae_ra_restype;
00136     DWORD ae_ra_fileid;
00137 } AE_RESACCESS,*PAE_RESACCESS,*LPAE_RESACCESS;
00138 typedef struct _AE_RESACCESSREJ {
00139     DWORD ae_rr_compname;
00140     DWORD ae_rr_username;
00141     DWORD ae_rr_resname;
00142     DWORD ae_rr_operation;
00143 } AE_RESACCESSREJ,*PAE_RESACCESSREJ,*LPAE_RESACCESSREJ;
00144 typedef struct _AE_CLOSEFILE {
00145     DWORD ae_cf_compname;
00146     DWORD ae_cf_username;
00147     DWORD ae_cf_resname;
00148     DWORD ae_cf_fileid;
00149     DWORD ae_cf_duration;
00150     DWORD ae_cf_reason;
00151 } AE_CLOSEFILE,*PAE_CLOSEFILE,*LPAE_CLOSEFILE;
00152 typedef struct _AE_SERVICESTAT {
00153     DWORD ae_ss_compname;
00154     DWORD ae_ss_username;
00155     DWORD ae_ss_svcname;
00156     DWORD ae_ss_status;
00157     DWORD ae_ss_code;
00158     DWORD ae_ss_text;
00159     DWORD ae_ss_returnval;
00160 } AE_SERVICESTAT,*PAE_SERVICESTAT,*LPAE_SERVICESTAT;
00161 typedef struct _AE_ACLMOD {
00162     DWORD ae_am_compname;
00163     DWORD ae_am_username;
00164     DWORD ae_am_resname;
00165     DWORD ae_am_action;
00166     DWORD ae_am_datalen;
00167 } AE_ACLMOD,*PAE_ACLMOD,*LPAE_ACLMOD;
00168 typedef struct _AE_UASMOD {
00169     DWORD ae_um_compname;
00170     DWORD ae_um_username;
00171     DWORD ae_um_resname;
00172     DWORD ae_um_rectype;
00173     DWORD ae_um_action;
00174     DWORD ae_um_datalen;
00175 } AE_UASMOD,*PAE_UASMOD,*LPAE_UASMOD;
00176 typedef struct _AE_NETLOGON {
00177     DWORD ae_no_compname;
00178     DWORD ae_no_username;
00179     DWORD ae_no_privilege;
00180     DWORD ae_no_authflags;
00181 } AE_NETLOGON,*PAE_NETLOGON,*LPAE_NETLOGON;
00182 typedef struct _AE_NETLOGOFF {
00183     DWORD ae_nf_compname;
00184     DWORD ae_nf_username;
00185     DWORD ae_nf_reserved1;
00186     DWORD ae_nf_reserved2;
00187 } AE_NETLOGOFF,*PAE_NETLOGOFF,*LPAE_NETLOGOFF;
00188 typedef struct _AE_ACCLIM {
00189     DWORD ae_al_compname;
00190     DWORD ae_al_username;
00191     DWORD ae_al_resname;
00192     DWORD ae_al_limit;
00193 } AE_ACCLIM,*PAE_ACCLIM,*LPAE_ACCLIM;
00194 typedef struct _AE_LOCKOUT {
00195     DWORD ae_lk_compname;
00196     DWORD ae_lk_username;
00197     DWORD ae_lk_action;
00198     DWORD ae_lk_bad_pw_count;
00199 } AE_LOCKOUT,*PAE_LOCKOUT,*LPAE_LOCKOUT;
00200 typedef struct _AE_GENERIC {
00201     DWORD ae_ge_msgfile;
00202     DWORD ae_ge_msgnum;
00203     DWORD ae_ge_params;
00204     DWORD ae_ge_param1;
00205     DWORD ae_ge_param2;
00206     DWORD ae_ge_param3;
00207     DWORD ae_ge_param4;
00208     DWORD ae_ge_param5;
00209     DWORD ae_ge_param6;
00210     DWORD ae_ge_param7;
00211     DWORD ae_ge_param8;
00212     DWORD ae_ge_param9;
00213 } AE_GENERIC,*PAE_GENERIC,*LPAE_GENERIC;
00214 NET_API_STATUS WINAPI NetAuditClear(LPCWSTR,LPCWSTR,LPCWSTR);
00215 NET_API_STATUS WINAPI NetAuditRead(LPTSTR,LPTSTR,LPHLOG,DWORD,PDWORD,DWORD,DWORD,PBYTE*,DWORD,PDWORD,PDWORD);
00216 NET_API_STATUS WINAPI NetAuditWrite(DWORD,PBYTE,DWORD,LPTSTR,PBYTE);
00217 
00218 /* These conflict with struct typedefs, why? */
00219 #define AE_SRVSTATUS 0
00220 #define AE_SESSLOGON 1
00221 #define AE_SESSLOGOFF 2
00222 #define AE_SESSPWERR 3
00223 #define AE_CONNSTART 4
00224 #define AE_CONNSTOP 5
00225 #define AE_CONNREJ 6
00226 #define AE_RESACCESS 7
00227 #define AE_RESACCESSREJ 8
00228 #define AE_CLOSEFILE 9
00229 #define AE_SERVICESTAT 11
00230 #define AE_ACLMOD 12
00231 #define AE_UASMOD 13
00232 #define AE_NETLOGON 14
00233 #define AE_NETLOGOFF 15
00234 #define AE_NETLOGDENIED 16
00235 #define AE_ACCLIMITEXCD 17
00236 #define AE_RESACCESS2 18
00237 #define AE_ACLMODFAIL 19
00238 #define AE_LOCKOUT 20
00239 #define AE_GENERIC_TYPE 21
00240 #define AE_SRVSTART 0
00241 #define AE_SRVPAUSED 1
00242 #define AE_SRVCONT 2
00243 #define AE_SRVSTOP 3
00244 #ifdef __cplusplus
00245 }
00246 #endif
00247 #endif

Generated on Sun May 27 2012 04:31:35 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.