napcommon.idl 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. import "naptypes.idl";
  6. import "unknwn.idl";
  7. cpp_quote("#include <winapifamily.h>")
  8. cpp_quote("")
  9. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  10. [object, uuid (a9e0af1a-3713-478e-ae03-8edd272d21fa), pointer_default (unique)]
  11. interface INapComponentConfig : IUnknown {
  12. HRESULT IsUISupported ([out] BOOL *isSupported);
  13. HRESULT InvokeUI ([in, unique] HWND hwndParent);
  14. HRESULT GetConfig ([out] UINT16 *bCount,[out, size_is (,*bCount)] BYTE **data);
  15. HRESULT SetConfig ([in] UINT16 bCount,[in, size_is (bCount)] BYTE *data);
  16. };
  17. [object, uuid (b475f925-e3f7-414c-8c72-1cee64b9d8f6), pointer_default (unique)]
  18. interface INapComponentInfo : IUnknown {
  19. HRESULT GetFriendlyName ([out] MessageId *friendlyName);
  20. HRESULT GetDescription ([out] MessageId *description);
  21. HRESULT GetVendorName ([out] MessageId *vendorName);
  22. HRESULT GetVersion ([out] MessageId *version);
  23. HRESULT GetIcon ([out] CountedString **dllFilePath,[out] UINT32 *iconResourceId);
  24. HRESULT ConvertErrorCodeToMessageId ([in] HRESULT errorCode,[out] MessageId *msgId);
  25. HRESULT GetLocalizedString ([in] MessageId msgId,[out] CountedString **string);
  26. };
  27. [object, uuid (47cbdb9e-1972-4f5e-bd3c-5eb6230614b5), pointer_default (unique)]
  28. interface INapComponentConfig2 : INapComponentConfig {
  29. HRESULT IsRemoteConfigSupported ([out] BOOL *isSupported,[out] UINT8 *remoteConfigType);
  30. HRESULT InvokeUIForMachine ([in, unique] HWND hwndParent,[in, unique] CountedString *machineName);
  31. HRESULT InvokeUIFromConfigBlob ([in, unique] HWND hwndParent,[in] UINT16 inbCount,[in, size_is (inbCount)] BYTE *inData,[out] UINT16 *outbCount,[out, size_is (,*outbCount)] BYTE **outdata,[out] BOOL *fConfigChanged);
  32. };
  33. [object, uuid (9c4a8101-8cfe-4332-876e-C4A49D1D3F77), pointer_default (unique)]
  34. interface INapComponentConfig3 : INapComponentConfig2 {
  35. HRESULT NewConfig (UINT32 configID);
  36. HRESULT DeleteConfig (UINT32 configID);
  37. HRESULT DeleteAllConfig ();
  38. HRESULT GetConfigFromID ([in] UINT32 configID,[out] UINT16 *count,[out, size_is (,*count)]BYTE **outdata);
  39. HRESULT SetConfigToID ([in] UINT32 configID,[in] UINT16 count,[in, size_is (count)]BYTE *data);
  40. };
  41. cpp_quote("#endif")