Leaked source code of windows server 2003
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.

38 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // util.h
  4. //
  5. // Header file for utility functions. Downloaded sample code
  6. // from http://hoohoo.ncsa.uiuc.edu/cgi
  7. //
  8. // Copyright (c) 1997-1998 Microsoft Corporation
  9. // All rights reserved.
  10. //
  11. // Authors:
  12. // byao Baogang Yao
  13. //
  14. // History:
  15. // 01/23/97 byao Created
  16. // 09/02/99 quintinb Created Header
  17. //
  18. //----------------------------------------------------------------------------
  19. #ifndef _UTIL_INCL_
  20. #define _UTIL_INCL_
  21. #define LF 10
  22. #define CR 13
  23. void GetWord(char *pszWord, char *pszLine, char cStopChar, int nMaxWordLen);
  24. void UnEscapeURL(char *pszURL);
  25. void LogDebugMessage(const char *pszFormat, ...);
  26. BOOL GetRegEntry(HKEY hKeyType,
  27. const char* pszSubkey,
  28. const char* pszKeyName,
  29. DWORD dwRegType,
  30. const BYTE* lpbDataIn,
  31. DWORD cbDataIn,
  32. BYTE* lpbDataOut,
  33. LPDWORD pcbDataOut);
  34. #endif