/* * 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__msgsvc_uuid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__msgsvc_uuid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__msgsvc_uuid, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__msgsvc_uuid (struct ndr_reference *encl_ref) { struct msgsvc_uuid *val = (struct msgsvc_uuid *) 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 (_ushort, data2, 4UL); NDR_MEMBER (_ushort, data3, 6UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 8UL, 8); /* do members with pointers in order */ return 1; } int ndr__msgsvcsend_NetrSendMessage (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__msgsvcsend_NetrSendMessage = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__msgsvcsend_NetrSendMessage, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(0)] */ int ndr__msgsvcsend_NetrSendMessage (struct ndr_reference *encl_ref) { struct msgsvcsend_NetrSendMessage *val = (struct msgsvcsend_NetrSendMessage *) 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 (_msgsvc_uuid, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, from); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, to); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, text); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__msgsvcsend_interface (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__msgsvcsend_interface = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__msgsvcsend_interface, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__msgsvcsend_interface (struct ndr_reference *encl_ref) { union msgsvcsend_interface *val = (union msgsvcsend_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 0: NDR_PARAMS_MEMBER (_msgsvcsend_NetrSendMessage, NetrSendMessage); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }