kernel32: DETACHED_PROCESS doesn't affect STARTUPINFO console handles.
[wine.git] / dlls / fwpuclnt / main.c
blob8c8c2a0c8c692a285441d3b921f7e7b6bc21acee
1 /*
2 * Implementation of Windows Filtering Platform (WFP) management functions
4 * Copyright 2009 Paul Chitescu
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(fwpuclnt);
29 /*****************************************************
30 * DllMain
32 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
34 TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
36 switch (fdwReason)
38 case DLL_WINE_PREATTACH:
39 return FALSE; /* prefer native version */
40 case DLL_PROCESS_ATTACH:
41 DisableThreadLibraryCalls( hinstDLL );
42 break;
44 return TRUE;
47 /***********************************************************************
48 * FwpmFreeMemory0 (FWPUCLNT.@)
52 void WINAPI FwpmFreeMemory0(void** mem)
54 FIXME("(%p) stub, mem=%p\n", mem, (mem ? *mem : NULL));
57 /***********************************************************************
58 * FwpmEngineOpen0 (FWPUCLNT.@)
62 DWORD WINAPI FwpmEngineOpen0(LPCWSTR serverName, UINT32 authService, void* authIdentity, void* session, LPHANDLE engineHandle)
64 FIXME("(%s, 0x%X, %p, %p, %p) stub\n", debugstr_w(serverName), authService, authIdentity, session, engineHandle);
65 *engineHandle = NULL;
66 return RPC_S_CANNOT_SUPPORT;
69 /***********************************************************************
70 * FwpmEngineClose0 (FWPUCLNT.@)
74 DWORD WINAPI FwpmEngineClose0(HANDLE engineHandle)
76 FIXME("(%p) stub\n", engineHandle);
77 return RPC_S_CANNOT_SUPPORT;
81 /***********************************************************************
82 * FwpmSubLayerAdd0 (FWPUCLNT.@)
86 DWORD WINAPI FwpmSubLayerAdd0(HANDLE engineHandle, void* subLayer, PSECURITY_DESCRIPTOR security)
88 FIXME("(%p, %p, %p) stub\n", engineHandle, subLayer, security);
89 return RPC_S_CANNOT_SUPPORT;
92 /***********************************************************************
93 * FwpmSubLayerGetByKey0 (FWPUCLNT.@)
97 DWORD WINAPI FwpmSubLayerGetByKey0(HANDLE engineHandle, LPCGUID key, void** subLayer)
99 FIXME("(%p, %s, %p) stub\n", engineHandle, debugstr_guid(key), subLayer);
100 *subLayer = NULL;
101 return RPC_S_CANNOT_SUPPORT;
104 /***********************************************************************
105 * FwpmFilterCreateEnumHandle0 (FWPUCLNT.@)
109 DWORD WINAPI FwpmFilterCreateEnumHandle0(HANDLE engineHandle, void* enumTemplate, LPHANDLE enumHandle)
111 FIXME("(%p, %p, %p) stub\n", engineHandle, enumTemplate, enumHandle);
112 *enumHandle = NULL;
113 return RPC_S_CANNOT_SUPPORT;
116 /***********************************************************************
117 * FwpmFilterDestroyEnumHandle0 (FWPUCLNT.@)
121 DWORD WINAPI FwpmFilterDestroyEnumHandle0(HANDLE engineHandle, HANDLE enumHandle)
123 FIXME("(%p, %p) stub\n", engineHandle, enumHandle);
124 return RPC_S_CANNOT_SUPPORT;
127 /***********************************************************************
128 * FwpmFilterEnum0 (FWPUCLNT.@)
132 DWORD WINAPI FwpmFilterEnum0(HANDLE engineHandle, HANDLE enumHandle, UINT32 nEntriesRequested, void*** entries, UINT32* nEntriesReturned)
134 FIXME("(%p, %p, %u, %p, %p) stub\n", engineHandle, enumHandle, nEntriesRequested, entries, nEntriesReturned);
135 *entries = NULL;
136 *nEntriesReturned = 0;
137 return RPC_S_CANNOT_SUPPORT;
140 /***********************************************************************
141 * FwpmFilterAdd0 (FWPUCLNT.@)
145 DWORD WINAPI FwpmFilterAdd0(HANDLE engineHandle, void* filter, PSECURITY_DESCRIPTOR security, UINT64* pFilterId)
147 FIXME("(%p, %p, %p, %p) stub\n", engineHandle, filter, security, pFilterId);
148 return RPC_S_CANNOT_SUPPORT;