/* * 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__GUID (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__GUID = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__GUID, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__GUID (struct ndr_reference *encl_ref) { struct GUID *val = (struct GUID *) 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, time_low, 0UL); NDR_MEMBER (_ushort, time_mid, 4UL); NDR_MEMBER (_ushort, time_hi_and_version, 6UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, clock_seq, 8UL, 2); NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, node, 10UL, 6); /* do members with pointers in order */ return 1; } int ndr__dom_sid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__dom_sid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__dom_sid, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__dom_sid (struct ndr_reference *encl_ref) { struct dom_sid *val = (struct dom_sid *) 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 (_uchar, sid_rev_num, 0UL); NDR_MEMBER (_uchar, num_auths, 1UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, id_auth, 2UL, 6); /* do members with pointers in order */ NDR_MEMBER_PTR (_ulong, sub_auths, 8UL); return 1; } int ndr__security_ace_object_type (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_ace_object_type = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__security_ace_object_type, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_ace_object_type (struct ndr_reference *encl_ref) { union security_ace_object_type *val = (union security_ace_object_type *) 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 0: NDR_MEMBER (_GUID, type, 0UL); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; } int ndr__security_ace_object_inherited_type (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_ace_object_inherited_type = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__security_ace_object_inherited_type, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_ace_object_inherited_type (struct ndr_reference *encl_ref) { union security_ace_object_inherited_type *val = (union security_ace_object_inherited_type *) 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 0: NDR_MEMBER (_GUID, inherited_type, 0UL); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; } int ndr__security_ace_object (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_ace_object = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__security_ace_object, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_ace_object (struct ndr_reference *encl_ref) { struct security_ace_object *val = (struct security_ace_object *) 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, flags, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__security_ace_object_ctr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_ace_object_ctr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__security_ace_object_ctr, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_ace_object_ctr (struct ndr_reference *encl_ref) { union security_ace_object_ctr *val = (union security_ace_object_ctr *) 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 0: NDR_MEMBER (_security_ace_object, object, 0UL); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; } int ndr__security_ace (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_ace = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__security_ace, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_ace (struct ndr_reference *encl_ref) { struct security_ace *val = (struct security_ace *) 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, security_ace_type, 0UL); NDR_MEMBER (_uchar, flags, 4UL); NDR_MEMBER (_ushort, size, 6UL); NDR_MEMBER (_ulong, access_mask, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_dom_sid, trustee, 12UL); return 1; } int ndr__security_acl (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_acl = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__security_acl, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_acl (struct ndr_reference *encl_ref) { struct security_acl *val = (struct security_acl *) 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, security_acl_revision, 0UL); NDR_MEMBER (_ushort, size, 4UL); NDR_MEMBER (_ulong, num_aces, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_security_ace, aces, 12UL); return 1; } int ndr__security_descriptor (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_descriptor = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__security_descriptor, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_descriptor (struct ndr_reference *encl_ref) { struct security_descriptor *val = (struct security_descriptor *) 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, revision, 0UL); NDR_MEMBER (_ushort, type, 2UL); NDR_MEMBER (_ulong, ownersid, 4UL); NDR_MEMBER (_ulong, groupsid, 8UL); NDR_MEMBER (_ulong, sacl, 12UL); NDR_MEMBER (_ulong, dacl, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__sec_desc_buf (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__sec_desc_buf = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__sec_desc_buf, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__sec_desc_buf (struct ndr_reference *encl_ref) { struct sec_desc_buf *val = (struct sec_desc_buf *) 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, sd_size, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_security_descriptor, sd, 4UL); return 1; } int ndr__security_token (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__security_token = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__security_token, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__security_token (struct ndr_reference *encl_ref) { struct security_token *val = (struct security_token *) 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, num_sids, 8UL); NDR_MEMBER (_ulong, privilege_mask1, 12UL); NDR_MEMBER (_ulong, privilege_mask2, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_dom_sid, user_sid, 0UL); NDR_MEMBER_PTR (_dom_sid, group_sid, 4UL); return 1; } int ndr__spoolss_handle (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_handle = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_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__spoolss_handle (struct ndr_reference *encl_ref) { struct spoolss_handle *val = (struct spoolss_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__spoolssDevmodeContainer (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolssDevmodeContainer = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolssDevmodeContainer, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolssDevmodeContainer (struct ndr_reference *encl_ref) { struct spoolssDevmodeContainer *val = (struct spoolssDevmodeContainer *) 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 (_uchar, DevContCount, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_uchar, DevMode, 4UL, val->DevContCount); return 1; } int ndr__spoolss_DeviceMode (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DeviceMode = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_DeviceMode, /* ndr_func */ 228, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 228, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_DeviceMode (struct ndr_reference *encl_ref) { struct spoolss_DeviceMode *val = (struct spoolss_DeviceMode *) 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, specversion, 64UL); NDR_MEMBER (_ushort, driverversion, 66UL); NDR_MEMBER (_ushort, size, 68UL); NDR_MEMBER (_ushort, driverextra_length, 70UL); NDR_MEMBER (_ulong, fields, 72UL); NDR_MEMBER (_ushort, orientation, 76UL); NDR_MEMBER (_ushort, papersize, 78UL); NDR_MEMBER (_ushort, paperlength, 80UL); NDR_MEMBER (_ushort, paperwidth, 82UL); NDR_MEMBER (_ushort, scale, 84UL); NDR_MEMBER (_ushort, copies, 86UL); NDR_MEMBER (_ushort, defaultsource, 88UL); NDR_MEMBER (_ushort, printquality, 90UL); NDR_MEMBER (_ushort, color, 92UL); NDR_MEMBER (_ushort, duplex, 94UL); NDR_MEMBER (_ushort, yresolution, 96UL); NDR_MEMBER (_ushort, ttoption, 98UL); NDR_MEMBER (_ushort, collate, 100UL); NDR_MEMBER (_ushort, logpixels, 166UL); NDR_MEMBER (_ulong, bitsperpel, 168UL); NDR_MEMBER (_ulong, pelswidth, 172UL); NDR_MEMBER (_ulong, pelsheight, 176UL); NDR_MEMBER (_ulong, displayflags, 180UL); NDR_MEMBER (_ulong, displayfrequency, 184UL); NDR_MEMBER (_ulong, icmmethod, 188UL); NDR_MEMBER (_ulong, icmintent, 192UL); NDR_MEMBER (_ulong, mediatype, 196UL); NDR_MEMBER (_ulong, dithertype, 200UL); NDR_MEMBER (_ulong, reserved1, 204UL); NDR_MEMBER (_ulong, reserved2, 208UL); NDR_MEMBER (_ulong, panningwidth, 212UL); NDR_MEMBER (_ulong, panningheight, 216UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, devicename, 0UL, 64); NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, formname, 102UL, 64); /* do members with pointers in order */ NDR_MEMBER (_spoolssDevmodeContainer, driverextra_data, 220UL); return 1; } int ndr__spoolss_CreatePrinterIC (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_CreatePrinterIC = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_CreatePrinterIC, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(40)] */ int ndr__spoolss_CreatePrinterIC (struct ndr_reference *encl_ref) { struct spoolss_CreatePrinterIC *val = (struct spoolss_CreatePrinterIC *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_spoolss_handle, gdi_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_spoolssDevmodeContainer, dmodeContainer); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_OpenPrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_OpenPrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_OpenPrinter, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(1)] */ int ndr__spoolss_OpenPrinter (struct ndr_reference *encl_ref) { struct spoolss_OpenPrinter *val = (struct spoolss_OpenPrinter *) 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 (s_wchar, printer_name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, data_type); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EnumJobs (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EnumJobs = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EnumJobs, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(4)] */ int ndr__spoolss_EnumJobs (struct ndr_reference *encl_ref) { struct spoolss_EnumJobs *val = (struct spoolss_EnumJobs *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, FirstJob); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, NoJobs); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, Buf2); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pJob, val->BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed2); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_DeletePrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DeletePrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_DeletePrinter, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(6)] */ int ndr__spoolss_DeletePrinter (struct ndr_reference *encl_ref) { struct spoolss_DeletePrinter *val = (struct spoolss_DeletePrinter *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_Time (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_Time = { 1, /* NDR version */ 1, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_Time, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_Time (struct ndr_reference *encl_ref) { struct spoolss_Time *val = (struct spoolss_Time *) 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, year, 0UL); NDR_MEMBER (_ushort, month, 2UL); NDR_MEMBER (_ushort, day_of_week, 4UL); NDR_MEMBER (_ushort, day, 6UL); NDR_MEMBER (_ushort, hour, 8UL); NDR_MEMBER (_ushort, minute, 10UL); NDR_MEMBER (_ushort, second, 12UL); NDR_MEMBER (_ushort, millisecond, 14UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter0 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter0 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter0, /* ndr_func */ 124, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 124, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter0 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter0 *val = (struct spoolss_GetPrinter0 *) 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, printername, 0UL); NDR_MEMBER (_ulong, servername, 4UL); NDR_MEMBER (_ulong, cjobs, 8UL); NDR_MEMBER (_ulong, total_jobs, 12UL); NDR_MEMBER (_ulong, total_bytes, 16UL); NDR_MEMBER (_ulong, time0, 20UL); NDR_MEMBER (_ulong, time1, 24UL); NDR_MEMBER (_ulong, time2, 28UL); NDR_MEMBER (_ulong, time3, 32UL); NDR_MEMBER (_ulong, global_counter, 36UL); NDR_MEMBER (_ulong, total_pages, 40UL); NDR_MEMBER (_ulong, version, 44UL); NDR_MEMBER (_ulong, ffreebuild, 48UL); NDR_MEMBER (_ulong, cspooling, 52UL); NDR_MEMBER (_ulong, cmaxspooling, 56UL); NDR_MEMBER (_ulong, session_counter, 60UL); NDR_MEMBER (_ulong, out_of_paper, 64UL); NDR_MEMBER (_ulong, not_ready, 68UL); NDR_MEMBER (_ulong, job_error, 72UL); NDR_MEMBER (_ulong, num_processors, 76UL); NDR_MEMBER (_ulong, type_processor, 80UL); NDR_MEMBER (_ulong, high_part_total_bytes, 84UL); NDR_MEMBER (_ulong, change_id, 88UL); NDR_MEMBER (_ulong, last_error, 92UL); NDR_MEMBER (_ulong, status, 96UL); NDR_MEMBER (_ulong, enum_network_printers, 100UL); NDR_MEMBER (_ulong, c_setprinter, 104UL); NDR_MEMBER (_ushort, processor_arch, 108UL); NDR_MEMBER (_ushort, processor_level, 110UL); NDR_MEMBER (_ulong, ref, 112UL); NDR_MEMBER (_ulong, reserved2, 116UL); NDR_MEMBER (_ulong, reserved3, 120UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter1 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter1 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter1, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter1 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter1 *val = (struct spoolss_GetPrinter1 *) 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, flags, 0UL); NDR_MEMBER (_ulong, name, 4UL); NDR_MEMBER (_ulong, description, 8UL); NDR_MEMBER (_ulong, comment, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter2, /* ndr_func */ 84, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 84, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter2 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter2 *val = (struct spoolss_GetPrinter2 *) 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, servername, 0UL); NDR_MEMBER (_ulong, printername, 4UL); NDR_MEMBER (_ulong, sharename, 8UL); NDR_MEMBER (_ulong, portname, 12UL); NDR_MEMBER (_ulong, drivername, 16UL); NDR_MEMBER (_ulong, comment, 20UL); NDR_MEMBER (_ulong, location, 24UL); NDR_MEMBER (_ulong, devmode, 28UL); NDR_MEMBER (_ulong, sepfile, 32UL); NDR_MEMBER (_ulong, printprocessor, 36UL); NDR_MEMBER (_ulong, datatype, 40UL); NDR_MEMBER (_ulong, parameters, 44UL); NDR_MEMBER (_ulong, secdesc, 48UL); NDR_MEMBER (_ulong, attributes, 52UL); NDR_MEMBER (_ulong, priority, 56UL); NDR_MEMBER (_ulong, defaultpriority, 60UL); NDR_MEMBER (_ulong, starttime, 64UL); NDR_MEMBER (_ulong, untiltime, 68UL); NDR_MEMBER (_ulong, status, 72UL); NDR_MEMBER (_ulong, cjobs, 76UL); NDR_MEMBER (_ulong, averageppm, 80UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter3 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter3 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter3, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter3 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter3 *val = (struct spoolss_GetPrinter3 *) 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, dummy, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter4 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter4 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter4, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter4 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter4 *val = (struct spoolss_GetPrinter4 *) 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, printername, 0UL); NDR_MEMBER (_ulong, servername, 4UL); NDR_MEMBER (_ulong, attributes, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter5 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter5 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter5, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter5 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter5 *val = (struct spoolss_GetPrinter5 *) 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, printername, 0UL); NDR_MEMBER (_ulong, portname, 4UL); NDR_MEMBER (_ulong, attributes, 8UL); NDR_MEMBER (_ulong, device_not_selected_timeout, 12UL); NDR_MEMBER (_ulong, transmission_retry_timeout, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter6 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter6 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter6, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter6 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter6 *val = (struct spoolss_GetPrinter6 *) 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, status, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter7 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter7 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter7, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter7 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter7 *val = (struct spoolss_GetPrinter7 *) 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, guid, 0UL); NDR_MEMBER (_ulong, action, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter8 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter8 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter8, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter8 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter8 *val = (struct spoolss_GetPrinter8 *) 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, flags, 0UL); NDR_MEMBER (_ulong, name, 4UL); NDR_MEMBER (_ulong, description, 8UL); NDR_MEMBER (_ulong, comment, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__spoolss_GetPrinter_result_u (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter_result_u = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__spoolss_GetPrinter_result_u, /* ndr_func */ 124, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 124, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter_result_u (struct ndr_reference *encl_ref) { union spoolss_GetPrinter_result_u *val = (union spoolss_GetPrinter_result_u *) 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 0: NDR_MEMBER (_spoolss_GetPrinter0, info0, 0UL); break; case 1: NDR_MEMBER (_spoolss_GetPrinter1, info1, 0UL); break; case 2: NDR_MEMBER (_spoolss_GetPrinter2, info2, 0UL); break; case 3: NDR_MEMBER (_spoolss_GetPrinter3, info3, 0UL); break; case 4: NDR_MEMBER (_spoolss_GetPrinter4, info4, 0UL); break; case 5: NDR_MEMBER (_spoolss_GetPrinter5, info5, 0UL); break; case 6: NDR_MEMBER (_spoolss_GetPrinter6, info6, 0UL); break; case 7: NDR_MEMBER (_spoolss_GetPrinter7, info7, 0UL); break; case 8: NDR_MEMBER (_spoolss_GetPrinter8, info8, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__spoolss_GetPrinter_result (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter_result = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_GetPrinter_result, /* ndr_func */ 128, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 128, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_GetPrinter_result (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter_result *val = (struct spoolss_GetPrinter_result *) 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, switch_value, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_spoolss_GetPrinter_result_u, ru, 4UL, val->switch_value); return 1; } int ndr__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE (struct ndr_reference *encl_ref) { struct spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE *val = (struct spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE *) 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, type, 0UL); NDR_MEMBER (_ushort, reserved0, 2UL); NDR_MEMBER (_ulong, reserved1, 4UL); NDR_MEMBER (_ulong, reserved2, 8UL); NDR_MEMBER (_ulong, count, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_ushort, pFields, 16UL, val->count); return 1; } int ndr__spoolss_RPC_V2_NOTIFY_OPTIONS (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_OPTIONS = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_RPC_V2_NOTIFY_OPTIONS, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_RPC_V2_NOTIFY_OPTIONS (struct ndr_reference *encl_ref) { struct spoolss_RPC_V2_NOTIFY_OPTIONS *val = (struct spoolss_RPC_V2_NOTIFY_OPTIONS *) 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, version, 0UL); NDR_MEMBER (_ulong, reserved, 4UL); NDR_MEMBER (_ulong, count, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE, ptypes, 12UL, val->count); return 1; } int ndr__SYSTEMTIME (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__SYSTEMTIME = { 1, /* NDR version */ 1, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__SYSTEMTIME, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__SYSTEMTIME (struct ndr_reference *encl_ref) { struct SYSTEMTIME *val = (struct SYSTEMTIME *) 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, year, 0UL); NDR_MEMBER (_ushort, month, 2UL); NDR_MEMBER (_ushort, dayofweek, 4UL); NDR_MEMBER (_ushort, day, 6UL); NDR_MEMBER (_ushort, hour, 8UL); NDR_MEMBER (_ushort, minute, 10UL); NDR_MEMBER (_ushort, second, 12UL); NDR_MEMBER (_ushort, millisecs, 14UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__SECURITY_CONTAINER (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__SECURITY_CONTAINER = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__SECURITY_CONTAINER, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__SECURITY_CONTAINER (struct ndr_reference *encl_ref) { struct SECURITY_CONTAINER *val = (struct SECURITY_CONTAINER *) 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, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_uchar, psecurity, 4UL, val->count); return 1; } int ndr__SYSTEMTIME_CONTAINER (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__SYSTEMTIME_CONTAINER = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__SYSTEMTIME_CONTAINER, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__SYSTEMTIME_CONTAINER (struct ndr_reference *encl_ref) { struct SYSTEMTIME_CONTAINER *val = (struct SYSTEMTIME_CONTAINER *) 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, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_SYSTEMTIME, psystemtime, 4UL); return 1; } int ndr__STRING_CONTAINER (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__STRING_CONTAINER = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__STRING_CONTAINER, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__STRING_CONTAINER (struct ndr_reference *encl_ref) { struct STRING_CONTAINER *val = (struct STRING_CONTAINER *) 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, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (s_wchar, pstring, 4UL, val->count / 2UL); return 1; } int ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA (struct ndr_reference *encl_ref) { union spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA *val = (union spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA *) 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 1: NDR_MEMBER (_STRING_CONTAINER, pcont, 0UL); break; case 2: NDR_MEMBER_ARR_WITH_DIMENSION (_ulong, data, 0UL, 2); break; case 3: NDR_MEMBER (_SYSTEMTIME_CONTAINER, system_time, 0UL); break; case 4: NDR_MEMBER (_spoolssDevmodeContainer, devmode, 0UL); break; case 5: NDR_MEMBER (_SECURITY_CONTAINER, security_descriptor, 0UL); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; } int ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_INFO_DATA = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA (struct ndr_reference *encl_ref) { struct spoolss_RPC_V2_NOTIFY_INFO_DATA *val = (struct spoolss_RPC_V2_NOTIFY_INFO_DATA *) 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, Type, 0UL); NDR_MEMBER (_ushort, Field, 2UL); NDR_MEMBER (_ulong, Reserved, 4UL); NDR_MEMBER (_ulong, Id, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA, data, 12UL, val->Reserved & 65535UL); return 1; } int ndr__spoolss_RPC_V2_NOTIFY_INFO (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_INFO = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_RPC_V2_NOTIFY_INFO, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_RPC_V2_NOTIFY_INFO (struct ndr_reference *encl_ref) { struct spoolss_RPC_V2_NOTIFY_INFO *val = (struct spoolss_RPC_V2_NOTIFY_INFO *) 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, Version, 0UL); NDR_MEMBER (_ulong, Flags, 4UL); NDR_MEMBER (_ulong, Count, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_spoolss_RPC_V2_NOTIFY_INFO_DATA, aData, 12UL, val->Count); return 1; } int ndr__spoolss_GetPrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_GetPrinter, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(8)] */ int ndr__spoolss_GetPrinter (struct ndr_reference *encl_ref) { struct spoolss_GetPrinter *val = (struct spoolss_GetPrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, switch_value); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, Buf2); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, Buf, val->BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_GetPrinterData (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinterData = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_GetPrinterData, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(26)] */ int ndr__spoolss_GetPrinterData (struct ndr_reference *encl_ref) { struct spoolss_GetPrinterData *val = (struct spoolss_GetPrinterData *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, pValueName); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, pType); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF_WITH_SIZE_IS (_uchar, Buf, val->Size); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, Size); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, Needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_GetPrinterDriver (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinterDriver = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_GetPrinterDriver, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(11)] */ int ndr__spoolss_GetPrinterDriver (struct ndr_reference *encl_ref) { struct spoolss_GetPrinterDriver *val = (struct spoolss_GetPrinterDriver *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_DeletePrinterDriver (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DeletePrinterDriver = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_DeletePrinterDriver, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(13)] */ int ndr__spoolss_DeletePrinterDriver (struct ndr_reference *encl_ref) { struct spoolss_DeletePrinterDriver *val = (struct spoolss_DeletePrinterDriver *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_DocInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DocInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_DocInfo, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_DocInfo (struct ndr_reference *encl_ref) { struct spoolss_DocInfo *val = (struct spoolss_DocInfo *) 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 */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, doc_name, 0UL); NDR_MEMBER_PTR (s_wchar, printer_name, 4UL); NDR_MEMBER_PTR (s_wchar, type, 8UL); return 1; } int ndr__spoolss_DocInfo_Container (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DocInfo_Container = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_DocInfo_Container, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_DocInfo_Container (struct ndr_reference *encl_ref) { struct spoolss_DocInfo_Container *val = (struct spoolss_DocInfo_Container *) 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, level, 0UL); NDR_MEMBER (_ulong, switch_value, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_spoolss_DocInfo, DocInfoContainer, 8UL); return 1; } int ndr__spoolss_StartDocPrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_StartDocPrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_StartDocPrinter, /* ndr_func */ 40, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 40, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(17)] */ int ndr__spoolss_StartDocPrinter (struct ndr_reference *encl_ref) { struct spoolss_StartDocPrinter *val = (struct spoolss_StartDocPrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_spoolss_DocInfo_Container, dinfo); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, JobId); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_AbortPrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_AbortPrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_AbortPrinter, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(21)] */ int ndr__spoolss_AbortPrinter (struct ndr_reference *encl_ref) { struct spoolss_AbortPrinter *val = (struct spoolss_AbortPrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EnumPorts (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EnumPorts = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EnumPorts, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(35)] */ int ndr__spoolss_EnumPorts (struct ndr_reference *encl_ref) { struct spoolss_EnumPorts *val = (struct spoolss_EnumPorts *) 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 (s_wchar, name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, returned); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_DeletePort (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DeletePort = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_DeletePort, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(39)] */ int ndr__spoolss_DeletePort (struct ndr_reference *encl_ref) { struct spoolss_DeletePort *val = (struct spoolss_DeletePort *) 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 (s_wchar, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_AddPortEx (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_AddPortEx = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_AddPortEx, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(61)] */ int ndr__spoolss_AddPortEx (struct ndr_reference *encl_ref) { struct spoolss_AddPortEx *val = (struct spoolss_AddPortEx *) 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 (s_wchar, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_SetPort (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_SetPort = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_SetPort, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(71)] */ int ndr__spoolss_SetPort (struct ndr_reference *encl_ref) { struct spoolss_SetPort *val = (struct spoolss_SetPort *) 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 (s_wchar, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EnumMonitor (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EnumMonitor = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EnumMonitor, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(36)] */ int ndr__spoolss_EnumMonitor (struct ndr_reference *encl_ref) { struct spoolss_EnumMonitor *val = (struct spoolss_EnumMonitor *) 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 (s_wchar, name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, returned); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_AddMonitor (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_AddMonitor = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_AddMonitor, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(46)] */ int ndr__spoolss_AddMonitor (struct ndr_reference *encl_ref) { struct spoolss_AddMonitor *val = (struct spoolss_AddMonitor *) 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 (s_wchar, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_DeleteMonitor (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DeleteMonitor = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_DeleteMonitor, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(47)] */ int ndr__spoolss_DeleteMonitor (struct ndr_reference *encl_ref) { struct spoolss_DeleteMonitor *val = (struct spoolss_DeleteMonitor *) 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 (s_wchar, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_ResetPrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_ResetPrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_ResetPrinter, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(52)] */ int ndr__spoolss_ResetPrinter (struct ndr_reference *encl_ref) { struct spoolss_ResetPrinter *val = (struct spoolss_ResetPrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_StartPagePrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_StartPagePrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_StartPagePrinter, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(18)] */ int ndr__spoolss_StartPagePrinter (struct ndr_reference *encl_ref) { struct spoolss_StartPagePrinter *val = (struct spoolss_StartPagePrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EndPagePrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EndPagePrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EndPagePrinter, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(20)] */ int ndr__spoolss_EndPagePrinter (struct ndr_reference *encl_ref) { struct spoolss_EndPagePrinter *val = (struct spoolss_EndPagePrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_WritePrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_WritePrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_WritePrinter, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(19)] */ int ndr__spoolss_WritePrinter (struct ndr_reference *encl_ref) { struct spoolss_WritePrinter *val = (struct spoolss_WritePrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, BufCount); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF_WITH_SIZE_IS (_uchar, pBuf, val->BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, written); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_ScheduleJob (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_ScheduleJob = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_ScheduleJob, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(25)] */ int ndr__spoolss_ScheduleJob (struct ndr_reference *encl_ref) { struct spoolss_ScheduleJob *val = (struct spoolss_ScheduleJob *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, JobId); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_GetJob (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetJob = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_GetJob, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(3)] */ int ndr__spoolss_GetJob (struct ndr_reference *encl_ref) { struct spoolss_GetJob *val = (struct spoolss_GetJob *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, JobId); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pJob, val->BufCount); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_AddJob (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_AddJob = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_AddJob, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(24)] */ int ndr__spoolss_AddJob (struct ndr_reference *encl_ref) { struct spoolss_AddJob *val = (struct spoolss_AddJob *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, Buf2); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pAddJob, val->BufCount); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_ClosePrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_ClosePrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_ClosePrinter, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(29)] */ int ndr__spoolss_ClosePrinter (struct ndr_reference *encl_ref) { struct spoolss_ClosePrinter *val = (struct spoolss_ClosePrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_spoolss_handle, result_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EndDocPrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EndDocPrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EndDocPrinter, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(23)] */ int ndr__spoolss_EndDocPrinter (struct ndr_reference *encl_ref) { struct spoolss_EndDocPrinter *val = (struct spoolss_EndDocPrinter *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_AddForm (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_AddForm = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_AddForm, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(30)] */ int ndr__spoolss_AddForm (struct ndr_reference *encl_ref) { struct spoolss_AddForm *val = (struct spoolss_AddForm *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_DeleteForm (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_DeleteForm = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_DeleteForm, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(31)] */ int ndr__spoolss_DeleteForm (struct ndr_reference *encl_ref) { struct spoolss_DeleteForm *val = (struct spoolss_DeleteForm *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EnumForms (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EnumForms = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EnumForms, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(34)] */ int ndr__spoolss_EnumForms (struct ndr_reference *encl_ref) { struct spoolss_EnumForms *val = (struct spoolss_EnumForms *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, BufCount); } NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pEnumForms, val->BufCount); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, needed); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, pcRet); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_GetPrinterDriver2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_GetPrinterDriver2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_GetPrinterDriver2, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(53)] */ int ndr__spoolss_GetPrinterDriver2 (struct ndr_reference *encl_ref) { struct spoolss_GetPrinterDriver2 *val = (struct spoolss_GetPrinterDriver2 *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_FCPN (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_FCPN = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_FCPN, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(56)] */ int ndr__spoolss_FCPN (struct ndr_reference *encl_ref) { struct spoolss_FCPN *val = (struct spoolss_FCPN *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_ReplyOpenPrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_ReplyOpenPrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_ReplyOpenPrinter, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(58)] */ int ndr__spoolss_ReplyOpenPrinter (struct ndr_reference *encl_ref) { struct spoolss_ReplyOpenPrinter *val = (struct spoolss_ReplyOpenPrinter *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_ReplyClosePrinter (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_ReplyClosePrinter = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_ReplyClosePrinter, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(60)] */ int ndr__spoolss_ReplyClosePrinter (struct ndr_reference *encl_ref) { struct spoolss_ReplyClosePrinter *val = (struct spoolss_ReplyClosePrinter *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_RFFPCNEX (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RFFPCNEX = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_RFFPCNEX, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(65)] */ int ndr__spoolss_RFFPCNEX (struct ndr_reference *encl_ref) { struct spoolss_RFFPCNEX *val = (struct spoolss_RFFPCNEX *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_infores (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_infores = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__spoolss_infores, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__spoolss_infores (struct ndr_reference *encl_ref) { struct spoolss_infores *val = (struct spoolss_infores *) 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, entriesread, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_spoolss_RPC_V2_NOTIFY_INFO, pinfo, 4UL); return 1; } int ndr__spoolss_RFNPCNEX (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RFNPCNEX = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_RFNPCNEX, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(67)] */ int ndr__spoolss_RFNPCNEX (struct ndr_reference *encl_ref) { struct spoolss_RFNPCNEX *val = (struct spoolss_RFNPCNEX *) 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 (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, color); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_spoolss_RPC_V2_NOTIFY_OPTIONS, poptions); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_spoolss_infores, ppinfo); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_RRPCN (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_RRPCN = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_RRPCN, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(66)] */ int ndr__spoolss_RRPCN (struct ndr_reference *encl_ref) { struct spoolss_RRPCN *val = (struct spoolss_RRPCN *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_OpenPrinterEx (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_OpenPrinterEx = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_OpenPrinterEx, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(69)] */ int ndr__spoolss_OpenPrinterEx (struct ndr_reference *encl_ref) { struct spoolss_OpenPrinterEx *val = (struct spoolss_OpenPrinterEx *) 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 (s_wchar, printer_name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_spoolss_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, data_type); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EnumPrinterData (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EnumPrinterData = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EnumPrinterData, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(72)] */ int ndr__spoolss_EnumPrinterData (struct ndr_reference *encl_ref) { struct spoolss_EnumPrinterData *val = (struct spoolss_EnumPrinterData *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EnumPrinterDataEx (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EnumPrinterDataEx = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EnumPrinterDataEx, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(79)] */ int ndr__spoolss_EnumPrinterDataEx (struct ndr_reference *encl_ref) { struct spoolss_EnumPrinterDataEx *val = (struct spoolss_EnumPrinterDataEx *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_EnumPrinterKey (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_EnumPrinterKey = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__spoolss_EnumPrinterKey, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(80)] */ int ndr__spoolss_EnumPrinterKey (struct ndr_reference *encl_ref) { struct spoolss_EnumPrinterKey *val = (struct spoolss_EnumPrinterKey *) 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 (_ulong, dontcare); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__spoolss_interface (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__spoolss_interface = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__spoolss_interface, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__spoolss_interface (struct ndr_reference *encl_ref) { union spoolss_interface *val = (union spoolss_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 1: NDR_PARAMS_MEMBER (_spoolss_OpenPrinter, OpenPrinter); break; case 6: NDR_PARAMS_MEMBER (_spoolss_DeletePrinter, DeletePrinter); break; case 8: NDR_PARAMS_MEMBER (_spoolss_GetPrinter, GetPrinter); break; case 26: NDR_PARAMS_MEMBER (_spoolss_GetPrinterData, GetPrinterData); break; case 21: NDR_PARAMS_MEMBER (_spoolss_AbortPrinter, AbortPrinter); break; case 17: NDR_PARAMS_MEMBER (_spoolss_StartDocPrinter, StartDocPrinter); break; case 23: NDR_PARAMS_MEMBER (_spoolss_EndDocPrinter, EndDocPrinter); break; case 40: NDR_PARAMS_MEMBER (_spoolss_CreatePrinterIC, CreatePrinterIC); break; case 52: NDR_PARAMS_MEMBER (_spoolss_ResetPrinter, ResetPrinter); break; case 36: NDR_PARAMS_MEMBER (_spoolss_EnumMonitor, EnumMonitor); break; case 46: NDR_PARAMS_MEMBER (_spoolss_AddMonitor, AddMonitor); break; case 47: NDR_PARAMS_MEMBER (_spoolss_DeleteMonitor, DeleteMonitor); break; case 19: NDR_PARAMS_MEMBER (_spoolss_WritePrinter, WritePrinter); break; case 18: NDR_PARAMS_MEMBER (_spoolss_StartPagePrinter, StartPagePrinter); break; case 20: NDR_PARAMS_MEMBER (_spoolss_EndPagePrinter, EndPagePrinter); break; case 29: NDR_PARAMS_MEMBER (_spoolss_ClosePrinter, ClosePrinter); break; case 69: NDR_PARAMS_MEMBER (_spoolss_OpenPrinterEx, OpenPrinterEx); break; case 24: NDR_PARAMS_MEMBER (_spoolss_AddJob, AddJob); break; case 3: NDR_PARAMS_MEMBER (_spoolss_GetJob, GetJob); break; case 25: NDR_PARAMS_MEMBER (_spoolss_ScheduleJob, ScheduleJob); break; case 30: NDR_PARAMS_MEMBER (_spoolss_AddForm, AddForm); break; case 31: NDR_PARAMS_MEMBER (_spoolss_DeleteForm, DeleteForm); break; case 34: NDR_PARAMS_MEMBER (_spoolss_EnumForms, EnumForms); break; case 35: NDR_PARAMS_MEMBER (_spoolss_EnumPorts, EnumPorts); break; case 39: NDR_PARAMS_MEMBER (_spoolss_DeletePort, DeletePort); break; case 61: NDR_PARAMS_MEMBER (_spoolss_AddPortEx, AddPortEx); break; case 71: NDR_PARAMS_MEMBER (_spoolss_SetPort, SetPort); break; case 67: NDR_PARAMS_MEMBER (_spoolss_RFNPCNEX, RFNPCNEX); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }