home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / COM / jexegen / stub / util.h < prev   
Encoding:
C/C++ Source or Header  |  2000-05-04  |  655 b   |  40 lines

  1. /*++
  2.  
  3. Copyright (c) 1999  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     util.h
  8.  
  9. Abstract:
  10.  
  11.     utility methods and macros.
  12.  
  13. --*/
  14.  
  15. #ifndef __DLLSTUB_UTIL_H
  16. #define __DLLSTUB_UTIL_H
  17.  
  18. #ifdef DEBUG
  19. #include <assert.h>
  20. #endif
  21.  
  22.  
  23. VOID    GUID2StringA(REFGUID rguid, LPSTR lpsz);
  24. VOID    AnsiTranslateChars(LPSTR psz,CHAR chFrom,CHAR chTo);
  25.  
  26.  
  27. #define ARRAY_ELEMENTS(rg)  (sizeof(rg) / sizeof((rg)[0]))
  28.  
  29. #ifndef IS_INTRESOURCE
  30. #define IS_INTRESOURCE(_r)  (((ULONG_PTR)(_r) >> 16) == 0)
  31. #endif
  32.  
  33. #ifdef DEBUG
  34. #define ASSERT( expr )  assert( expr )
  35. #else
  36. #define ASSERT( expr )  ((void)0)
  37. #endif
  38.  
  39.  
  40. #endif  // #ifndef __DLLSTUB_UTIL_H