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.

36 lines
926 B

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