Edit

Share via


HS_HOST_ALLOCATE_MEMORY function

Wi-Fi Hotspot Offloading deprecation note

Important

Starting in Windows 10, version 1709, the Wi-Fi Hotspot Offloading feature is deprecated and should not be used. Instead, we recommend writing a UWP app and using the Wi-Fi Hotspot Authentication API (Windows.Networking.NetworkOperators).

For a code sample and more info, see the Wi-Fi hotspot authentication sample.

The HS_HOST_ALLOCATE_MEMORY function returns an amount of memory specified by the caller.

Syntax

 (WINAPI *HS_HOST_ALLOCATE_MEMORY)(
  _In_  HANDLE                        hPluginContext,
  _In_  DWORD                         dwByteCount,
  _Out_ _bcount (dwByteCount) LPVOID* ppvBuffer
);

Parameters

hPluginContext [in]
Context handle for the plugin making the call to this function.

dwByteCount [in]
The amount of memory to allocate.

ppvBuffer [out]
Pointer to the buffer that contains the allocated memory.

Return value

This function is called by the plugin to communicate with the host and does not return a value.

Requirements

Version

Windows 10 Mobile

Header

Hotspotoffloadplugin.h (include Hotspotoffloadplugin.h)