Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
564 B

  1. #include "dpsp.h"
  2. #undef DPF_MODNAME
  3. #define DPF_MODNAME "HandleMessage"
  4. // this function is called with dpws lock taken
  5. HRESULT HandleServerMessage(LPGLOBALDATA pgd, SOCKET sSocket, LPBYTE pBuffer, DWORD dwSize)
  6. {
  7. LPMSG_GENERIC pMessage = (LPMSG_GENERIC) pBuffer;
  8. DWORD dwType;
  9. DWORD dwVersion;
  10. HRESULT hr=DP_OK;
  11. ASSERT(pMessage);
  12. dwType = GET_MESSAGE_COMMAND(pMessage);
  13. dwVersion = GET_MESSAGE_VERSION(pMessage);
  14. switch (dwType) {
  15. default:
  16. DPF(0,"dpwsock received unrecognized message of type 0x%08x\n",dwType);
  17. break;
  18. }
  19. return hr;
  20. }