IWCNDevice::GetVendorExtension method (wcndevice.h)

The GetVendorExtension method gets a cached vendor extension from the device.


HRESULT GetVendorExtension(
  [in]  const WCN_VENDOR_EXTENSION_SPEC *pVendorExtSpec,
  [in]  DWORD                           dwMaxBufferSize,
  [out] BYTE []                         pbBuffer,
  [out] DWORD                           *pdwBufferUsed


[in] pVendorExtSpec

A pointer to a user-defined WCN_VENDOR_EXTENSION_SPEC structure that describes the vendor extension to query for.

[in] dwMaxBufferSize

The size, in bytes, of pbBuffer.

[out] pbBuffer

An allocated buffer that, on return, contains the contents of the vendor extension.

[out] pdwBufferUsed

On return, contains the size of the vendor extension in bytes.

Return value

This method can return one of these values.

Return code Description
The vendor extension was retrieved successfully.
The vendor extension specified is not available.
The buffer specified by pbBuffer is not large enough to contain the returned vendor extension.


To query the size of a vendor extension, you can pass a value of 0 with the dwMaxBufferSize parameter, and pdwBufferUsed will receive the size.


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

See also