windows-nt/Source/XPSP1/NT/net/tcpip/tpipv6/dplayip6/handler.c

29 lines
564 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include "dpsp.h"
#undef DPF_MODNAME
#define DPF_MODNAME "HandleMessage"
// this function is called with dpws lock taken
HRESULT HandleServerMessage(LPGLOBALDATA pgd, SOCKET sSocket, LPBYTE pBuffer, DWORD dwSize)
{
LPMSG_GENERIC pMessage = (LPMSG_GENERIC) pBuffer;
DWORD dwType;
DWORD dwVersion;
HRESULT hr=DP_OK;
ASSERT(pMessage);
dwType = GET_MESSAGE_COMMAND(pMessage);
dwVersion = GET_MESSAGE_VERSION(pMessage);
switch (dwType) {
default:
DPF(0,"dpwsock received unrecognized message of type 0x%08x\n",dwType);
break;
}
return hr;
}