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. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: util.hxx
  7. //
  8. // Contents: DRT support functions
  9. //
  10. //---------------------------------------------------------------
  11. #ifndef __UTIL_HXX__
  12. #define __UTIL_HXX__
  13. extern BOOL fExitOnFail;
  14. void SetData(void);
  15. void CleanData(void);
  16. void UnsetData(void);
  17. void out(char *fmt, ...);
  18. void error(int code, char *fmt, ...);
  19. void errorprint(char *fmt, ...);
  20. char *OlecsOut(OLECHAR const *ptcs);
  21. char *ScText(SCODE sc);
  22. HRESULT Result(HRESULT hr);
  23. HRESULT IllResult(char *pszText, HRESULT hr);
  24. char *VerifyStructure(IStorage *pstg, char *pszStructure);
  25. char *CreateStructure(IStorage *pstg, char *pszStructure);
  26. void VerifyStat(STATSTG *pstat, OLECHAR *ptcsName, DWORD type, DWORD grfMode);
  27. BOOL Exists(OLECHAR *file);
  28. ULONG Length(OLECHAR *file);
  29. BOOL IsEqualTime(FILETIME ttTime, FILETIME ttCheck);
  30. void GetFullPath(OLECHAR *file, OLECHAR *path, int len);
  31. HRESULT drtMemAlloc(ULONG ulcb, void **ppv);
  32. void drtMemFree(void *pv);
  33. char *GuidText(GUID const *pguid);
  34. #endif // #ifndef __UTIL_HXX__