Mick_2002
Are you fimiliar with the NetMessageBufferSend API?

I have a dialog based app with 2 edit fields on it. And a control variables called:
m_cCompName.
m_cSendText.

LPWSTR awcToNameW;
LPWSTR awcFromNameW;
CString ComputerName;

awcToNameW = T2W(ComputerName);
awcFromNameW = T2W(ComputerName);
NET_API_STATUS nasStatus;

nasStatus = NetMessageBufferSend(NULL,
awcToNameW,
awcFromNameW,
(LPBYTE)(LPCTSTR)TextSend,
TextSend.GetLength());



So what am I doing wrong. This should work. Right?

Do you ahve any suggestions?