46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
//+--------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1992.
|
|
//
|
|
// File: util.hxx
|
|
//
|
|
// Contents: DRT support functions
|
|
//
|
|
// History: 22-Sep-92 DrewB Created
|
|
//
|
|
//---------------------------------------------------------------
|
|
|
|
#ifndef __UTIL_HXX__
|
|
#define __UTIL_HXX__
|
|
|
|
extern BOOL fExitOnFail;
|
|
|
|
void SetData(void);
|
|
void CleanData(void);
|
|
void UnsetData(void);
|
|
void out(char *fmt, ...);
|
|
void error(int code, char *fmt, ...);
|
|
void errorprint(char *fmt, ...);
|
|
char *OlecsOut(OLECHAR const *ptcs);
|
|
char *ScText(SCODE sc);
|
|
HRESULT Result(HRESULT hr);
|
|
HRESULT IllResult(char *pszText, HRESULT hr);
|
|
void CheckMemory(void);
|
|
void SetDebug(ULONG ulDf, ULONG ulMsf);
|
|
char *VerifyStructure(IStorage *pstg, char *pszStructure);
|
|
char *CreateStructure(IStorage *pstg, char *pszStructure);
|
|
void VerifyStat(STATSTG *pstat, OLECHAR *ptcsName, DWORD type, DWORD grfMode);
|
|
BOOL Exists(OLECHAR *file);
|
|
ULONG Length(OLECHAR *file);
|
|
void ForceDirect(void);
|
|
void ForceTransacted(void);
|
|
void Unforce(void);
|
|
BOOL IsEqualTime(FILETIME ttTime, FILETIME ttCheck);
|
|
void GetFullPath(OLECHAR *file, OLECHAR *path);
|
|
HRESULT drtMemAlloc(ULONG ulcb, void **ppv);
|
|
void drtMemFree(void *pv);
|
|
char *GuidText(GUID const *pguid);
|
|
|
|
#endif // #ifndef __UTIL_HXX__
|