I haven't figured out how to dereference pointers passed in as arguments
to Win32 API. For example, in the following call (in C) to NetStatisticsGet
API (which may be broken on NT, but that is not the point here).
ret = NetStatisticsGet (
(char *)is_workstation ? L"LanmanWorkstation" : L"LanmanServer"),
The last parameter lpBuffer is a pointer to a pointer.
The API call internally allocates memory and sets the value of the pointer
variable whose pointer you have passed in. It is your responsibility to free
memory using ...