Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

dxutil.h File Reference

Go to the source code of this file.

Defines

#define SAFE_DELETE(p)   { if(p) { delete (p); (p)=NULL; } }
#define SAFE_DELETE_ARRAY(p)   { if(p) { delete[] (p); (p)=NULL; } }
#define SAFE_RELEASE(p)   { if(p) { (p)->Release(); (p)=NULL; } }
#define DXTRACE   sizeof
#define DEBUG_MSG(str)   (0L)

Enumerations

enum  TIMER_COMMAND {
  TIMER_RESET, TIMER_START, TIMER_STOP, TIMER_ADVANCE,
  TIMER_GETABSOLUTETIME, TIMER_GETAPPTIME, TIMER_GETELAPSEDTIME
}

Functions

const TCHAR * DXUtil_GetDXSDKMediaPath ()
HRESULT DXUtil_FindMediaFile (TCHAR *strPath, TCHAR *strFilename)
HRESULT DXUtil_WriteStringRegKey (HKEY hKey, TCHAR *strRegName, TCHAR *strValue)
HRESULT DXUtil_WriteIntRegKey (HKEY hKey, TCHAR *strRegName, DWORD dwValue)
HRESULT DXUtil_WriteGuidRegKey (HKEY hKey, TCHAR *strRegName, GUID guidValue)
HRESULT DXUtil_WriteBoolRegKey (HKEY hKey, TCHAR *strRegName, BOOL bValue)
HRESULT DXUtil_ReadStringRegKey (HKEY hKey, TCHAR *strRegName, TCHAR *strValue, DWORD dwLength, TCHAR *strDefault)
HRESULT DXUtil_ReadIntRegKey (HKEY hKey, TCHAR *strRegName, DWORD *pdwValue, DWORD dwDefault)
HRESULT DXUtil_ReadGuidRegKey (HKEY hKey, TCHAR *strRegName, GUID *pGuidValue, GUID &guidDefault)
HRESULT DXUtil_ReadBoolRegKey (HKEY hKey, TCHAR *strRegName, BOOL *pbValue, BOOL bDefault)
FLOAT __stdcall DXUtil_Timer (TIMER_COMMAND command)
VOID DXUtil_ConvertAnsiStringToWide (WCHAR *wstrDestination, const CHAR *strSource, int cchDestChar=-1)
VOID DXUtil_ConvertWideStringToAnsi (CHAR *strDestination, const WCHAR *wstrSource, int cchDestChar=-1)
VOID DXUtil_ConvertGenericStringToAnsi (CHAR *strDestination, const TCHAR *tstrSource, int cchDestChar=-1)
VOID DXUtil_ConvertGenericStringToWide (WCHAR *wstrDestination, const TCHAR *tstrSource, int cchDestChar=-1)
VOID DXUtil_ConvertAnsiStringToGeneric (TCHAR *tstrDestination, const CHAR *strSource, int cchDestChar=-1)
VOID DXUtil_ConvertWideStringToGeneric (TCHAR *tstrDestination, const WCHAR *wstrSource, int cchDestChar=-1)
VOID DXUtil_ConvertGUIDToString (const GUID *pGuidIn, TCHAR *strOut)
BOOL DXUtil_ConvertStringToGUID (const TCHAR *strIn, GUID *pGuidOut)
VOID DXUtil_Trace (TCHAR *strMsg,...)
HRESULT _DbgOut (TCHAR *, DWORD, HRESULT, TCHAR *)


Define Documentation

#define DEBUG_MSG str       (0L)
 

#define DXTRACE   sizeof
 

#define SAFE_DELETE      { if(p) { delete (p); (p)=NULL; } }
 

#define SAFE_DELETE_ARRAY      { if(p) { delete[] (p); (p)=NULL; } }
 

#define SAFE_RELEASE      { if(p) { (p)->Release(); (p)=NULL; } }
 


Enumeration Type Documentation

enum TIMER_COMMAND
 

Enumeration values:
TIMER_RESET 
TIMER_START 
TIMER_STOP 
TIMER_ADVANCE 
TIMER_GETABSOLUTETIME 
TIMER_GETAPPTIME 
TIMER_GETELAPSEDTIME 


Function Documentation

VOID DXUtil_ConvertAnsiStringToGeneric TCHAR *    tstrDestination,
const CHAR *    strSource,
int    cchDestChar = -1
 

VOID DXUtil_ConvertAnsiStringToWide WCHAR *    wstrDestination,
const CHAR *    strSource,
int    cchDestChar = -1
 

VOID DXUtil_ConvertGUIDToString const GUID *    pGuidIn,
TCHAR *    strOut
 

VOID DXUtil_ConvertGenericStringToAnsi CHAR *    strDestination,
const TCHAR *    tstrSource,
int    cchDestChar = -1
 

VOID DXUtil_ConvertGenericStringToWide WCHAR *    wstrDestination,
const TCHAR *    tstrSource,
int    cchDestChar = -1
 

BOOL DXUtil_ConvertStringToGUID const TCHAR *    strIn,
GUID *    pGuidOut
 

VOID DXUtil_ConvertWideStringToAnsi CHAR *    strDestination,
const WCHAR *    wstrSource,
int    cchDestChar = -1
 

VOID DXUtil_ConvertWideStringToGeneric TCHAR *    tstrDestination,
const WCHAR *    wstrSource,
int    cchDestChar = -1
 

HRESULT DXUtil_FindMediaFile TCHAR *    strPath,
TCHAR *    strFilename
 

const TCHAR* DXUtil_GetDXSDKMediaPath  
 

HRESULT DXUtil_ReadBoolRegKey HKEY    hKey,
TCHAR *    strRegName,
BOOL *    pbValue,
BOOL    bDefault
 

HRESULT DXUtil_ReadGuidRegKey HKEY    hKey,
TCHAR *    strRegName,
GUID *    pGuidValue,
GUID &    guidDefault
 

HRESULT DXUtil_ReadIntRegKey HKEY    hKey,
TCHAR *    strRegName,
DWORD *    pdwValue,
DWORD    dwDefault
 

HRESULT DXUtil_ReadStringRegKey HKEY    hKey,
TCHAR *    strRegName,
TCHAR *    strValue,
DWORD    dwLength,
TCHAR *    strDefault
 

FLOAT __stdcall DXUtil_Timer TIMER_COMMAND    command
 

VOID DXUtil_Trace TCHAR *    strMsg,
...   
 

HRESULT DXUtil_WriteBoolRegKey HKEY    hKey,
TCHAR *    strRegName,
BOOL    bValue
 

HRESULT DXUtil_WriteGuidRegKey HKEY    hKey,
TCHAR *    strRegName,
GUID    guidValue
 

HRESULT DXUtil_WriteIntRegKey HKEY    hKey,
TCHAR *    strRegName,
DWORD    dwValue
 

HRESULT DXUtil_WriteStringRegKey HKEY    hKey,
TCHAR *    strRegName,
TCHAR *    strValue
 

HRESULT _DbgOut TCHAR *    strFile,
DWORD    dwLine,
HRESULT    hr,
TCHAR *    strMsg
 


Generated on Thu May 23 17:51:00 2002 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001