blob: bccce431d9d2d56a8622187e882b21aad7714876 (
plain) (
blame)
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
74
75
76
77
78
79
80
81
82
83
|
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
nb30p.h
Abstract:
Private include file for the NB (NetBIOS) component of the NTOS project.
Author:
Colin Watson (ColinW) 09-Dec-1991
Revision History:
--*/
#ifndef _NB30P_
#define _NB30P_
#define NB_DEVICE_NAME L"\\Device\\Netbios" // name of our driver.
//
// private IOCTLs used by the Netbios routine in the dll to communicate with
// \Device\Netbios
//
#define IOCTL_NB_BASE FILE_DEVICE_TRANSPORT
#define _NB_CONTROL_CODE(request,method) \
CTL_CODE(IOCTL_NB_BASE, request, method, FILE_ANY_ACCESS)
#define IOCTL_NB_NCB _NB_CONTROL_CODE(20,METHOD_NEITHER)
//
// MessageId: STATUS_HANGUP_REQUIRED
//
// MessageText:
//
// Warning error for the Netbios driver to the Netbios dll. When receiving this
// status on an NCB completion, the dll will hangup the connection causing the
// connection block to be deleted. This status will never be returned to a user
// application.
//
#define STATUS_HANGUP_REQUIRED ((NTSTATUS)0x80010001L)
//
// Private extension for XNS to support vtp.exe
//
#define NCALLNIU 0x74 /* UB special */
//
// Private extension to support AsyBEUI
//
#define NCBQUICKADDNAME 0x75
#define NCBQUICKADDGRNAME 0x76
// Values for transport_id in ACTION_HEADER
#define MS_ABF "MABF"
#define MS_XNS "MXNS"
// private OS/2SS stuff
#define DEFAULT_NET 1 // default NET number for NetBiosSubmit
#define NB2_INIT 0
#define NB2_INIT_LANA 1
#define NB2_LANA 2
#define NB2ERR_SUCCESS 0
#define NB2ERR_INVALID_LANA 1
#define NB2ERR_INVALID_REQUEST 2
#endif // _NB30P_
|