2 Unix SMB/Netbios implementation.
4 Samba utility functions
5 Copyright (C) Luke Leighton 1996 - 1997
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 extern int DEBUGLEVEL;
27 /*******************************************************************
28 reads or writes an LSA_Q_QUERY_INFO structure.
29 ********************************************************************/
30 char* lsa_io_q_query(BOOL io, LSA_Q_QUERY_INFO *q_q, char *q, char *base, int align)
32 if (q_q == NULL) return NULL;
34 RW_SVAL(io, q, q_q->info_class, 0); q += 2;
39 /*******************************************************************
40 reads or writes an LSA_Q_QUERY_INFO structure.
41 ********************************************************************/
42 char* lsa_io_r_query(BOOL io, LSA_R_QUERY_INFO *r_q, char *q, char *base, int align)
44 if (r_q == NULL) return NULL;
46 RW_IVAL(io, q, r_q->undoc_buffer, 0); q += 4;
48 if (r_q->undoc_buffer != 0)
50 RW_SVAL(io, q, r_q->info_class, 0); q += 2;
52 switch (r_q->info_class)
56 q = smb_io_dom_query_3(io, &(r_q->dom.id3), q, base, align);
61 q = smb_io_dom_query_5(io, &(r_q->dom.id3), q, base, align);
75 /*******************************************************************
76 reads or writes a structure.
77 ********************************************************************/
78 char* lsa_io_(BOOL io, *, char *q, char *base, int align)
80 if (== NULL) return NULL;
82 q = align_offset(q, base, align);
84 RW_IVAL(io, q, , 0); q += 4;
88 /*******************************************************************
89 reads or writes a structure.
90 ********************************************************************/
91 char* lsa_io_(BOOL io, *, char *q, char *base, int align)
93 if (== NULL) return NULL;
95 q = align_offset(q, base, align);
97 RW_IVAL(io, q, , 0); q += 4;