{ spoolss_s_stub, SPOOLSS_OPNUM_EnumPrinterKey }, {0} }; static ndr_service_t spoolss_service = { "SPOOLSS", /* name */ "Print Spool Service", /* desc */ "\\spoolss", /* endpoint */ PIPE_SPOOLSS, /* sec_addr_port */ "12345678-1234-abcd-ef00-0123456789ab", 1, /* abstract */ NDR_TRANSFER_SYNTAX_UUID, 2, /* transfer */ 0, /* no bind_instance_size */ 0, /* no bind_req() */ 0, /* no unbind_and_close() */ 0, /* use generic_call_stub() */ &TYPEINFO(spoolss_interface), /* interface ti */ spoolss_stub_table /* stub_table */ }; void spoolss_initialize(void) { if (!spoolss_splist.sp_initialized) { list_create(&spoolss_splist.sp_list, sizeof (smb_spooldoc_t), offsetof(smb_spooldoc_t, sd_lnd)); spoolss_splist.sp_initialized = 1; } spoolss_copyfile_callback = NULL;
{ lsarpc_s_LookupNames4, LSARPC_OPNUM_LookupNames4 }, {0} }; static ndr_service_t lsarpc_service = { "LSARPC", /* name */ "Local Security Authority", /* desc */ "\\lsarpc", /* endpoint */ PIPE_LSASS, /* sec_addr_port */ "12345778-1234-abcd-ef00-0123456789ab", 0, /* abstract */ NDR_TRANSFER_SYNTAX_UUID, 2, /* transfer */ 0, /* no bind_instance_size */ NULL, /* no bind_req() */ NULL, /* no unbind_and_close() */ lsarpc_call_stub, /* call_stub() */ &TYPEINFO(lsarpc_interface), /* interface ti */ lsarpc_stub_table /* stub_table */ }; /* * lsarpc_initialize * * This function registers the LSA RPC interface with the RPC runtime * library. It must be called in order to use either the client side * or the server side functions. */ void lsarpc_initialize(void) { (void) ndr_svc_register(&lsarpc_service); }