ReactOS 0.4.15-dev-7924-g5949c20
rpcserver.c File Reference
#include "precomp.h"
#include <debug.h>
Include dependency graph for rpcserver.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

DWORD WINAPI RpcThreadRoutine (LPVOID lpParameter)
 
PWLANSVCHANDLE WlanSvcGetHandleEntry (LPWLANSVC_RPC_HANDLE ClientHandle)
 
DWORD _RpcOpenHandle (wchar_t *arg_1, DWORD dwClientVersion, DWORD *pdwNegotiatedVersion, LPWLANSVC_RPC_HANDLE phClientHandle)
 
DWORD _RpcCloseHandle (LPWLANSVC_RPC_HANDLE phClientHandle)
 
DWORD _RpcEnumInterfaces (WLANSVC_RPC_HANDLE hClientHandle, PWLAN_INTERFACE_INFO_LIST *ppInterfaceList)
 
DWORD _RpcSetAutoConfigParameter (WLANSVC_RPC_HANDLE hClientHandle, long OpCode, DWORD dwDataSize, LPBYTE pData)
 
DWORD _RpcQueryAutoConfigParameter (WLANSVC_RPC_HANDLE hClientHandle, DWORD OpCode, LPDWORD pdwDataSize, char **ppData, DWORD *pWlanOpcodeValueType)
 
DWORD _RpcGetInterfaceCapability (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, PWLAN_INTERFACE_CAPABILITY *ppCapability)
 
DWORD _RpcSetInterface (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, DWORD OpCode, DWORD dwDataSize, LPBYTE pData)
 
DWORD _RpcQueryInterface (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, long OpCode, LPDWORD pdwDataSize, LPBYTE *ppData, LPDWORD pWlanOpcodeValueType)
 
DWORD _RpcIhvControl (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, DWORD Type, DWORD dwInBufferSize, LPBYTE pInBuffer, DWORD dwOutBufferSize, LPBYTE pOutBuffer, LPDWORD pdwBytesReturned)
 
DWORD _RpcScan (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, PDOT11_SSID pDot11Ssid, PWLAN_RAW_DATA pIeData)
 
DWORD _RpcGetAvailableNetworkList (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, DWORD dwFlags, WLAN_AVAILABLE_NETWORK_LIST **ppAvailableNetworkList)
 
DWORD _RpcGetNetworkBssList (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, PDOT11_SSID pDot11Ssid, short dot11BssType, DWORD bSecurityEnabled, LPDWORD dwBssListSize, LPBYTE *ppWlanBssList)
 
DWORD _RpcConnect (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const PWLAN_CONNECTION_PARAMETERS *pConnectionParameters)
 
DWORD _RpcDisconnect (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGUID)
 
DWORD _RpcRegisterNotification (WLANSVC_RPC_HANDLE hClientHandle, DWORD arg_2, LPDWORD pdwPrevNotifSource)
 
DWORD _RpcAsyncGetNotification (WLANSVC_RPC_HANDLE hClientHandle, PWLAN_NOTIFICATION_DATA *NotificationData)
 
DWORD _RpcSetProfileEapUserData (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, wchar_t *strProfileName, EAP_METHOD_TYPE MethodType, DWORD dwFlags, DWORD dwEapUserDataSize, LPBYTE pbEapUserData)
 
DWORD _RpcSetProfile (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, DWORD dwFlags, wchar_t *strProfileXml, wchar_t *strAllUserProfileSecurity, BOOL bOverwrite, LPDWORD pdwReasonCode)
 
DWORD _RpcGetProfile (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, wchar_t *strProfileName, wchar_t **pstrProfileXml, LPDWORD pdwFlags, LPDWORD pdwGrantedAccess)
 
DWORD _RpcDeleteProfile (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const wchar_t *strProfileName)
 
DWORD _RpcRenameProfile (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const wchar_t *strOldProfileName, const wchar_t *strNewProfileName)
 
DWORD _RpcSetProfileList (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, DWORD dwItems, BYTE **strProfileNames)
 
DWORD _RpcGetProfileList (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, PWLAN_PROFILE_INFO_LIST *ppProfileList)
 
DWORD _RpcSetProfilePosition (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, wchar_t *strProfileName, DWORD dwPosition)
 
DWORD _RpcSetProfileCustomUserData (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, wchar_t *strProfileName, DWORD dwDataSize, LPBYTE pData)
 
DWORD _RpcGetProfileCustomUserData (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, wchar_t *strProfileName, LPDWORD dwDataSize, LPBYTE *pData)
 
DWORD _RpcSetFilterList (WLANSVC_RPC_HANDLE hClientHandle, short wlanFilterListType, PDOT11_NETWORK_LIST pNetworkList)
 
DWORD _RpcGetFilterList (WLANSVC_RPC_HANDLE hClientHandle, short wlanFilterListType, PDOT11_NETWORK_LIST *pNetworkList)
 
DWORD _RpcSetPsdIEDataList (WLANSVC_RPC_HANDLE hClientHandle, wchar_t *strFormat, DWORD dwDataListSize, LPBYTE pPsdIEDataList)
 
DWORD _RpcSaveTemporaryProfile (WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, wchar_t *strProfileName, wchar_t *strAllUserProfileSecurity, DWORD dwFlags, BOOL bOverWrite)
 
DWORD _RpcIsUIRequestPending (wchar_t *arg_1, const GUID *pInterfaceGuid, struct_C *arg_3, LPDWORD arg_4)
 
DWORD _RpcSetUIForwardingNetworkList (wchar_t *arg_1, GUID *arg_2, DWORD dwSize, GUID *arg_4)
 
DWORD _RpcIsNetworkSuppressed (wchar_t *arg_1, DWORD arg_2, const GUID *pInterfaceGuid, LPDWORD arg_4)
 
DWORD _RpcRemoveUIForwardingNetworkList (wchar_t *arg_1, const GUID *pInterfaceGuid)
 
DWORD _RpcQueryExtUIRequest (wchar_t *arg_1, GUID *arg_2, GUID *arg_3, short arg_4, GUID *pInterfaceGuid, struct_C **arg_6)
 
DWORD _RpcUIResponse (wchar_t *arg_1, struct_C *arg_2, struct_D *arg_3)
 
DWORD _RpcGetProfileKeyInfo (wchar_t *arg_1, DWORD arg_2, const GUID *pInterfaceGuid, wchar_t *arg_4, DWORD arg_5, LPDWORD arg_6, char *arg_7, LPDWORD arg_8)
 
DWORD _RpcAsyncDoPlap (wchar_t *arg_1, const GUID *pInterfaceGuid, wchar_t *arg_3, DWORD dwSize, struct_E arg_5[])
 
DWORD _RpcQueryPlapCredentials (wchar_t *arg_1, LPDWORD dwSize, struct_E **arg_3, wchar_t **arg_4, GUID *pInterfaceGuid, LPDWORD arg_6, LPDWORD arg_7, LPDWORD arg_8, LPDWORD arg_9)
 
DWORD _RpcCancelPlap (wchar_t *arg_1, const GUID *pInterfaceGuid)
 
DWORD _RpcSetSecuritySettings (WLANSVC_RPC_HANDLE hClientHandle, WLAN_SECURABLE_OBJECT SecurableObject, const wchar_t *strModifiedSDDL)
 
DWORD _RpcGetSecuritySettings (WLANSVC_RPC_HANDLE hClientHandle, WLAN_SECURABLE_OBJECT SecurableObject, WLAN_OPCODE_VALUE_TYPE *pValueType, wchar_t **pstrCurrentSDDL, LPDWORD pdwGrantedAccess)
 
void __RPC_FAR *__RPC_USER midl_user_allocate (SIZE_T len)
 
void __RPC_USER midl_user_free (void __RPC_FAR *ptr)
 
void __RPC_USER WLANSVC_RPC_HANDLE_rundown (WLANSVC_RPC_HANDLE hClientHandle)
 

Variables

LIST_ENTRY WlanSvcHandleListHead
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 11 of file rpcserver.c.

Function Documentation

◆ _RpcAsyncDoPlap()

DWORD _RpcAsyncDoPlap ( wchar_t arg_1,
const GUID pInterfaceGuid,
wchar_t arg_3,
DWORD  dwSize,
struct_E  arg_5[] 
)

Definition at line 565 of file rpcserver.c.

571{
574}
#define UNIMPLEMENTED
Definition: debug.h:115
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102

◆ _RpcAsyncGetNotification()

DWORD _RpcAsyncGetNotification ( WLANSVC_RPC_HANDLE  hClientHandle,
PWLAN_NOTIFICATION_DATA NotificationData 
)

Definition at line 336 of file rpcserver.c.

339{
342}

◆ _RpcCancelPlap()

DWORD _RpcCancelPlap ( wchar_t arg_1,
const GUID pInterfaceGuid 
)

Definition at line 591 of file rpcserver.c.

594{
597}

◆ _RpcCloseHandle()

DWORD _RpcCloseHandle ( LPWLANSVC_RPC_HANDLE  phClientHandle)

Definition at line 97 of file rpcserver.c.

99{
100 PWLANSVCHANDLE lpWlanSvcHandle;
101
102 lpWlanSvcHandle = WlanSvcGetHandleEntry(*phClientHandle);
103 if (!lpWlanSvcHandle)
104 {
106 }
107
108 RemoveEntryList(&lpWlanSvcHandle->WlanSvcHandleListEntry);
109 HeapFree(GetProcessHeap(), 0, lpWlanSvcHandle);
110
111 return ERROR_SUCCESS;
112}
PWLANSVCHANDLE WlanSvcGetHandleEntry(LPWLANSVC_RPC_HANDLE ClientHandle)
Definition: rpcserver.c:47
#define ERROR_SUCCESS
Definition: deptool.c:10
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
#define RemoveEntryList(Entry)
Definition: env_spec_w32.h:986
LIST_ENTRY WlanSvcHandleListEntry
Definition: precomp.h:20

Referenced by WlanCloseHandle().

◆ _RpcConnect()

DWORD _RpcConnect ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
const PWLAN_CONNECTION_PARAMETERS pConnectionParameters 
)

Definition at line 310 of file rpcserver.c.

314{
317}

Referenced by WlanConnect().

◆ _RpcDeleteProfile()

DWORD _RpcDeleteProfile ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
const wchar_t strProfileName 
)

Definition at line 382 of file rpcserver.c.

386{
389}

Referenced by WlanDeleteProfile().

◆ _RpcDisconnect()

DWORD _RpcDisconnect ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGUID 
)

Definition at line 319 of file rpcserver.c.

322{
325}

Referenced by WlanDisconnect().

◆ _RpcEnumInterfaces()

DWORD _RpcEnumInterfaces ( WLANSVC_RPC_HANDLE  hClientHandle,
PWLAN_INTERFACE_INFO_LIST ppInterfaceList 
)

Definition at line 114 of file rpcserver.c.

117{
118#if GET_IF_ENTRY2_IMPLEMENTED
119 DWORD dwNumInterfaces;
120 DWORD dwResult, dwSize;
121 DWORD dwIndex;
122 MIB_IF_ROW2 IfRow;
124
125 dwResult = GetNumberOfInterfaces(&dwNumInterfaces);
127 if (dwResult != NO_ERROR)
128 {
129 /* set num interfaces to zero when an error occurs */
130 dwNumInterfaces = 0;
131 }
132 else
133 {
134 if (dwNumInterfaces > 1)
135 {
136 /* add extra size for interface */
137 dwSize += (dwNumInterfaces-1) * sizeof(WLAN_INTERFACE_INFO);
138 }
139 }
140
141 /* allocate interface list */
143 if (!InterfaceList)
144 {
146 }
147
148 *ppInterfaceList = InterfaceList;
149 if (!dwNumInterfaces)
150 {
151 return ERROR_SUCCESS;
152 }
153
154 for(dwIndex = 0; dwIndex < dwNumInterfaces; dwIndex++)
155 {
156 ZeroMemory(&IfRow, sizeof(MIB_IF_ROW2));
157 IfRow.InterfaceIndex = dwIndex;
158
159 dwResult = GetIfEntry2(&IfRow);
160 if (dwResult == NO_ERROR)
161 {
162 if (IfRow.Type == IF_TYPE_IEEE80211 && IfRow.InterfaceAndOperStatusFlags.HardwareInterface)
163 {
164 RtlMoveMemory(&InterfaceList->InterfaceInfo[InterfaceList->dwNumberOfItems].InterfaceGuid, &IfRow.InterfaceGuid, sizeof(GUID));
165 wcscpy(InterfaceList->InterfaceInfo[InterfaceList->dwNumberOfItems].strInterfaceDescription, IfRow.Description);
166 //FIXME set state
167 InterfaceList->dwNumberOfItems++;
168 }
169 }
170 }
171
172 return ERROR_SUCCESS;
173#else
176#endif
177}
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
#define NO_ERROR
Definition: dderror.h:5
#define HeapAlloc
Definition: compat.h:733
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD WINAPI GetNumberOfInterfaces(PDWORD pdwNumIf)
#define IF_TYPE_IEEE80211
Definition: ipifcons.h:91
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define RtlMoveMemory(Destination, Source, Length)
Definition: typedefs.h:264
_In_ PUSBD_INTERFACE_LIST_ENTRY InterfaceList
Definition: usbdlib.h:181
#define ZeroMemory
Definition: winbase.h:1712
struct _WLAN_INTERFACE_INFO_LIST WLAN_INTERFACE_INFO_LIST

Referenced by WlanEnumInterfaces().

◆ _RpcGetAvailableNetworkList()

DWORD _RpcGetAvailableNetworkList ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
DWORD  dwFlags,
WLAN_AVAILABLE_NETWORK_LIST **  ppAvailableNetworkList 
)

Definition at line 287 of file rpcserver.c.

292{
295}

◆ _RpcGetFilterList()

DWORD _RpcGetFilterList ( WLANSVC_RPC_HANDLE  hClientHandle,
short  wlanFilterListType,
PDOT11_NETWORK_LIST pNetworkList 
)

Definition at line 461 of file rpcserver.c.

465{
468}

◆ _RpcGetInterfaceCapability()

DWORD _RpcGetInterfaceCapability ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
PWLAN_INTERFACE_CAPABILITY ppCapability 
)

Definition at line 200 of file rpcserver.c.

204{
205 PWLANSVCHANDLE lpWlanSvcHandle;
206
207 lpWlanSvcHandle = WlanSvcGetHandleEntry(hClientHandle);
208 if (!lpWlanSvcHandle)
209 {
211 }
212
215}

◆ _RpcGetNetworkBssList()

DWORD _RpcGetNetworkBssList ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
PDOT11_SSID  pDot11Ssid,
short  dot11BssType,
DWORD  bSecurityEnabled,
LPDWORD  dwBssListSize,
LPBYTE ppWlanBssList 
)

Definition at line 297 of file rpcserver.c.

305{
308}

◆ _RpcGetProfile()

DWORD _RpcGetProfile ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
wchar_t strProfileName,
wchar_t **  pstrProfileXml,
LPDWORD  pdwFlags,
LPDWORD  pdwGrantedAccess 
)

Definition at line 370 of file rpcserver.c.

377{
380}

◆ _RpcGetProfileCustomUserData()

DWORD _RpcGetProfileCustomUserData ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
wchar_t strProfileName,
LPDWORD  dwDataSize,
LPBYTE pData 
)

Definition at line 441 of file rpcserver.c.

447{
450}

◆ _RpcGetProfileKeyInfo()

DWORD _RpcGetProfileKeyInfo ( wchar_t arg_1,
DWORD  arg_2,
const GUID pInterfaceGuid,
wchar_t arg_4,
DWORD  arg_5,
LPDWORD  arg_6,
char arg_7,
LPDWORD  arg_8 
)

Definition at line 551 of file rpcserver.c.

560{
563}

◆ _RpcGetProfileList()

DWORD _RpcGetProfileList ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
PWLAN_PROFILE_INFO_LIST ppProfileList 
)

Definition at line 411 of file rpcserver.c.

415{
418}

◆ _RpcGetSecuritySettings()

DWORD _RpcGetSecuritySettings ( WLANSVC_RPC_HANDLE  hClientHandle,
WLAN_SECURABLE_OBJECT  SecurableObject,
WLAN_OPCODE_VALUE_TYPE pValueType,
wchar_t **  pstrCurrentSDDL,
LPDWORD  pdwGrantedAccess 
)

Definition at line 608 of file rpcserver.c.

614{
617}

◆ _RpcIhvControl()

DWORD _RpcIhvControl ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
DWORD  Type,
DWORD  dwInBufferSize,
LPBYTE  pInBuffer,
DWORD  dwOutBufferSize,
LPBYTE  pOutBuffer,
LPDWORD  pdwBytesReturned 
)

Definition at line 240 of file rpcserver.c.

249{
252}

◆ _RpcIsNetworkSuppressed()

DWORD _RpcIsNetworkSuppressed ( wchar_t arg_1,
DWORD  arg_2,
const GUID pInterfaceGuid,
LPDWORD  arg_4 
)

Definition at line 512 of file rpcserver.c.

517{
520}

◆ _RpcIsUIRequestPending()

DWORD _RpcIsUIRequestPending ( wchar_t arg_1,
const GUID pInterfaceGuid,
struct_C arg_3,
LPDWORD  arg_4 
)

Definition at line 492 of file rpcserver.c.

497{
500}

◆ _RpcOpenHandle()

DWORD _RpcOpenHandle ( wchar_t arg_1,
DWORD  dwClientVersion,
DWORD pdwNegotiatedVersion,
LPWLANSVC_RPC_HANDLE  phClientHandle 
)

Definition at line 67 of file rpcserver.c.

72{
73 PWLANSVCHANDLE lpWlanSvcHandle;
74
75 lpWlanSvcHandle = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WLANSVCHANDLE));
76 if (lpWlanSvcHandle == NULL)
77 {
78 DPRINT1("Failed to allocate Heap!\n");
80 }
81
82 if (dwClientVersion > 2)
83 dwClientVersion = 2;
84
85 if (dwClientVersion < 1)
86 dwClientVersion = 1;
87
88 lpWlanSvcHandle->dwClientVersion = dwClientVersion;
89 *pdwNegotiatedVersion = dwClientVersion;
90
92 *phClientHandle = lpWlanSvcHandle;
93
94 return ERROR_SUCCESS;
95}
#define DPRINT1
Definition: precomp.h:8
LIST_ENTRY WlanSvcHandleListHead
Definition: rpcserver.c:15
#define NULL
Definition: types.h:112
#define InsertTailList(ListHead, Entry)
DWORD dwClientVersion
Definition: precomp.h:21

Referenced by WlanOpenHandle().

◆ _RpcQueryAutoConfigParameter()

DWORD _RpcQueryAutoConfigParameter ( WLANSVC_RPC_HANDLE  hClientHandle,
DWORD  OpCode,
LPDWORD  pdwDataSize,
char **  ppData,
DWORD pWlanOpcodeValueType 
)

Definition at line 189 of file rpcserver.c.

195{
198}

◆ _RpcQueryExtUIRequest()

DWORD _RpcQueryExtUIRequest ( wchar_t arg_1,
GUID arg_2,
GUID arg_3,
short  arg_4,
GUID pInterfaceGuid,
struct_C **  arg_6 
)

Definition at line 530 of file rpcserver.c.

537{
540}

◆ _RpcQueryInterface()

DWORD _RpcQueryInterface ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
long  OpCode,
LPDWORD  pdwDataSize,
LPBYTE ppData,
LPDWORD  pWlanOpcodeValueType 
)

Definition at line 228 of file rpcserver.c.

235{
238}

◆ _RpcQueryPlapCredentials()

DWORD _RpcQueryPlapCredentials ( wchar_t arg_1,
LPDWORD  dwSize,
struct_E **  arg_3,
wchar_t **  arg_4,
GUID pInterfaceGuid,
LPDWORD  arg_6,
LPDWORD  arg_7,
LPDWORD  arg_8,
LPDWORD  arg_9 
)

Definition at line 576 of file rpcserver.c.

586{
589}

◆ _RpcRegisterNotification()

DWORD _RpcRegisterNotification ( WLANSVC_RPC_HANDLE  hClientHandle,
DWORD  arg_2,
LPDWORD  pdwPrevNotifSource 
)

Definition at line 327 of file rpcserver.c.

331{
334}

◆ _RpcRemoveUIForwardingNetworkList()

DWORD _RpcRemoveUIForwardingNetworkList ( wchar_t arg_1,
const GUID pInterfaceGuid 
)

Definition at line 522 of file rpcserver.c.

525{
528}

◆ _RpcRenameProfile()

DWORD _RpcRenameProfile ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
const wchar_t strOldProfileName,
const wchar_t strNewProfileName 
)

Definition at line 391 of file rpcserver.c.

396{
399}

Referenced by WlanRenameProfile().

◆ _RpcSaveTemporaryProfile()

DWORD _RpcSaveTemporaryProfile ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
wchar_t strProfileName,
wchar_t strAllUserProfileSecurity,
DWORD  dwFlags,
BOOL  bOverWrite 
)

Definition at line 480 of file rpcserver.c.

487{
490}

◆ _RpcScan()

DWORD _RpcScan ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
PDOT11_SSID  pDot11Ssid,
PWLAN_RAW_DATA  pIeData 
)

Definition at line 254 of file rpcserver.c.

259{
260 PWLANSVCHANDLE lpWlanSvcHandle;
261
262 lpWlanSvcHandle = WlanSvcGetHandleEntry(hClientHandle);
263 if (!lpWlanSvcHandle)
264 {
266 }
267
268 /*
269 DWORD dwBytesReturned;
270 HANDLE hDevice;
271 ULONG OidCode = OID_802_11_BSSID_LIST_SCAN;
272 PNDIS_802_11_BSSID_LIST pBssIDList;
273
274 DeviceIoControl(hDevice,
275 IOCTL_NDIS_QUERY_GLOBAL_STATS,
276 &OidCode,
277 sizeof(ULONG),
278 NULL,
279 0,
280 &dwBytesReturned,
281 NULL);
282*/
285}

Referenced by WlanScan().

◆ _RpcSetAutoConfigParameter()

DWORD _RpcSetAutoConfigParameter ( WLANSVC_RPC_HANDLE  hClientHandle,
long  OpCode,
DWORD  dwDataSize,
LPBYTE  pData 
)

Definition at line 179 of file rpcserver.c.

184{
187}

◆ _RpcSetFilterList()

DWORD _RpcSetFilterList ( WLANSVC_RPC_HANDLE  hClientHandle,
short  wlanFilterListType,
PDOT11_NETWORK_LIST  pNetworkList 
)

Definition at line 452 of file rpcserver.c.

456{
459}

◆ _RpcSetInterface()

DWORD _RpcSetInterface ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
DWORD  OpCode,
DWORD  dwDataSize,
LPBYTE  pData 
)

Definition at line 217 of file rpcserver.c.

223{
226}

◆ _RpcSetProfile()

DWORD _RpcSetProfile ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
DWORD  dwFlags,
wchar_t strProfileXml,
wchar_t strAllUserProfileSecurity,
BOOL  bOverwrite,
LPDWORD  pdwReasonCode 
)

Definition at line 357 of file rpcserver.c.

365{
368}

◆ _RpcSetProfileCustomUserData()

DWORD _RpcSetProfileCustomUserData ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
wchar_t strProfileName,
DWORD  dwDataSize,
LPBYTE  pData 
)

Definition at line 430 of file rpcserver.c.

436{
439}

◆ _RpcSetProfileEapUserData()

DWORD _RpcSetProfileEapUserData ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
wchar_t strProfileName,
EAP_METHOD_TYPE  MethodType,
DWORD  dwFlags,
DWORD  dwEapUserDataSize,
LPBYTE  pbEapUserData 
)

Definition at line 344 of file rpcserver.c.

352{
355}

◆ _RpcSetProfileList()

DWORD _RpcSetProfileList ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
DWORD  dwItems,
BYTE **  strProfileNames 
)

Definition at line 401 of file rpcserver.c.

406{
409}

◆ _RpcSetProfilePosition()

DWORD _RpcSetProfilePosition ( WLANSVC_RPC_HANDLE  hClientHandle,
const GUID pInterfaceGuid,
wchar_t strProfileName,
DWORD  dwPosition 
)

Definition at line 420 of file rpcserver.c.

425{
428}

◆ _RpcSetPsdIEDataList()

DWORD _RpcSetPsdIEDataList ( WLANSVC_RPC_HANDLE  hClientHandle,
wchar_t strFormat,
DWORD  dwDataListSize,
LPBYTE  pPsdIEDataList 
)

Definition at line 470 of file rpcserver.c.

475{
478}

◆ _RpcSetSecuritySettings()

DWORD _RpcSetSecuritySettings ( WLANSVC_RPC_HANDLE  hClientHandle,
WLAN_SECURABLE_OBJECT  SecurableObject,
const wchar_t strModifiedSDDL 
)

Definition at line 599 of file rpcserver.c.

603{
606}

Referenced by WlanSetSecuritySettings().

◆ _RpcSetUIForwardingNetworkList()

DWORD _RpcSetUIForwardingNetworkList ( wchar_t arg_1,
GUID arg_2,
DWORD  dwSize,
GUID arg_4 
)

Definition at line 502 of file rpcserver.c.

507{
510}

◆ _RpcUIResponse()

DWORD _RpcUIResponse ( wchar_t arg_1,
struct_C arg_2,
struct_D arg_3 
)

Definition at line 542 of file rpcserver.c.

546{
549}

◆ midl_user_allocate()

void __RPC_FAR *__RPC_USER midl_user_allocate ( SIZE_T  len)

Definition at line 619 of file rpcserver.c.

620{
622}
GLenum GLsizei len
Definition: glext.h:6722

◆ midl_user_free()

void __RPC_USER midl_user_free ( void __RPC_FAR ptr)

Definition at line 625 of file rpcserver.c.

626{
628}
static PVOID ptr
Definition: dispmode.c:27

◆ RpcThreadRoutine()

DWORD WINAPI RpcThreadRoutine ( LPVOID  lpParameter)

Definition at line 17 of file rpcserver.c.

18{
20
22
23 Status = RpcServerUseProtseqEpW(L"ncalrpc", 20, L"wlansvc", NULL);
24 if (Status != RPC_S_OK)
25 {
26 DPRINT("RpcServerUseProtseqEpW() failed (Status %lx)\n", Status);
27 return 0;
28 }
29
30 Status = RpcServerRegisterIf(wlansvc_interface_v1_0_s_ifspec, NULL, NULL);
31 if (Status != RPC_S_OK)
32 {
33 DPRINT("RpcServerRegisterIf() failed (Status %lx)\n", Status);
34 return 0;
35 }
36
38 if (Status != RPC_S_OK)
39 {
40 DPRINT("RpcServerListen() failed (Status %lx)\n", Status);
41 }
42
43 DPRINT("RpcServerListen finished\n");
44 return 0;
45}
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
Status
Definition: gdiplustypes.h:25
#define L(x)
Definition: ntvdm.h:50
RPC_STATUS WINAPI RpcServerListen(UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait)
Definition: rpc_server.c:1520
RPC_STATUS WINAPI RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, RPC_MGR_EPV *MgrEpv)
Definition: rpc_server.c:1116
RPC_STATUS WINAPI RpcServerUseProtseqEpW(RPC_WSTR Protseq, UINT MaxCalls, RPC_WSTR Endpoint, LPVOID SecurityDescriptor)
Definition: rpc_server.c:927
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT
Definition: rpcdce.h:122
#define RPC_S_OK
Definition: rpcnterr.h:22
long RPC_STATUS
Definition: rpc.h:52
#define DPRINT
Definition: sndvol32.h:71

Referenced by ServiceInit(), and ServiceMain().

◆ WLANSVC_RPC_HANDLE_rundown()

void __RPC_USER WLANSVC_RPC_HANDLE_rundown ( WLANSVC_RPC_HANDLE  hClientHandle)

Definition at line 631 of file rpcserver.c.

632{
633}

◆ WlanSvcGetHandleEntry()

PWLANSVCHANDLE WlanSvcGetHandleEntry ( LPWLANSVC_RPC_HANDLE  ClientHandle)

Definition at line 47 of file rpcserver.c.

48{
49 PLIST_ENTRY CurrentEntry;
50 PWLANSVCHANDLE lpWlanSvcHandle;
51
52 CurrentEntry = WlanSvcHandleListHead.Flink;
53 while (CurrentEntry != &WlanSvcHandleListHead)
54 {
55 lpWlanSvcHandle = CONTAINING_RECORD(CurrentEntry,
57 WlanSvcHandleListEntry);
58 CurrentEntry = CurrentEntry->Flink;
59
60 if (lpWlanSvcHandle == (PWLANSVCHANDLE) ClientHandle)
61 return lpWlanSvcHandle;
62 }
63
64 return NULL;
65}
Definition: typedefs.h:120
struct _LIST_ENTRY * Flink
Definition: typedefs.h:121
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by _RpcCloseHandle(), _RpcGetInterfaceCapability(), and _RpcScan().

Variable Documentation

◆ WlanSvcHandleListHead

LIST_ENTRY WlanSvcHandleListHead

Definition at line 15 of file rpcserver.c.

Referenced by _RpcOpenHandle(), RpcThreadRoutine(), and WlanSvcGetHandleEntry().