Sync with trunk (r48545)
[reactos.git] / include / psdk / nettypes.h
1 /*
2 * nettypes.h
3 *
4 * This file is part of the ReactOS PSDK package.
5 *
6 * Contributors:
7 * Created by Magnus Olsen.
8 *
9 * THIS SOFTWARE IS NOT COPYRIGHTED
10 *
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
13 *
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 */
20
21 #pragma once
22
23 #define HARDWARE_ADDRESS_LENGTH 6
24 #define NETMAN_VARTYPE_ULONG 0
25 #define NETMAN_VARTYPE_HARDWARE_ADDRESS 1
26 #define NETMAN_VARTYPE_STRING 2
27
28 typedef ULONG OFFSET;
29
30 typedef struct _FLAT_STRING {
31 SHORT MaximumLength;
32 SHORT Length;
33 char Buffer [1];
34 } FLAT_STRING, *PFLAT_STRING;
35
36 typedef struct _NETWORK_NAME {
37 FLAT_STRING Name;
38 } NETWORK_NAME, *PNETWORK_NAME;
39
40 typedef struct _HARDWARE_ADDRESS {
41 UCHAR Address [HARDWARE_ADDRESS_LENGTH];
42 } HARDWARE_ADDRESS, *PHARDWARE_ADDRESS;