SendHandler function
Type 3
The handler function of Type 3 will be called when a client request something that starts with the protocols that the function AddinData sended.
The handler function doesn't have to be exported, the AddinData function sends the address of this function. It is able to change all the data in the pointers.
Syntax
SendHandler(
SOCKET Client,
LPTSTR SendData,
DWORD SendDataSize,
DWORD HandleReturn);
Parameters
Client
A descriptor identifying a connected socket that was made connecting to a socket.
SendData
A pointer to a pointer to a NULL terminated string the contains all the data that will be send.
The was located with function LocalAlloc, when the function need more size please DO NOT RELEASE THE MEMMORY, just get a new pointer calling LocalAlloc and replace the pointer.
SendDataSize
A pointer to the size of the SendedData string.