Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers netpnp.h Source File

netpnp.h

00001 /*
00002  * netpnp.h
00003  *
00004  * Network Plug and Play event support
00005  *
00006  * This file is part of the w32api package.
00007  *
00008  * Contributors:
00009  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
00010  *
00011  * THIS SOFTWARE IS NOT COPYRIGHTED
00012  *
00013  * This source code is offered for use in the public domain. You may
00014  * use, modify or distribute it freely.
00015  *
00016  * This code is distributed in the hope that it will be useful but
00017  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
00018  * DISCLAIMED. This includes but is not limited to warranties of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00020  *
00021  */
00022 
00023 #ifndef __NETPNP_H
00024 #define __NETPNP_H
00025 
00026 #if __GNUC__ >=3
00027 #pragma GCC system_header
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 typedef enum _NET_PNP_EVENT_CODE {
00035   NetEventSetPower,
00036   NetEventQueryPower,
00037   NetEventQueryRemoveDevice,
00038   NetEventCancelRemoveDevice,
00039   NetEventReconfigure,
00040   NetEventBindList,
00041   NetEventBindsComplete,
00042   NetEventPnPCapabilities,
00043   NetEventMaximum
00044 } NET_PNP_EVENT_CODE, *PNET_PNP_EVENT_CODE;
00045 
00046 typedef struct _NET_PNP_EVENT {
00047   NET_PNP_EVENT_CODE  NetEvent;
00048   PVOID  Buffer;
00049   ULONG  BufferLength;
00050   ULONG_PTR  NdisReserved[4];
00051   ULONG_PTR  TransportReserved[4];
00052   ULONG_PTR  TdiReserved[4];
00053   ULONG_PTR  TdiClientReserved[4];
00054 } NET_PNP_EVENT, *PNET_PNP_EVENT;
00055 
00056 typedef enum _NET_DEVICE_POWER_STATE {
00057   NetDeviceStateUnspecified,
00058   NetDeviceStateD0,
00059   NetDeviceStateD1,
00060   NetDeviceStateD2,
00061   NetDeviceStateD3,
00062   NetDeviceStateMaximum
00063 } NET_DEVICE_POWER_STATE, *PNET_DEVICE_POWER_STATE;
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 #endif /* __NETPNP_H */