2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Gerald Carter 2002
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef _RPC_DS_H /* _RPC_LSA_H */
27 /* Opcodes available on PIPE_LSARPC_DS */
29 #define DS_GETPRIMDOMINFO 0x00
32 /* macros for RPC's */
34 #define DSROLE_PRIMARY_DS_RUNNING 0x00000001
35 #define DSROLE_PRIMARY_DS_MIXED_MODE 0x00000002
36 #define DSROLE_UPGRADE_IN_PROGRESS 0x00000004
37 #define DSROLE_PRIMARY_DOMAIN_GUID_PRESENT 0x01000000
42 uint16 unknown; /* 0x6173 -- maybe just alignment? */
48 uint32 forestname_ptr;
52 UNISTR2 netbios_domain;
53 /* these 2 might be reversed in order. I can't tell from
54 my tests as both values are the same --jerry */
56 UNISTR2 forest_domain;
57 } DSROLE_PRIMARY_DOMAIN_INFO_BASIC;
61 DSROLE_PRIMARY_DOMAIN_INFO_BASIC *basic;
64 /* info levels for ds_getprimdominfo() */
66 #define DsRolePrimaryDomainInfoBasic 1
69 /* DS_Q_GETPRIMDOMINFO - DsGetPrimaryDomainInformation() request */
73 } DS_Q_GETPRIMDOMINFO;
75 /* DS_R_GETPRIMDOMINFO - DsGetPrimaryDomainInformation() response */
81 uint16 unknown0; /* 0x455c -- maybe just alignment? */
86 } DS_R_GETPRIMDOMINFO;
91 #endif /* _RPC_DS_H */