modelInfo.h 663 B

12345678910111213141516171819202122
  1. #pragma once
  2. typedef struct ModelInfo
  3. {
  4. const wchar_t *name;
  5. const wchar_t *displayName;
  6. const wchar_t *smallIcon;
  7. const wchar_t *largeIcon;
  8. } ModelInfo;
  9. const ModelInfo *GetDefaultModelInfo();
  10. const ModelInfo *FindModelInfo(const wchar_t *manufacturer, const wchar_t *model, BOOL allowDefault);
  11. /* helpers*/
  12. HRESULT ModelInfo_CopyDisplayName(const ModelInfo *modelInfo, wchar_t *buffer, size_t bufferMax);
  13. const wchar_t *ModelInfo_GetIconName(const ModelInfo *modelInfo, int width, int height, BOOL allowDefault);
  14. HRESULT ModelInfo_GetIconPath(const ModelInfo *modelInfo, int width, int height, wchar_t *buffer, size_t bufferMax, BOOL allowDefault);