End Google Ads 201810 - BS.net 01 --> Hello

Looking at different examples online, it all says the lpBuffer parameter has to be
a LPVOID (LPSTR).

Is it possible to allocate a fixed memory buffer like a,

char pBuffer[512];

In that case do i need to call LocalFree() function?

Can anyone show me how to use that? I wanted to make sure i allocate the memory on compile time rather than on run time.