windows-kfw-sdk-20060921
[openafs.git] / src / WINNT / kfw / inc / loadfuncs / loadfuncs-wshelper.h
1 #ifndef __LOADFUNCS_WSHELPER_H__
2 #define __LOADFUNCS_WSHELPER_H__
3
4 #include <loadfuncs.h>
5 #include <wshelper.h>
6
7 #if defined(_WIN64)
8 #define WSHELPER_DLL "wshelp64.dll"
9 #else
10 #define WSHELPER_DLL "wshelp32.dll"
11 #endif
12 #define CALLCONV_C
13
14 TYPEDEF_FUNC(
15     struct hostent *,
16     WINAPI,
17     rgethostbyname,
18     (char *name)
19     );
20
21 TYPEDEF_FUNC(
22     struct hostent *,
23     WINAPI,
24     rgethostbyaddr,
25     (char* addr, int len, int type)
26     );
27
28 TYPEDEF_FUNC(
29     struct servent,
30     WINAPI,
31     rgetservbyname,
32     (LPSTR name, LPSTR proto)
33     );
34
35 TYPEDEF_FUNC(
36     LPSTR,
37     WINAPI,
38     gethinfobyname,
39     (LPSTR name)
40     );
41
42 TYPEDEF_FUNC(
43     LPSTR,
44     WINAPI,
45     getmxbyname,
46     (LPSTR name)
47     );
48
49 TYPEDEF_FUNC(
50     LPSTR,
51     WINAPI,
52     getrecordbyname,
53     (LPSTR name, int rectype)
54     );
55
56 TYPEDEF_FUNC(
57     DWORD,
58     WINAPI,
59     rrhost,
60     (LPSTR lpHost)
61     );
62
63 TYPEDEF_FUNC(
64     unsigned long,
65     WINAPI,
66     inet_aton,
67     (const char* cp, struct in_addr *addr)
68     );
69
70 TYPEDEF_FUNC(
71     DWORD,
72     CALLCONV_C,
73     WhichOS,
74     (DWORD * check)
75     );
76
77 TYPEDEF_FUNC(
78     int,
79     WINAPI,
80     wsh_gethostname,
81     (char* name, int size)
82     );
83
84 TYPEDEF_FUNC(
85     int,
86     WINAPI,
87     wsh_getdomainname,
88     (char* name, int size)
89     );
90
91 TYPEDEF_FUNC(
92     LONG,
93     CALLCONV_C,
94     WSHGetHostID,
95     ()
96     );
97
98 TYPEDEF_FUNC(
99     int,
100     WINAPI,
101     res_init,
102     ()
103     );
104
105 TYPEDEF_FUNC(
106     void,
107     WINAPI,
108     res_setopts,
109     (long opts)
110     );
111
112 TYPEDEF_FUNC(
113     long,
114     WINAPI,
115     res_getopts,
116     (void)
117     );
118
119 TYPEDEF_FUNC(
120     int,
121     WINAPI,
122     res_mkquery,
123     (int op, const char FAR *dname, 
124      int qclass, int type, 
125      const char FAR *data, int datalen, 
126      const struct rrec FAR *newrr,
127      char FAR *buf, int buflen)
128     );
129
130 TYPEDEF_FUNC(
131     int,
132     WINAPI,
133     res_send,
134     (const char FAR *msg, int msglen, 
135      char FAR *answer, int anslen)
136     );
137
138 TYPEDEF_FUNC(
139     int,
140     WINAPI,
141     res_querydomain,
142     (const char FAR *name, 
143      const char FAR *domain, 
144      int qclass, int type, 
145      u_char FAR *answer, int anslen)
146     );
147
148 TYPEDEF_FUNC(
149     int,
150     WINAPI,
151     res_search,
152     (const char FAR *name, 
153      int qclass, int type, 
154      u_char FAR *answer, int anslen)
155     );
156
157 TYPEDEF_FUNC(
158     int,
159     WINAPI,
160     dn_comp,
161     (const u_char FAR *exp_dn, 
162      u_char FAR *comp_dn, 
163      int length, u_char FAR * FAR *dnptrs, 
164      u_char FAR * FAR *lastdnptr)
165     );
166
167 TYPEDEF_FUNC(
168     int,
169     WINAPI,
170     rdn_expand,
171     (const u_char FAR *msg, 
172      const u_char FAR *eomorig, 
173      const u_char FAR *comp_dn, 
174      u_char FAR *exp_dn, 
175      int length)
176     );
177
178 TYPEDEF_FUNC(
179     LPSTR,
180     WINAPI,
181     hes_to_bind,
182     (
183         LPSTR HesiodName, 
184         LPSTR HesiodNameType
185         )
186     );
187
188 TYPEDEF_FUNC(
189     LPSTR *,
190     WINAPI,
191     hes_resolve,
192     (
193         LPSTR HesiodName,
194         LPSTR HesiodNameType
195         )
196     );
197
198 TYPEDEF_FUNC(
199     int,
200     WINAPI,
201     hes_error,
202     (
203         void
204         )
205     );
206
207 TYPEDEF_FUNC(
208     struct hes_postoffice *,
209     WINAPI,
210     hes_getmailhost,
211     (LPSTR user)
212     );
213
214 TYPEDEF_FUNC(
215     struct servent *,
216     WINAPI,
217     hes_getservbyname,
218     (LPSTR name, 
219      LPSTR proto)
220     );
221
222 TYPEDEF_FUNC(
223     struct passwd *,
224     WINAPI,
225     hes_getpwnam,
226     (LPSTR nam)
227     );
228
229 TYPEDEF_FUNC(
230     struct passwd *,
231     WINAPI,
232     hes_getpwuid,
233     (int uid)
234     );
235
236 #endif /* __LOADFUNCS_WSHELPER_H__ */