I'm having trouble with the LPBYTE param of this API.
I want to move text from my dialog based application to this api to send.

CString buffer;
m_cSendText.GetWindowText(buffer);

nasStatus = NetMessageBufferSend(NULL,
awcToNameW,
awcFromNameW,
(LPBYTE)&buffer,
m_cSendText.GetLength());
But I'm getting junk in the message box. Any suggestions?