"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/bin/win32/BINDInstall/AccountInfo.h" (4 Sep 2020, 1352 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "AccountInfo.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 #define RTN_OK        0
   13 #define RTN_NOACCOUNT 1
   14 #define RTN_NOMEMORY  2
   15 #define RTN_ERROR     10
   16 
   17 #define SE_SERVICE_LOGON_PRIV L"SeServiceLogonRight"
   18 
   19 /*
   20  * This routine retrieves the list of all Privileges associated with
   21  * a given account as well as the groups to which it beongs
   22  */
   23 int
   24 GetAccountPrivileges(char *name,          /* Name of Account */
   25              wchar_t **PrivList,      /* List of Privileges returned */
   26              unsigned int *PrivCount, /* Count of Privileges
   27                          returned */
   28              char **Groups,       /* List of Groups to which account
   29                            * belongs
   30                            */
   31              unsigned int *totalGroups, /* Count of Groups returned
   32                          */
   33              int maxGroups /* Maximum number of Groups to return */
   34 );
   35 
   36 /*
   37  * This routine creates an account with the given name which has just
   38  * the logon service privilege and no membership of any groups,
   39  * i.e. it's part of the None group.
   40  */
   41 BOOL
   42 CreateServiceAccount(char *name, char *password);