home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / DUEL / UTIL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  885 b   |  26 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1996 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.