summaryrefslogtreecommitdiff
path: root/source3/aparser/srvsvc.struct
blob: 61e67c4f4ad21b3f1218b0844be92547910c58ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
module srvsvc
test SRV_R_NET_SHARE_ENUM

struct UNISTR2 {
       uint32 max_len;
       uint32 undoc;
       uint32 str_len;
       uint16 buffer[str_len];
};

/* function 15 */
struct SRV_SHARE_INFO_1 {
	UNISTR2 *uni_netname;
	uint32 type;
	UNISTR2 *uni_remark;
};

struct SHARE_ENUM {
       uint32 level;
       uint32 num_entries;
       union info[level] {
              case 1 SRV_SHARE_INFO_1 entries[num_entries];
       }
};

struct SRV_R_NET_SHARE_ENUM {
       uint32 level;
       uint32 dummy;
       SHARE_ENUM *shares;
       uint32 *num_entries;
};



/* function 21 */
struct SERVER_INFO_100 {
	uint32  dwPlatformID;
	UNISTR2 *pszName;
};

struct SERVER_INFO_101 {
	    uint32  dwPlatformID;
	    UNISTR2 *pszName;
	    uint32  dwVerMajor;
	    uint32  dwVerMinor;
	    uint32  dwType;
	    UNISTR2 *pszComment;
};

struct SERVER_INFO_102 {
    uint32  dwPlatformID;
    UNISTR2 *pszName;
    uint32  dwVerMajor;
    uint32  dwVerMinor;
    uint32  dwType;
    UNISTR2 *pszComment;
    uint32  dwUsers;
    uint32   lDisc;
    uint32   bHidden;
    uint32  dwAnnounce;
    uint32  dwAnnDelta;
    uint32  dwLicenses;
    UNISTR2 *pszUserPath;
};

struct SRV_R_NET_SERVER_INFO {
       uint32 level;
       union info[level] {
		case 100 SERVER_INFO_100 *sv100;
		case 101 SERVER_INFO_101 *sv101;
		case 102 SERVER_INFO_102 *sv102;
       }
};