mlsvc_spoolss.c revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Printing and Spooling RPC interface definition.
* A stub to resolve RPC requests to this service.
*/
#include <smbsrv/mlsvc_util.h>
#include <smbsrv/ntstatus.h>
static mlrpc_stub_table_t spoolss_stub_table[];
static mlrpc_service_t spoolss_service = {
"SPOOLSS", /* name */
"Print Spool Service", /* desc */
"\\spoolss", /* endpoint */
PIPE_SPOOLSS, /* sec_addr_port */
"12345678-1234-abcd-ef000123456789ab", 1, /* abstract */
"8a885d04-1ceb-11c9-9fe808002b104860", 2, /* transfer */
0, /* no bind_instance_size */
0, /* no bind_req() */
0, /* no unbind_and_close() */
0, /* use generic_call_stub() */
spoolss_stub_table /* stub_table */
};
/*
* spoolss_initialize
*
* This function registers the SPOOLSS 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
spoolss_initialize(void)
{
(void) mlrpc_register_service(&spoolss_service);
}
/*
* spoolss_s_OpenPrinter
*
* We don't offer print spooling support. It should be okay to
* set the status to access denied and return MLRPC_DRC_OK.
*/
static int
{
return (MLRPC_DRC_OK);
}
/*
* spoolss_s_stub
*/
static int
{
return (MLRPC_DRC_FAULT_PARAM_0_UNIMPLEMENTED);
}
static mlrpc_stub_table_t spoolss_stub_table[] = {
{0}
};