1 | /* $Id: oslibnet.h,v 1.4 2002-03-08 11:37:10 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Wrappers for OS/2 Netbios/Network/LAN API
|
---|
4 | *
|
---|
5 | * Copyright 2000 Patrick Haller (patrick.haller@innotek.de)
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
8 | *
|
---|
9 | */
|
---|
10 |
|
---|
11 | #ifndef __OSLIBNET_H__
|
---|
12 | #define __OSLIBNET_H__
|
---|
13 |
|
---|
14 |
|
---|
15 | #undef NET_API_STATUS
|
---|
16 | #define NET_API_STATUS DWORD
|
---|
17 |
|
---|
18 | #define NERR_OK 0
|
---|
19 |
|
---|
20 | #ifndef NERR_BASE
|
---|
21 | #define NERR_BASE 1 /* @@@PH DUMMY ! */
|
---|
22 | #endif
|
---|
23 |
|
---|
24 |
|
---|
25 |
|
---|
26 | // forwarders to NETAPI32 internal APIs
|
---|
27 | NET_API_STATUS WIN32API OS2NetApiBufferAllocate(DWORD ByteCount,
|
---|
28 | LPVOID * Buffer);
|
---|
29 |
|
---|
30 | NET_API_STATUS WIN32API OS2NetApiBufferFree(LPVOID Buffer);
|
---|
31 |
|
---|
32 | NET_API_STATUS WIN32API OS2NetApiBufferReallocate(LPVOID OldBuffer,
|
---|
33 | DWORD NewByteCount,
|
---|
34 | LPVOID* NewBuffer);
|
---|
35 |
|
---|
36 | NET_API_STATUS WIN32API OS2NetApiBufferSize(LPVOID buffer,
|
---|
37 | LPDWORD lpByteCount);
|
---|
38 |
|
---|
39 |
|
---|
40 | // forwarders to OS/2 Lan Manager APIs
|
---|
41 |
|
---|
42 | DWORD OSLibNetWkstaGetInfo (const unsigned char * pszServer,
|
---|
43 | unsigned long ulLevel,
|
---|
44 | unsigned char * pbBuffer,
|
---|
45 | unsigned long ulBuffer,
|
---|
46 | unsigned long * pulTotalAvail);
|
---|
47 |
|
---|
48 | DWORD OSLibNetStatisticsGet(const unsigned char * pszServer,
|
---|
49 | const unsigned char * pszService,
|
---|
50 | unsigned long ulReserved,
|
---|
51 | unsigned long ulLevel,
|
---|
52 | unsigned long flOptions,
|
---|
53 | unsigned char * pbBuffer,
|
---|
54 | unsigned long ulBuffer,
|
---|
55 | unsigned long * pulTotalAvail);
|
---|
56 |
|
---|
57 | DWORD OSLibNetServerEnum(const unsigned char * pszServer,
|
---|
58 | unsigned long ulLevel,
|
---|
59 | unsigned char * pbBuffer,
|
---|
60 | unsigned long ulBufferLength,
|
---|
61 | unsigned long * pulEntriesReturned,
|
---|
62 | unsigned long * pulEntriesAvail,
|
---|
63 | unsigned long ulServerType,
|
---|
64 | unsigned char * pszDomain);
|
---|
65 |
|
---|
66 | #endif
|
---|