IWCNDevice::GetVendorExtension method (wcndevice.h)

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

Syntax

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

Parameters

[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
S_OK
The vendor extension was retrieved successfully.
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
The vendor extension specified is not available.
HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
The buffer specified by pbBuffer is not large enough to contain the returned vendor extension.

Remarks

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.

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