ReactOS 0.4.16-dev-297-gc569aee
profile.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <wlansvc_c.h>
#include <wine/debug.h>
Include dependency graph for profile.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define _INC_WINDOWS
 
#define COM_NO_WINDOWS_H
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (wlanapi)
 
DWORD WINAPI WlanDeleteProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, PVOID pReserved)
 
DWORD WINAPI WlanRenameProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strOldProfileName, IN LPCWSTR strNewProfileName, PVOID pReserved)
 
DWORD WINAPI WlanGetProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, PVOID pReserved, OUT LPWSTR *pstrProfileXml, DWORD *pdwFlags, PDWORD pdwGrantedAccess)
 
DWORD WINAPI WlanSetProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN DWORD dwFlags, IN LPCWSTR strProfileXml, LPCWSTR strAllUserProfileSecurity, IN BOOL bOverwrite, PVOID pReserved, OUT DWORD *pdwReasonCode)
 
DWORD WINAPI WlanGetProfileCustomUserData (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, PVOID pReserved, OUT DWORD *pdwDataSize, OUT PBYTE *ppData)
 
DWORD WINAPI WlanSetProfileCustomUserData (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, IN DWORD dwDataSize, IN const PBYTE pData, PVOID pReserved)
 
DWORD WINAPI WlanGetProfileList (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, PVOID pReserved, OUT PWLAN_PROFILE_INFO_LIST *ppProfileList)
 
DWORD WINAPI WlanSetProfileList (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, DWORD dwItems, IN LPCWSTR *strProfileNames, PVOID pReserved)
 

Macro Definition Documentation

◆ _INC_WINDOWS

#define _INC_WINDOWS

Definition at line 24 of file profile.c.

◆ COM_NO_WINDOWS_H

#define COM_NO_WINDOWS_H

Definition at line 25 of file profile.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 23 of file profile.c.

Function Documentation

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( wlanapi  )

◆ WlanDeleteProfile()

DWORD WINAPI WlanDeleteProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
PVOID  pReserved 
)

Definition at line 37 of file profile.c.

41{
42 DWORD dwResult = ERROR_SUCCESS;
43
44 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL))
46
48 {
49 dwResult = _RpcDeleteProfile(hClientHandle, pInterfaceGuid, strProfileName);
50 }
52 {
53 dwResult = RpcExceptionCode();
54 }
56
57 return dwResult;
58}
DWORD _RpcDeleteProfile(WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const wchar_t *strProfileName)
Definition: rpcserver.c:382
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
unsigned long DWORD
Definition: ntddk_ex.h:95
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
#define RpcEndExcept
Definition: rpc.h:128
#define RpcTryExcept
Definition: rpc.h:126
#define RpcExcept(expr)
Definition: rpc.h:127
#define RpcExceptionCode()
Definition: rpc.h:132

Referenced by WlanDeleteProfile_test().

◆ WlanGetProfile()

DWORD WINAPI WlanGetProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
PVOID  pReserved,
OUT LPWSTR pstrProfileXml,
DWORD pdwFlags,
PDWORD  pdwGrantedAccess 
)

Definition at line 88 of file profile.c.

95{
96 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pstrProfileXml == NULL))
98
100 return ERROR_SUCCESS;
101}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15

Referenced by WlanGetProfile_test().

◆ WlanGetProfileCustomUserData()

DWORD WINAPI WlanGetProfileCustomUserData ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
PVOID  pReserved,
OUT DWORD pdwDataSize,
OUT PBYTE ppData 
)

Definition at line 123 of file profile.c.

129{
130 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL))
132
134 return ERROR_SUCCESS;
135}

◆ WlanGetProfileList()

DWORD WINAPI WlanGetProfileList ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
PVOID  pReserved,
OUT PWLAN_PROFILE_INFO_LIST ppProfileList 
)

Definition at line 158 of file profile.c.

162{
163 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (ppProfileList == NULL))
165
167 return ERROR_SUCCESS;
168}

◆ WlanRenameProfile()

DWORD WINAPI WlanRenameProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strOldProfileName,
IN LPCWSTR  strNewProfileName,
PVOID  pReserved 
)

Definition at line 62 of file profile.c.

67{
68 DWORD dwResult = ERROR_SUCCESS;
69
70 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strOldProfileName == NULL) || (strNewProfileName == NULL))
72
74 {
75 dwResult = _RpcRenameProfile(hClientHandle, pInterfaceGuid, strOldProfileName, strNewProfileName);
76 }
78 {
79 dwResult = RpcExceptionCode();
80 }
82
83 return dwResult;
84}
DWORD _RpcRenameProfile(WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const wchar_t *strOldProfileName, const wchar_t *strNewProfileName)
Definition: rpcserver.c:391

Referenced by WlanRenameProfile_test().

◆ WlanSetProfile()

DWORD WINAPI WlanSetProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN DWORD  dwFlags,
IN LPCWSTR  strProfileXml,
LPCWSTR  strAllUserProfileSecurity,
IN BOOL  bOverwrite,
PVOID  pReserved,
OUT DWORD pdwReasonCode 
)

Definition at line 105 of file profile.c.

113{
114 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileXml == NULL) || (pdwReasonCode == NULL))
116
118 return ERROR_SUCCESS;
119}

◆ WlanSetProfileCustomUserData()

DWORD WINAPI WlanSetProfileCustomUserData ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
IN DWORD  dwDataSize,
IN const PBYTE  pData,
PVOID  pReserved 
)

Definition at line 139 of file profile.c.

145{
146 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL))
148
149 if ((dwDataSize != 0) && (pData == NULL))
151
153 return ERROR_SUCCESS;
154}
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1830

◆ WlanSetProfileList()

DWORD WINAPI WlanSetProfileList ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
DWORD  dwItems,
IN LPCWSTR strProfileNames,
PVOID  pReserved 
)

Definition at line 172 of file profile.c.

177{
178 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileNames == NULL) || (dwItems == 0))
180
182 return ERROR_SUCCESS;
183}