home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Source / util.h < prev   
C/C++ Source or Header  |  2003-05-09  |  1KB  |  29 lines

  1. #ifndef _UTIL_H_
  2. #define _UTIL_H_
  3.  
  4. #include "ResourceEditor.h"
  5.  
  6. // these are the standard pause-before-quit shit.
  7. extern int g_dopause;
  8. extern void dopause(void);
  9.  
  10. // Adds the bitmap in filename using resource editor re as id id.
  11. // If width or height are specified it will also make sure the bitmap is in that size
  12. int update_bitmap(CResourceEditor* re, WORD id, char* filename, int width=0, int height=0, int maxbpp=0);
  13.  
  14. // reads icon file filename and places its icons in the resource wIconId using resource editor re. Also updates icondata_size.
  15. int replace_icon(CResourceEditor* re, WORD wIconId, char* filename);
  16.  
  17. #ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
  18. // returns the data of the uninstaller icon (inside filename) that should replace the installer icon data
  19. unsigned char* generate_uninstall_icon_data(char* filename);
  20. // Fill the array of icons for uninstall with their offsets
  21. int generate_unicons_offsets(unsigned char* exeHeader, unsigned char* uninstIconData);
  22. #endif NSIS_CONFIG_UNINSTALL_SUPPORT
  23.  
  24. #ifdef NSIS_CONFIG_VISIBLE_SUPPORT
  25. // Returns dialog's raw data from a given loaded module
  26. BYTE* get_dlg(HINSTANCE hUIFile, WORD dlgId, char* filename);
  27. #endif
  28.  
  29. #endif //_UTIL_H_