hostinfo.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef HOST_INFO_H_INCLUDED
  7. #define HOST_INFO_H_INCLUDED
  8. const GUID IID_IHostInfoUpdate = { 0x1d044690,0x8923,0x11d0,{ 0xab,0xd2,0x0,0xa0,0xc9,0x11,0xe8,0xb2 } };
  9. enum hostinfo {
  10. hostinfoLocale = 0,hostinfoCodePage = 1,hostinfoErrorLocale = 2
  11. };
  12. #ifdef __cplusplus
  13. class IHostInfoUpdate : public IUnknown {
  14. public:
  15. STDMETHOD(QueryInterface)(REFIID riid,void **ppvObj) = 0;
  16. STDMETHOD_(ULONG,AddRef)(void) = 0;
  17. STDMETHOD_(ULONG,Release)(void) = 0;
  18. STDMETHOD(UpdateInfo)(hostinfo hostinfoNew) = 0;
  19. };
  20. #endif /* __cplusplus */
  21. const GUID IID_IHostInfoProvider = { 0xf8418ae0,0x9a5d,0x11d0,{ 0xab,0xd4,0x0,0xa0,0xc9,0x11,0xe8,0xb2 } };
  22. #ifdef __cplusplus
  23. class IHostInfoProvider : public IUnknown {
  24. public:
  25. STDMETHOD(QueryInterface)(REFIID riid,void **ppvObj) = 0;
  26. STDMETHOD_(ULONG,AddRef)(void) = 0;
  27. STDMETHOD_(ULONG,Release)(void) = 0;
  28. STDMETHOD(GetHostInfo)(hostinfo hostinfoRequest,void **ppvInfo) = 0;
  29. };
  30. #endif /* __cplusplus */
  31. #endif