home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / winsock / dt_dll / huerror.h < prev    next >
Text File  |  1997-09-21  |  662b  |  37 lines

  1. /*++
  2.  
  3.   Copyright (c) 1995 Intel Corp
  4.  
  5.   File Name:
  6.  
  7.     huerror.cpp
  8.  
  9.   Abstract:
  10.  
  11.     Header file for error functions.
  12.  
  13. --*/
  14.  
  15. #ifndef _ERRORH_
  16. #define _ERRORH_
  17.  
  18. #include <stdarg.h>
  19.  
  20. const int ERRORSTART = 0x100;
  21.  
  22. typedef enum {  ENONE     = ERRORSTART,
  23.                 OTHERERROR,
  24.                 ALLOCERROR,
  25.                 INVALIDARG,
  26.                 OBJNOTINIT,
  27.         OBJEFFERROR,  // Object effeciency error.
  28.         ALREADYCONN,
  29.         ALREADYLIST
  30.              } ErrorCode_e;
  31.  
  32. void        HUSetLastError(ErrorCode_e ErrorCode);
  33. ErrorCode_e HUGetLastError();
  34. void        HUPrintError(char *func,ErrorCode_e ErrorCode = ENONE);
  35.  
  36. #endif
  37.