home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September / CHIP_CD_2004-09.iso / software / custombar / CustomBar_trial_100_setup.exe / UniTrans.h < prev    next >
C/C++ Source or Header  |  2004-06-08  |  2KB  |  55 lines

  1. /*   
  2.  ----------------------------------------------------------------------
  3. | CUSTOMBAR PLUGIN SDK
  4. |
  5. | This library is distributed in the hope that it will be useful,
  6. | but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. |
  9. | Copyright (C) 2002-2004 Lizardsoft. All Rights Reserved.
  10.  ---------------------------------------------------------------------- */
  11.  
  12. #if !defined(UNITRANS_H__37CC3310_6331_4CD7_B7FD_B0sdfdsfdsfsd5827386__INCLUDED_)
  13. #define UNITRANS_H__37CC3310_6331_4CD7_B7FD_B0sdfdsfdsfsd5827386__INCLUDED_
  14.  
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18.  
  19. #include "DataUtil.h"
  20.  
  21. DATALIB_API void *UT_Create();
  22. DATALIB_API void UT_Destroy( void *ptrObj );
  23.  
  24. DATALIB_API int UT_SetType( void *ptrObj, int NewType );
  25. DATALIB_API int UT_GetType( void *ptrObj );
  26.  
  27. DATALIB_API int      UT_GetInt( void *ptrObj );
  28. DATALIB_API float    UT_GetFloat( void *ptrObj );
  29. DATALIB_API COLORREF UT_GetColor( void *ptrObj );
  30.  
  31. DATALIB_API const TCHAR *UT_GetConstStr( void *ptrObj, int *Len );
  32. DATALIB_API const RECT  *UT_GetConstRect( void *ptrObj );
  33.  
  34. DATALIB_API char *UT_GetWriteStr( void *ptrObj, int *Len );
  35. DATALIB_API RECT  *UT_GetWriteRect( void *ptrObj );
  36. DATALIB_API int UT_ReallocStr( void *ptrObj, int NewLen );
  37.  
  38. DATALIB_API int UT_GetAsInt( void *ptrObj, int *Val );
  39.  
  40. DATALIB_API int UT_SetVal_Uni( void *ptrObj, void *NewVal, int Flags );
  41. DATALIB_API int UT_SetVal_Char( void *ptrObj, char *NewVal, int Flags );
  42. DATALIB_API int UT_SetVal_Int( void *ptrObj, int NewVal, int Flags );
  43. DATALIB_API int UT_SetVal_Float( void *ptrObj, float NewVal, int Flags );
  44. DATALIB_API int UT_SetVal_Color( void *ptrObj, COLORREF *NewVal, int Flags );
  45. DATALIB_API int UT_SetVal_Rect( void *ptrObj, RECT *NewVal, int Flags );
  46.  
  47. DATALIB_API int UT_SetInt  ( void *ptrObj, int NewValue );
  48. DATALIB_API int UT_SetFloat( void *ptrObj, float NewValue );
  49. DATALIB_API int UT_SetStr  ( void *ptrObj, const TCHAR *NewStr, int Len );
  50.  
  51. DATALIB_API int  UT_Lock( void *ptrObj );
  52. DATALIB_API int  UT_Unlock( void *ptrObj );
  53. DATALIB_API bool UT_IsLocked( void *ptrObj );
  54.  
  55. #endif