ntdll: Add ARM64 cpu info.
[wine] / dlls / fwpuclnt / main.c
1 /*
2  * Implementation of Windows Filtering Platform (WFP) management functions
3  *
4  * Copyright 2009 Paul Chitescu
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "wine/debug.h"
26
27 WINE_DEFAULT_DEBUG_CHANNEL(fwpuclnt);
28
29 /*****************************************************
30  * DllMain
31  */
32 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
33 {
34     TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
35
36     switch (fdwReason)
37     {
38     case DLL_WINE_PREATTACH:
39         return FALSE;  /* prefer native version */
40     case DLL_PROCESS_ATTACH:
41         DisableThreadLibraryCalls( hinstDLL );
42         break;
43     }
44     return TRUE;
45 }
46
47 /***********************************************************************
48  *   FwpmFreeMemory0 (FWPUCLNT.@)
49  *
50  */
51
52 void WINAPI FwpmFreeMemory0(void** mem)
53 {
54     FIXME("(%p) stub, mem=%p\n", mem, (mem ? *mem : NULL));
55 }
56
57 /***********************************************************************
58  *   FwpmEngineOpen0 (FWPUCLNT.@)
59  *
60  */
61
62 DWORD WINAPI FwpmEngineOpen0(LPCWSTR serverName, UINT32 authService, void* authIdentity, void* session, LPHANDLE engineHandle)
63 {
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;
67 }
68
69 /***********************************************************************
70  *   FwpmEngineClose0 (FWPUCLNT.@)
71  *
72  */
73
74 DWORD WINAPI FwpmEngineClose0(HANDLE engineHandle)
75 {
76     FIXME("(%p) stub\n", engineHandle);
77     return RPC_S_CANNOT_SUPPORT;
78 }
79
80
81 /***********************************************************************
82  *   FwpmSubLayerAdd0 (FWPUCLNT.@)
83  *
84  */
85
86 DWORD WINAPI FwpmSubLayerAdd0(HANDLE engineHandle, void* subLayer, PSECURITY_DESCRIPTOR security)
87 {
88     FIXME("(%p, %p, %p) stub\n", engineHandle, subLayer, security);
89     return RPC_S_CANNOT_SUPPORT;
90 }
91
92 /***********************************************************************
93  *   FwpmSubLayerGetByKey0 (FWPUCLNT.@)
94  *
95  */
96
97 DWORD WINAPI FwpmSubLayerGetByKey0(HANDLE engineHandle, LPCGUID key, void** subLayer)
98 {
99     FIXME("(%p, %s, %p) stub\n", engineHandle, debugstr_guid(key), subLayer);
100     *subLayer = NULL;
101     return RPC_S_CANNOT_SUPPORT;
102 }
103
104 /***********************************************************************
105  *   FwpmFilterCreateEnumHandle0 (FWPUCLNT.@)
106  *
107  */
108
109 DWORD WINAPI FwpmFilterCreateEnumHandle0(HANDLE engineHandle, void* enumTemplate, LPHANDLE enumHandle)
110 {
111     FIXME("(%p, %p, %p) stub\n", engineHandle, enumTemplate, enumHandle);
112     *enumHandle = NULL;
113     return RPC_S_CANNOT_SUPPORT;
114 }
115
116 /***********************************************************************
117  *   FwpmFilterDestroyEnumHandle0 (FWPUCLNT.@)
118  *
119  */
120
121 DWORD WINAPI FwpmFilterDestroyEnumHandle0(HANDLE engineHandle, HANDLE enumHandle)
122 {
123     FIXME("(%p, %p) stub\n", engineHandle, enumHandle);
124     return RPC_S_CANNOT_SUPPORT;
125 }
126
127 /***********************************************************************
128  *   FwpmFilterEnum0 (FWPUCLNT.@)
129  *
130  */
131
132 DWORD WINAPI FwpmFilterEnum0(HANDLE engineHandle, HANDLE enumHandle, UINT32 nEntriesRequested, void*** entries, UINT32* nEntriesReturned)
133 {
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;
138 }
139
140 /***********************************************************************
141  *   FwpmFilterAdd0 (FWPUCLNT.@)
142  *
143  */
144
145 DWORD WINAPI FwpmFilterAdd0(HANDLE engineHandle, void* filter, PSECURITY_DESCRIPTOR security, UINT64* pFilterId)
146 {
147     FIXME("(%p, %p, %p, %p) stub\n", engineHandle, filter, security, pFilterId);
148     return RPC_S_CANNOT_SUPPORT;
149 }