IWCNDevice::SetVendorExtension method (wcndevice.h)

The IWCNDevice::SetVendorExtension method queues a vendor extension for use in the pending session. This function may only be called prior to IWCNDevice::Connect.

Syntax

HRESULT SetVendorExtension(
  [in] const WCN_VENDOR_EXTENSION_SPEC *pVendorExtSpec,
  [in] DWORD                           cbBuffer,
  [in] const BYTE []                   pbBuffer
);

Parameters

[in] pVendorExtSpec

A pointer to a WCN_VENDOR_EXTENSION_SPEC structure that contains the vendor extension specification.

[in] cbBuffer

The number of bytes contained in pbBuffer.

[in] pbBuffer

Pointer to a buffer that contains the data to set in the vendor extension.

Return value

This method can return one of these values.

Return code Description
S_OK
The vendor extension will be sent in the pending session.
E_INVALIDARG
The specified WCN_VENDOR_EXTENSION_SPEC contains an illegal VendorID, sub-type, or flag.
HRESULT_FROM_WIN32(ERROR_IMPLEMENTATION_LIMIT)
The number of vendor extensions has exceeded the current implementation limit, which is currently equal to 25 vendor extensions per session.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header wcndevice.h

See also

IWCNDevice

IWCNDevice::Connect

WCN_VENDOR_EXTENSION_SPEC