/* * Please do not edit this file. * It was generated using ndrgen. */ #include #include #include extern struct ndr_typeinfo ndt__char; extern struct ndr_typeinfo ndt_s_char; extern struct ndr_typeinfo ndt__uchar; extern struct ndr_typeinfo ndt_s_uchar; extern struct ndr_typeinfo ndt__wchar; extern struct ndr_typeinfo ndt_s_wchar; extern struct ndr_typeinfo ndt__short; extern struct ndr_typeinfo ndt_s_short; extern struct ndr_typeinfo ndt__ushort; extern struct ndr_typeinfo ndt_s_ushort; extern struct ndr_typeinfo ndt__long; extern struct ndr_typeinfo ndt_s_long; extern struct ndr_typeinfo ndt__ulong; extern struct ndr_typeinfo ndt_s_ulong; int ndr__logr_handle (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_handle = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__logr_handle, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__logr_handle (struct ndr_reference *encl_ref) { struct logr_handle *val = (struct logr_handle *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, data1, 0UL); NDR_MEMBER (_ulong, data2, 4UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_ushort, data3, 8UL, 2); NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 12UL, 8); /* do members with pointers in order */ return 1; } int ndr__logr_string (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_string = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__logr_string, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__logr_string (struct ndr_reference *encl_ref) { struct logr_string *val = (struct logr_string *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, length, 0UL); NDR_MEMBER (_ushort, allosize, 2UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, str, 4UL); return 1; } int ndr__logr_record (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_record = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__logr_record, /* ndr_func */ 860, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 860, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__logr_record (struct ndr_reference *encl_ref) { struct logr_record *val = (struct logr_record *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, Length1, 0UL); NDR_MEMBER (_ulong, Reserved, 4UL); NDR_MEMBER (_ulong, RecordNumber, 8UL); NDR_MEMBER (_ulong, TimeGenerated, 12UL); NDR_MEMBER (_ulong, TimeWritten, 16UL); NDR_MEMBER (_ulong, EventID, 20UL); NDR_MEMBER (_ushort, EventType, 24UL); NDR_MEMBER (_ushort, NumStrings, 26UL); NDR_MEMBER (_ushort, EventCategory, 28UL); NDR_MEMBER (_ushort, ReservedFlags, 30UL); NDR_MEMBER (_ulong, ClosingRecordNumber, 32UL); NDR_MEMBER (_ulong, StringOffset, 36UL); NDR_MEMBER (_ulong, UserSidLength, 40UL); NDR_MEMBER (_ulong, UserSidOffset, 44UL); NDR_MEMBER (_ulong, DataLength, 48UL); NDR_MEMBER (_ulong, DataOffset, 52UL); NDR_MEMBER (_ulong, Length2, 856UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, info, 56UL, 800); /* do members with pointers in order */ return 1; } int ndr__logr_EventLogClose (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_EventLogClose = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__logr_EventLogClose, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(2)] */ int ndr__logr_EventLogClose (struct ndr_reference *encl_ref) { struct logr_EventLogClose *val = (struct logr_EventLogClose *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_logr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_logr_handle, result_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__logr_EventLogQueryCount (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_EventLogQueryCount = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__logr_EventLogQueryCount, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(4)] */ int ndr__logr_EventLogQueryCount (struct ndr_reference *encl_ref) { struct logr_EventLogQueryCount *val = (struct logr_EventLogQueryCount *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_logr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, rec_num); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__logr_EventLogGetOldestRec (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_EventLogGetOldestRec = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__logr_EventLogGetOldestRec, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(5)] */ int ndr__logr_EventLogGetOldestRec (struct ndr_reference *encl_ref) { struct logr_EventLogGetOldestRec *val = (struct logr_EventLogGetOldestRec *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_logr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, oldest_rec); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__logr_EventLogOpen (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_EventLogOpen = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__logr_EventLogOpen, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(7)] */ int ndr__logr_EventLogOpen (struct ndr_reference *encl_ref) { struct logr_EventLogOpen *val = (struct logr_EventLogOpen *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_ulong, server_name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_logr_string, log_name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, reg_module_name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, major_version); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, minor_version); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_logr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__logr_EventLogRead (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_EventLogRead = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__logr_EventLogRead, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(10)] */ int ndr__logr_EventLogRead (struct ndr_reference *encl_ref) { struct logr_EventLogRead *val = (struct logr_EventLogRead *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_logr_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, read_flags); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, rec_offset); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, nbytes_to_read); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF_WITH_SIZE_IS (_uchar, buf, val->nbytes_to_read); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, sent_size); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, min_bytes_needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__logr_interface (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__logr_interface = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__logr_interface, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__logr_interface (struct ndr_reference *encl_ref) { union logr_interface *val = (union logr_interface *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; switch (encl_ref->switch_is) { case 2: NDR_PARAMS_MEMBER (_logr_EventLogClose, EventLogClose); break; case 4: NDR_PARAMS_MEMBER (_logr_EventLogQueryCount, EventLogQueryCount); break; case 5: NDR_PARAMS_MEMBER (_logr_EventLogGetOldestRec, EventLogGetOldestRec); break; case 7: NDR_PARAMS_MEMBER (_logr_EventLogOpen, EventLogOpen); break; case 10: NDR_PARAMS_MEMBER (_logr_EventLogRead, EventLogRead); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }