mlsvc_wkssvc.c revision dc20a3024900c47dd2ee44b9707e6df38f7d62a5
/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <netdb.h>
#include <string.h>
#include <strings.h>
#include <smbsrv/libmlsvc.h>
#include <smbsrv/mlsvc_util.h>
static int wkssvc_s_NetWkstaGetInfo(void *, struct mlrpc_xaction *);
static mlrpc_stub_table_t wkssvc_stub_table[] = {
{0}
};
static mlrpc_service_t wkssvc_service = {
"Workstation", /* name (WKSSVC or WKSTA) */
"Workstation services", /* desc */
"\\wkssvc", /* endpoint */
PIPE_NTSVCS, /* sec_addr_port */
"6bffd098-a112-3610-983346c3f87e345a", 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() */
wkssvc_stub_table /* stub_table */
};
void
wkssvc_initialize(void)
{
(void) mlrpc_register_service(&wkssvc_service);
}
/*
* WKSSVC NetWkstaGetInfo (
* IN LPTSTR servername,
* IN DWORD level,
* OUT union switch(level) {
* case 100: _WKSTA_INFO_100 * p100;
* case 101: _WKSTA_INFO_101 * p101;
* case 102: _WKSTA_INFO_102 * p102;
* } bufptr,
* OUT DWORD status
* )
*/
static int
{
char hostname[MAXHOSTNAMELEN];
char resource_domain[SMB_PI_MAX_DOMAIN];
char *p;
int rc;
return (MLRPC_DRC_OK);
}
case 100:
break;
}
break;
}
break;
default:
break;
}
if (status != ERROR_SUCCESS) {
}
return (MLRPC_DRC_OK);
}