language.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef NULLSOFT_WINAMP_LANGUAGE_H
  2. #define NULLSOFT_WINAMP_LANGUAGE_H
  3. #include "../Agave/Language/api_language.h"
  4. class Language : public api_language
  5. {
  6. public:
  7. static const char *getServiceName() { return "Language API"; }
  8. static const GUID getServiceGuid() { return languageApiGUID; }
  9. public:
  10. char *GetString(HINSTANCE hinst, HINSTANCE owner, UINT uID, char *str=NULL, size_t maxlen=0);
  11. wchar_t *GetStringW(HINSTANCE hinst, HINSTANCE owner, UINT uID, wchar_t *str=NULL, size_t maxlen=0);
  12. char *GetStringFromGUID(const GUID guid, HINSTANCE owner, UINT uID, char *str=NULL, size_t maxlen=0);
  13. wchar_t *GetStringFromGUIDW(const GUID guid, HINSTANCE owner, UINT uID, wchar_t *str=NULL, size_t maxlen=0);
  14. HINSTANCE FindDllHandleByGUID(const GUID guid);
  15. HINSTANCE FindDllHandleByString(const char* str);
  16. HINSTANCE FindDllHandleByStringW(const wchar_t* str);
  17. HINSTANCE StartLanguageSupport(HINSTANCE hinstance, const GUID guid);
  18. const wchar_t *GetLanguageFolder();
  19. const wchar_t *GetLanguageIdentifier(int mode);
  20. HWND CreateLDialogParam(HINSTANCE localised, HINSTANCE original, UINT id, HWND parent, DLGPROC proc, LPARAM param);
  21. HWND CreateLDialogParamW(HINSTANCE localised, HINSTANCE original, UINT id, HWND parent, DLGPROC proc, LPARAM param);
  22. INT_PTR LDialogBoxParam(HINSTANCE localised, HINSTANCE original, UINT id, HWND parent, DLGPROC proc, LPARAM param);
  23. INT_PTR LDialogBoxParamW(HINSTANCE localised, HINSTANCE original, UINT id, HWND parent, DLGPROC proc, LPARAM param);
  24. HMENU LoadLMenu(HINSTANCE localised, HINSTANCE original, UINT id);
  25. HMENU LoadLMenuW(HINSTANCE localised, HINSTANCE original, UINT id);
  26. HACCEL LoadAcceleratorsA(HINSTANCE hinst, HINSTANCE owner, LPCSTR lpTableName);
  27. HACCEL LoadAcceleratorsW(HINSTANCE hinst, HINSTANCE owner, LPCWSTR lpTableName);
  28. void* LoadResourceFromFile(HINSTANCE hinst, HINSTANCE owner, LPCTSTR lpType, LPCTSTR lpName, DWORD* size);
  29. void* LoadResourceFromFileW(HINSTANCE hinst, HINSTANCE owner, LPCWSTR lpType, LPCWSTR lpName, DWORD* size);
  30. BOOL UseUserNumericLocale();
  31. _locale_t Get_C_NumericLocale();
  32. wchar_t* FormattedSizeString(wchar_t *out, int cchLen, __int64 size);
  33. protected:
  34. RECVS_DISPATCH;
  35. };
  36. extern Language *langManager;
  37. #define LANG_STATIC_BUFFER_SIZE 1024
  38. #endif