1/*
2 * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2001  Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
18/* $Id: AccountInfo.h,v 1.6 2007/06/19 23:47:07 tbox Exp $ */
19
20
21#define RTN_OK		0
22#define RTN_NOACCOUNT	1
23#define RTN_NOMEMORY	2
24#define RTN_ERROR	10
25
26#define SE_SERVICE_LOGON_PRIV	L"SeServiceLogonRight"
27
28/*
29 * This routine retrieves the list of all Privileges associated with
30 * a given account as well as the groups to which it beongs
31 */
32int
33GetAccountPrivileges(
34	char *name,			/* Name of Account */
35	wchar_t **PrivList,		/* List of Privileges returned */
36	unsigned int *PrivCount,	/* Count of Privileges returned */
37	char **Groups,		/* List of Groups to which account belongs */
38	unsigned int *totalGroups,	/* Count of Groups returned */
39	int maxGroups		/* Maximum number of Groups to return */
40	);
41
42/*
43 * This routine creates an account with the given name which has just
44 * the logon service privilege and no membership of any groups,
45 * i.e. it's part of the None group.
46 */
47BOOL
48CreateServiceAccount(char *name, char *password);
49