1
0

Main.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include <windows.h>
  2. #include <shlwapi.h>
  3. #include <strsafe.h>
  4. #include "resource.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. //#define DO_LOG
  9. extern char g_uniqueidstring[33];
  10. extern int g_uniqueidint[4];
  11. extern int g_oid;
  12. // inet.c
  13. int isInetAvailable(void);
  14. void fixstring(char *out, char *in, int maxout);
  15. void fixstring_slashconv(char *out, char *in, int maxout);
  16. // systray.c
  17. BOOL systray_add(HWND hwnd, HICON hIcon, LPWSTR lpszTip);
  18. BOOL systray_mod(HWND hwnd, HICON hIcon, LPWSTR lpszTip);
  19. BOOL systray_del(HWND hwnd);
  20. BOOL systray_isintray(void);
  21. extern int config_systray_icon,config_check_nvc;
  22. // donvc.c
  23. void do_check_nvc(void);
  24. // wms.c
  25. void kill_server(void);
  26. char *run_server(int port, int maxcon, int maxcps);
  27. void set_maxcps(int maxcps);
  28. void set_maxcon(int maxcon);
  29. extern char g_password[64];
  30. // wmsdb.c
  31. void wmsdbFlush(void);
  32. int wmsdbAddFiles(char *pathlist);
  33. void wmsdbGetFile(int p, char *data, int *len, char *meta);
  34. int wmsdbGetNumFiles(void);
  35. // wmsyp.c
  36. void wmsyp_start(void);
  37. void wmsyp_quit(void);
  38. extern wchar_t ini_file[MAX_PATH],wms_file[MAX_PATH],indx_file[MAX_PATH],winamp_exe_file[MAX_PATH];
  39. // mp3info.c
  40. void mp3_getmetainfo(HANDLE hf,char *meta);
  41. // wavinfo.c
  42. void wav_getmetainfo(char *filename,char *meta);
  43. #ifdef DO_LOG
  44. void do_log_print(char *);
  45. #else
  46. #define do_log_print(x)
  47. #endif
  48. #ifdef __cplusplus
  49. }
  50. #endif