home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / duel / util.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-15  |  858 b   |  26 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File:    util.h
  6.  *  Content:    miscellaneous utilities include file
  7.  *
  8.  *
  9.  ***************************************************************************/
  10.  
  11. #include <windows.h>
  12.  
  13. #define GUIDSTR_MAX 38
  14. #define GUID_STRING_SIZE 64
  15.  
  16. int        StringFromGUID(GUID *lpguid, LPWSTR lpsz);
  17. BOOL    IsEqualGuid(GUID *lpguid1, LPGUID lpguid2);
  18. int        GetDigit(LPSTR lpstr);
  19. void    ConvertField(LPBYTE lpByte,LPSTR * ppStr,int iFieldSize,BOOL fRightToLeft);
  20. HRESULT GUIDFromString(LPWSTR lpWStr, GUID * pGuid);
  21. int        WideToAnsi(LPSTR lpStr,LPWSTR lpWStr,int cchStr);
  22. int        AnsiToWide(LPWSTR lpWStr,LPSTR lpStr,int cchWStr);
  23. int        randInt( int low, int high );
  24. double    randDouble( double low, double high );
  25.  
  26.