In the example provider component, a code example showing memory allocation and freeing is in memory.cpp. Supported routines are listed in the following table.
| Item | Description |
|---|---|
| AllocProvMem | Allocate specified memory. |
| FreeProvMem | Free memory indicated. |
| ReallocProvMem | Allocate contiguous memory. |
| AllocProvStr | Allocate an LPWSTR string. |
| FreeProvStr | Free string if not already freed. |
| ReallocProvStr | Allocate contiguous memory. |
| ProvAllocString | Verifies string and first parameter. If OK, then performs allocation. |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
