Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WlanDeviceServiceCommand function (wlanapi.h)

Allows an original equipment manufacturer (OEM) or independent hardware vendor (IHV) component to communicate with a device service on a particular wireless LAN interface.

Syntax

DWORD WlanDeviceServiceCommand(
 [in] HANDLE hClientHandle,
 [in] const GUID *pInterfaceGuid,
 [in] LPGUID pDeviceServiceGuid,
 [in] DWORD dwOpCode,
 [in] DWORD dwInBufferSize,
 [in] PVOID pInBuffer,
 [in] DWORD dwOutBufferSize,
 [in, out, optional] PVOID pOutBuffer,
 [out] PDWORD pdwBytesReturned
);

Parameters

[in] hClientHandle

Type: HANDLE

The client's session handle, obtained by a previous call to the WlanOpenHandle function.

[in] pInterfaceGuid

Type: CONST GUID*

A pointer to the GUID of the wireless LAN interface to be queried. You can determine the GUID of each wireless LAN interface enabled on a local computer by using the WlanEnumInterfaces function.

[in] pDeviceServiceGuid

Type: GUID*

The GUID identifying the device service for this command.

[in] dwOpCode

Type: DWORD

The operational code identifying the operation to be performed on the device service.

[in] dwInBufferSize

Type: DWORD

The size, in bytes, of the input buffer.

[in] pInBuffer

Type: PVOID

A generic buffer for command input.

[in] dwOutBufferSize

Type: DWORD

The size, in bytes, of the output buffer.

[in, out, optional] pOutBuffer

Type: PVOID

A generic buffer for command output.

[out] pdwBytesReturned

Type: PDWORD

The number of bytes returned.

Return value

Type: HRESULT

If the function succeeds, the return value is ERROR_SUCCESS. If the function fails with ERROR_ACCESS_DENIED, then the caller doesn't have sufficient permissions to perform this operation. The caller needs to either have admin privilege, or needs to be a UMDF driver.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header wlanapi.h
Library OneCoreUAP.Lib

Feedback

Was this page helpful?

Additional resources