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.

45 lines
1.3 KiB

  1. //+--------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: util.hxx
  7. //
  8. // Contents: DRT support functions
  9. //
  10. // History: 22-Sep-92 DrewB Created
  11. //
  12. //---------------------------------------------------------------
  13. #ifndef __UTIL_HXX__
  14. #define __UTIL_HXX__
  15. extern BOOL fExitOnFail;
  16. void SetData(void);
  17. void CleanData(void);
  18. void UnsetData(void);
  19. void out(char *fmt, ...);
  20. void error(int code, char *fmt, ...);
  21. void errorprint(char *fmt, ...);
  22. char *OlecsOut(OLECHAR const *ptcs);
  23. char *ScText(SCODE sc);
  24. HRESULT Result(HRESULT hr);
  25. HRESULT IllResult(char *pszText, HRESULT hr);
  26. void CheckMemory(void);
  27. void SetDebug(ULONG ulDf, ULONG ulMsf);
  28. char *VerifyStructure(IStorage *pstg, char *pszStructure);
  29. char *CreateStructure(IStorage *pstg, char *pszStructure);
  30. void VerifyStat(STATSTG *pstat, OLECHAR *ptcsName, DWORD type, DWORD grfMode);
  31. BOOL Exists(OLECHAR *file);
  32. ULONG Length(OLECHAR *file);
  33. void ForceDirect(void);
  34. void ForceTransacted(void);
  35. void Unforce(void);
  36. BOOL IsEqualTime(FILETIME ttTime, FILETIME ttCheck);
  37. void GetFullPath(OLECHAR *file, OLECHAR *path);
  38. HRESULT drtMemAlloc(ULONG ulcb, void **ppv);
  39. void drtMemFree(void *pv);
  40. char *GuidText(GUID const *pguid);
  41. #endif // #ifndef __UTIL_HXX__