1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r18623: starting on eventlog IDL

This commit is contained in:
Gerald Carter 2006-09-18 19:46:11 +00:00 committed by Gerald (Jerry) Carter
parent 49d07d0cf9
commit 6cb7b6226d
11 changed files with 3801 additions and 18 deletions

View File

@ -214,7 +214,8 @@ LIBNDR_OBJ = librpc/ndr/ndr_basic.o librpc/ndr/ndr.o librpc/ndr/ndr_misc.o \
LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_unixinfo.o librpc/gen_ndr/ndr_lsa.o \
librpc/gen_ndr/ndr_dfs.o librpc/gen_ndr/ndr_echo.o \
librpc/gen_ndr/ndr_winreg.o librpc/gen_ndr/ndr_initshutdown.o
librpc/gen_ndr/ndr_winreg.o librpc/gen_ndr/ndr_initshutdown.o \
librpc/gen_ndr/ndr_eventlog.o
RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
@ -299,8 +300,9 @@ LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
rpc_client/ndr.o
LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_unixinfo.o librpc/gen_ndr/cli_lsa.o \
librpc/gen_ndr/cli_dfs.o librpc/gen_ndr/cli_echo.o \
librpc/gen_ndr/cli_dfs.o librpc/gen_ndr/cli_echo.o \
librpc/gen_ndr/cli_winreg.o librpc/gen_ndr/cli_initshutdown.o \
librpc/gen_ndr/cli_eventlog.o \
$(LIBMSRPC_GEN_OBJ1) $(LIBNDR_GEN_OBJ) $(LIBNDR_OBJ)
REGOBJS_OBJ = registry/reg_objects.o
@ -847,7 +849,8 @@ cac: SHOWFLAGS $(LIBMSRPC)
#####################################################################
## Perl IDL Compiler
IDL_FILES = unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl
IDL_FILES = unixinfo.idl lsa.idl dfs.idl echo.idl winreg.idl initshutdown.idl \
eventlog.idl
idl:
@IDL_FILES="$(IDL_FILES)" CPP="$(CPP)" PERL="$(PERL)" \

View File

@ -31,20 +31,10 @@
#define EVENTLOG_READEVENTLOG 0x0a
/* Eventlog read flags */
#define EVENTLOG_SEQUENTIAL_READ 0x0001
#define EVENTLOG_SEEK_READ 0x0002
#define EVENTLOG_FORWARDS_READ 0x0004
#define EVENTLOG_BACKWARDS_READ 0x0008
/* defined in librpc/gen_ndr/eventlog.h */
/* Event types */
#define EVENTLOG_SUCCESS 0x0000
#define EVENTLOG_ERROR_TYPE 0x0001
#define EVENTLOG_WARNING_TYPE 0x0002
#define EVENTLOG_INFORMATION_TYPE 0x0004
#define EVENTLOG_AUDIT_SUCCESS 0x0008
#define EVENTLOG_AUDIT_FAILURE 0x0010
/* defined in librpc/gen_ndr/eventlog.h */
/* Defines for TDB keys */
#define EVT_OLDEST_ENTRY "INFO/oldest_entry"

View File

@ -284,6 +284,7 @@ typedef struct dom_sid {
#include "librpc/gen_ndr/dfs.h"
#include "librpc/gen_ndr/initshutdown.h"
#include "librpc/gen_ndr/winreg.h"
#include "librpc/gen_ndr/eventlog.h"
struct lsa_dom_info {
BOOL valid;

View File

@ -0,0 +1,436 @@
/*
* Unix SMB/CIFS implementation.
* client auto-generated by pidl. DO NOT MODIFY!
*/
#include "includes.h"
#include "librpc/gen_ndr/cli_eventlog.h"
NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *unknown)
{
struct eventlog_ClearEventLogW r;
NTSTATUS status;
/* In parameters */
r.in.handle = handle;
r.in.unknown = unknown;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogW);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_BackupEventLogW r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogW);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
{
struct eventlog_CloseEventLog r;
NTSTATUS status;
/* In parameters */
r.in.handle = handle;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLOSEEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_CloseEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_CloseEventLog);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*handle = *r.out.handle;
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_DeregisterEventSource r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTEREVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterEventSource, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterEventSource);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *number)
{
struct eventlog_GetNumRecords r;
NTSTATUS status;
/* In parameters */
r.in.handle = handle;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETNUMRECORDS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetNumRecords, (ndr_push_flags_fn_t)ndr_push_eventlog_GetNumRecords);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*number = *r.out.number;
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_GetOldestRecord r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETOLDESTRECORD, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetOldestRecord, (ndr_push_flags_fn_t)ndr_push_eventlog_GetOldestRecord);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_ChangeNotify r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CHANGENOTIFY, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ChangeNotify, (ndr_push_flags_fn_t)ndr_push_eventlog_ChangeNotify);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle)
{
struct eventlog_OpenEventLogW r;
NTSTATUS status;
/* In parameters */
r.in.unknown0 = unknown0;
r.in.logname = logname;
r.in.servername = servername;
r.in.unknown2 = unknown2;
r.in.unknown3 = unknown3;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogW);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*handle = *r.out.handle;
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_RegisterEventSourceW r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceW, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceW);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_OpenBackupEventLogW r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogW);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size)
{
struct eventlog_ReadEventLogW r;
NTSTATUS status;
/* In parameters */
r.in.handle = handle;
r.in.flags = flags;
r.in.offset = offset;
r.in.number_of_bytes = number_of_bytes;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogW);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*data = *r.out.data;
*sent_size = *r.out.sent_size;
*real_size = *r.out.real_size;
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_ReportEventW r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventW);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_ClearEventLogA r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogA);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_BackupEventLogA r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogA);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_OpenEventLogA r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogA);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_RegisterEventSourceA r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceA, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceA);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_OpenBackupEventLogA r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogA);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_ReadEventLogA r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogA);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_ReportEventA r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventA);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_RegisterClusterSvc r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterClusterSvc);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_DeregisterClusterSvc r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterClusterSvc);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_WriteClusterEvents r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_WRITECLUSTEREVENTS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_WriteClusterEvents, (ndr_push_flags_fn_t)ndr_push_eventlog_WriteClusterEvents);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct eventlog_GetLogIntormation r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETLOGINTORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetLogIntormation, (ndr_push_flags_fn_t)ndr_push_eventlog_GetLogIntormation);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}
NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
{
struct eventlog_FlushEventLog r;
NTSTATUS status;
/* In parameters */
r.in.handle = handle;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_FLUSHEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_FlushEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_FlushEventLog);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return r.out.result;
}

View File

@ -0,0 +1,28 @@
#include "librpc/gen_ndr/ndr_eventlog.h"
#ifndef __CLI_EVENTLOG__
#define __CLI_EVENTLOG__
NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *unknown);
NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *number);
NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle);
NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size);
NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
#endif /* __CLI_EVENTLOG__ */

View File

@ -0,0 +1,280 @@
/* header auto-generated by pidl */
#ifndef _HEADER_eventlog
#define _HEADER_eventlog
#include "librpc/gen_ndr/lsa.h"
#include "librpc/gen_ndr/security.h"
/* bitmap eventlogReadFlags */
#define EVENTLOG_SEQUENTIAL_READ ( 0x0001 )
#define EVENTLOG_SEEK_READ ( 0x0002 )
#define EVENTLOG_FORWARDS_READ ( 0x0004 )
#define EVENTLOG_BACKWARDS_READ ( 0x0008 )
/* bitmap eventlogEventTypes */
#define EVENTLOG_SUCCESS ( 0x0000 )
#define EVENTLOG_ERROR_TYPE ( 0x0001 )
#define EVENTLOG_WARNING_TYPE ( 0x0002 )
#define EVENTLOG_INFORMATION_TYPE ( 0x0004 )
#define EVENTLOG_AUDIT_SUCCESS ( 0x0008 )
#define EVENTLOG_AUDIT_FAILURE ( 0x0010 )
struct eventlog_OpenUnknown0 {
uint16_t unknown0;/* [keepref] */
uint16_t unknown1;/* [keepref] */
};
struct eventlog_Record {
uint32_t size;/* [keepref] */
uint32_t reserved;/* [keepref] */
uint32_t record_number;/* [keepref] */
uint32_t time_generated;/* [keepref] */
uint32_t time_written;/* [keepref] */
uint32_t event_id;/* [keepref] */
uint16_t event_type;/* [keepref] */
uint16_t num_of_strings;/* [keepref] */
uint16_t event_category;/* [keepref] */
uint16_t reserved_flags;/* [keepref] */
uint32_t closing_record_number;/* [keepref] */
uint32_t stringoffset;/* [keepref] */
uint32_t sid_length;/* [keepref] */
uint32_t sid_offset;/* [keepref] */
uint32_t data_length;/* [keepref] */
uint32_t data_offset;/* [keepref] */
const char * source_name;/* [keepref,flag(LIBNDR_FLAG_STR_NULLTERM)] */
const char * computer_name;/* [keepref,flag(LIBNDR_FLAG_STR_NULLTERM)] */
const char * *strings;/* [keepref,flag(LIBNDR_FLAG_STR_NULLTERM)] */
const char * raw_data;/* [keepref,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
}/* [public] */;
struct eventlog_ClearEventLogW {
struct {
struct policy_handle *handle;/* [keepref,ref] */
struct lsa_String *unknown;/* [unique,keepref] */
} in;
struct {
NTSTATUS result;
} out;
};
struct eventlog_BackupEventLogW {
struct {
NTSTATUS result;
} out;
};
struct eventlog_CloseEventLog {
struct {
struct policy_handle *handle;/* [keepref,ref] */
} in;
struct {
struct policy_handle *handle;/* [keepref,ref] */
NTSTATUS result;
} out;
};
struct eventlog_DeregisterEventSource {
struct {
NTSTATUS result;
} out;
};
struct eventlog_GetNumRecords {
struct {
struct policy_handle *handle;/* [keepref,ref] */
} in;
struct {
uint32_t *number;/* [keepref,ref] */
NTSTATUS result;
} out;
};
struct eventlog_GetOldestRecord {
struct {
NTSTATUS result;
} out;
};
struct eventlog_ChangeNotify {
struct {
NTSTATUS result;
} out;
};
struct eventlog_OpenEventLogW {
struct {
struct eventlog_OpenUnknown0 *unknown0;/* [unique,keepref] */
struct lsa_String logname;/* [keepref] */
struct lsa_String servername;/* [keepref] */
uint32_t unknown2;/* [keepref] */
uint32_t unknown3;/* [keepref] */
} in;
struct {
struct policy_handle *handle;/* [keepref,ref] */
NTSTATUS result;
} out;
};
struct eventlog_RegisterEventSourceW {
struct {
NTSTATUS result;
} out;
};
struct eventlog_OpenBackupEventLogW {
struct {
NTSTATUS result;
} out;
};
struct eventlog_ReadEventLogW {
struct {
struct policy_handle *handle;/* [keepref,ref] */
uint32_t flags;/* [keepref] */
uint32_t offset;/* [keepref] */
uint32_t number_of_bytes;/* [keepref] */
} in;
struct {
uint8_t *data;/* [keepref,ref,size_is(number_of_bytes)] */
uint32_t *sent_size;/* [keepref,ref] */
uint32_t *real_size;/* [keepref,ref] */
NTSTATUS result;
} out;
};
struct eventlog_ReportEventW {
struct {
NTSTATUS result;
} out;
};
struct eventlog_ClearEventLogA {
struct {
NTSTATUS result;
} out;
};
struct eventlog_BackupEventLogA {
struct {
NTSTATUS result;
} out;
};
struct eventlog_OpenEventLogA {
struct {
NTSTATUS result;
} out;
};
struct eventlog_RegisterEventSourceA {
struct {
NTSTATUS result;
} out;
};
struct eventlog_OpenBackupEventLogA {
struct {
NTSTATUS result;
} out;
};
struct eventlog_ReadEventLogA {
struct {
NTSTATUS result;
} out;
};
struct eventlog_ReportEventA {
struct {
NTSTATUS result;
} out;
};
struct eventlog_RegisterClusterSvc {
struct {
NTSTATUS result;
} out;
};
struct eventlog_DeregisterClusterSvc {
struct {
NTSTATUS result;
} out;
};
struct eventlog_WriteClusterEvents {
struct {
NTSTATUS result;
} out;
};
struct eventlog_GetLogIntormation {
struct {
NTSTATUS result;
} out;
};
struct eventlog_FlushEventLog {
struct {
struct policy_handle *handle;/* [keepref,ref] */
} in;
struct {
NTSTATUS result;
} out;
};
#endif /* _HEADER_eventlog */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,92 @@
/* header auto-generated by pidl */
#include "librpc/gen_ndr/eventlog.h"
#ifndef _HEADER_NDR_eventlog
#define _HEADER_NDR_eventlog
#include "librpc/ndr/libndr.h"
#define DCERPC_EVENTLOG_UUID "82273fdc-e32a-18c3-3f78-827929dc23ea"
#define DCERPC_EVENTLOG_VERSION 0.0
#define DCERPC_EVENTLOG_NAME "eventlog"
#define DCERPC_EVENTLOG_HELPSTRING "Event Logger"
extern const struct dcerpc_interface_table dcerpc_table_eventlog;
NTSTATUS dcerpc_server_eventlog_init(void);
#define DCERPC_EVENTLOG_CLEAREVENTLOGW (0x00)
#define DCERPC_EVENTLOG_BACKUPEVENTLOGW (0x01)
#define DCERPC_EVENTLOG_CLOSEEVENTLOG (0x02)
#define DCERPC_EVENTLOG_DEREGISTEREVENTSOURCE (0x03)
#define DCERPC_EVENTLOG_GETNUMRECORDS (0x04)
#define DCERPC_EVENTLOG_GETOLDESTRECORD (0x05)
#define DCERPC_EVENTLOG_CHANGENOTIFY (0x06)
#define DCERPC_EVENTLOG_OPENEVENTLOGW (0x07)
#define DCERPC_EVENTLOG_REGISTEREVENTSOURCEW (0x08)
#define DCERPC_EVENTLOG_OPENBACKUPEVENTLOGW (0x09)
#define DCERPC_EVENTLOG_READEVENTLOGW (0x0a)
#define DCERPC_EVENTLOG_REPORTEVENTW (0x0b)
#define DCERPC_EVENTLOG_CLEAREVENTLOGA (0x0c)
#define DCERPC_EVENTLOG_BACKUPEVENTLOGA (0x0d)
#define DCERPC_EVENTLOG_OPENEVENTLOGA (0x0e)
#define DCERPC_EVENTLOG_REGISTEREVENTSOURCEA (0x0f)
#define DCERPC_EVENTLOG_OPENBACKUPEVENTLOGA (0x10)
#define DCERPC_EVENTLOG_READEVENTLOGA (0x11)
#define DCERPC_EVENTLOG_REPORTEVENTA (0x12)
#define DCERPC_EVENTLOG_REGISTERCLUSTERSVC (0x13)
#define DCERPC_EVENTLOG_DEREGISTERCLUSTERSVC (0x14)
#define DCERPC_EVENTLOG_WRITECLUSTEREVENTS (0x15)
#define DCERPC_EVENTLOG_GETLOGINTORMATION (0x16)
#define DCERPC_EVENTLOG_FLUSHEVENTLOG (0x17)
#define DCERPC_EVENTLOG_CALL_COUNT (24)
void ndr_print_eventlog_OpenUnknown0(struct ndr_print *ndr, const char *name, const struct eventlog_OpenUnknown0 *r);
NTSTATUS ndr_push_eventlog_Record(struct ndr_push *ndr, int ndr_flags, const struct eventlog_Record *r);
NTSTATUS ndr_pull_eventlog_Record(struct ndr_pull *ndr, int ndr_flags, struct eventlog_Record *r);
void ndr_print_eventlog_Record(struct ndr_print *ndr, const char *name, const struct eventlog_Record *r);
void ndr_print_eventlog_ClearEventLogW(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_ClearEventLogW *r);
void ndr_print_eventlog_BackupEventLogW(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_BackupEventLogW *r);
void ndr_print_eventlog_CloseEventLog(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_CloseEventLog *r);
void ndr_print_eventlog_DeregisterEventSource(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_DeregisterEventSource *r);
void ndr_print_eventlog_GetNumRecords(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_GetNumRecords *r);
void ndr_print_eventlog_GetOldestRecord(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_GetOldestRecord *r);
void ndr_print_eventlog_ChangeNotify(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_ChangeNotify *r);
void ndr_print_eventlog_OpenEventLogW(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_OpenEventLogW *r);
void ndr_print_eventlog_RegisterEventSourceW(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_RegisterEventSourceW *r);
void ndr_print_eventlog_OpenBackupEventLogW(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_OpenBackupEventLogW *r);
void ndr_print_eventlog_ReadEventLogW(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_ReadEventLogW *r);
void ndr_print_eventlog_ReportEventW(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_ReportEventW *r);
void ndr_print_eventlog_ClearEventLogA(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_ClearEventLogA *r);
void ndr_print_eventlog_BackupEventLogA(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_BackupEventLogA *r);
void ndr_print_eventlog_OpenEventLogA(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_OpenEventLogA *r);
void ndr_print_eventlog_RegisterEventSourceA(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_RegisterEventSourceA *r);
void ndr_print_eventlog_OpenBackupEventLogA(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_OpenBackupEventLogA *r);
void ndr_print_eventlog_ReadEventLogA(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_ReadEventLogA *r);
void ndr_print_eventlog_ReportEventA(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_ReportEventA *r);
void ndr_print_eventlog_RegisterClusterSvc(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_RegisterClusterSvc *r);
void ndr_print_eventlog_DeregisterClusterSvc(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_DeregisterClusterSvc *r);
void ndr_print_eventlog_WriteClusterEvents(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_WriteClusterEvents *r);
void ndr_print_eventlog_GetLogIntormation(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_GetLogIntormation *r);
void ndr_print_eventlog_FlushEventLog(struct ndr_print *ndr, const char *name, int flags, const struct eventlog_FlushEventLog *r);
#endif /* _HEADER_NDR_eventlog */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,30 @@
#include "librpc/gen_ndr/ndr_eventlog.h"
#ifndef __SRV_EVENTLOG__
#define __SRV_EVENTLOG__
NTSTATUS _eventlog_ClearEventLogW(pipes_struct *p, struct policy_handle *handle, struct lsa_String *unknown);
NTSTATUS _eventlog_BackupEventLogW(pipes_struct *p);
NTSTATUS _eventlog_CloseEventLog(pipes_struct *p, struct policy_handle *handle);
NTSTATUS _eventlog_DeregisterEventSource(pipes_struct *p);
NTSTATUS _eventlog_GetNumRecords(pipes_struct *p, struct policy_handle *handle, uint32_t *number);
NTSTATUS _eventlog_GetOldestRecord(pipes_struct *p);
NTSTATUS _eventlog_ChangeNotify(pipes_struct *p);
NTSTATUS _eventlog_OpenEventLogW(pipes_struct *p, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle);
NTSTATUS _eventlog_RegisterEventSourceW(pipes_struct *p);
NTSTATUS _eventlog_OpenBackupEventLogW(pipes_struct *p);
NTSTATUS _eventlog_ReadEventLogW(pipes_struct *p, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size);
NTSTATUS _eventlog_ReportEventW(pipes_struct *p);
NTSTATUS _eventlog_ClearEventLogA(pipes_struct *p);
NTSTATUS _eventlog_BackupEventLogA(pipes_struct *p);
NTSTATUS _eventlog_OpenEventLogA(pipes_struct *p);
NTSTATUS _eventlog_RegisterEventSourceA(pipes_struct *p);
NTSTATUS _eventlog_OpenBackupEventLogA(pipes_struct *p);
NTSTATUS _eventlog_ReadEventLogA(pipes_struct *p);
NTSTATUS _eventlog_ReportEventA(pipes_struct *p);
NTSTATUS _eventlog_RegisterClusterSvc(pipes_struct *p);
NTSTATUS _eventlog_DeregisterClusterSvc(pipes_struct *p);
NTSTATUS _eventlog_WriteClusterEvents(pipes_struct *p);
NTSTATUS _eventlog_GetLogIntormation(pipes_struct *p);
NTSTATUS _eventlog_FlushEventLog(pipes_struct *p, struct policy_handle *handle);
void eventlog_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_eventlog_init(void);
#endif /* __SRV_EVENTLOG__ */

View File

@ -80,7 +80,7 @@
/* Function: 0x04 */
NTSTATUS eventlog_GetNumRecords(
[in] policy_handle *handle,
[out] uint32 number
[out,ref] uint32 *number
);
/******************/
@ -118,8 +118,8 @@
[in] uint32 offset,
[in] uint32 number_of_bytes,
[out,size_is(number_of_bytes)] uint8 *data,
[out] uint32 sent_size,
[out] uint32 real_size
[out,ref] uint32 *sent_size,
[out,ref] uint32 *real_size
);
/*****************/