1 | /* $Id: VBoxNetFltM-win.h 44529 2013-02-04 15:54:15Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxNetFltM-win.h - Bridged Networking Driver, Windows Specific Code - Miniport edge API
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2012 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef ___VBoxNetFltM_win_h___
|
---|
19 | #define ___VBoxNetFltM_win_h___
|
---|
20 |
|
---|
21 | DECLHIDDEN(NDIS_STATUS) vboxNetFltWinMpRegister(PVBOXNETFLTGLOBALS_MP pGlobalsMp, PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegistryPathStr);
|
---|
22 | DECLHIDDEN(VOID) vboxNetFltWinMpDeregister(PVBOXNETFLTGLOBALS_MP pGlobalsMp);
|
---|
23 | DECLHIDDEN(VOID) vboxNetFltWinMpReturnPacket(IN NDIS_HANDLE hMiniportAdapterContext, IN PNDIS_PACKET pPacket);
|
---|
24 |
|
---|
25 | #ifdef VBOXNETADP
|
---|
26 | DECLHIDDEN(NDIS_STATUS) vboxNetFltWinMpDoInitialization(PVBOXNETFLTINS pThis, NDIS_HANDLE hMiniportAdapter, NDIS_HANDLE hWrapperConfigurationContext);
|
---|
27 | DECLHIDDEN(NDIS_STATUS) vboxNetFltWinMpDoDeinitialization(PVBOXNETFLTINS pThis);
|
---|
28 |
|
---|
29 | #else
|
---|
30 |
|
---|
31 | DECLHIDDEN(NDIS_STATUS) vboxNetFltWinMpInitializeDevideInstance(PVBOXNETFLTINS pThis);
|
---|
32 | DECLHIDDEN(bool) vboxNetFltWinMpDeInitializeDeviceInstance(PVBOXNETFLTINS pThis, PNDIS_STATUS pStatus);
|
---|
33 |
|
---|
34 | DECLINLINE(VOID) vboxNetFltWinMpRequestStateComplete(PVBOXNETFLTINS pNetFlt)
|
---|
35 | {
|
---|
36 | RTSpinlockAcquire(pNetFlt->hSpinlock);
|
---|
37 | pNetFlt->u.s.WinIf.StateFlags.fRequestInfo = 0;
|
---|
38 | RTSpinlockRelease(pNetFlt->hSpinlock);
|
---|
39 | }
|
---|
40 |
|
---|
41 | DECLHIDDEN(NDIS_STATUS) vboxNetFltWinMpRequestPost(PVBOXNETFLTINS pNetFlt);
|
---|
42 | #endif
|
---|
43 |
|
---|
44 | #endif /* !___VBoxNetFltM_win_h___ */
|
---|
45 |
|
---|