1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-15 03:27:35 +01:00
ExplorerPatcher/ep_weather_host_stub/ep_weather_host.idl
2022-03-14 04:53:48 +02:00

90 lines
2.3 KiB
Plaintext

import "oaidl.idl";
import "ocidl.idl";
import "unknwn.idl";
[
object,
uuid(CDBF3734-F847-4F1B-B953-A605434DC1E7),
oleautomation,
helpstring("ExplorerPatcher Weather Information")
] interface IEPWeather : IUnknown
{
HRESULT About([in] HWND hWnd);
HRESULT Initialize(
[in] WCHAR wszName[260],
[in] BOOL bAllocConsole,
[in] LONG64 dwProvider,
[in] LONG64 cbx,
[in] LONG64 cby,
[in] LONG64 dwTemperatureUnit,
[in] LONG64 dwUpdateSchedule,
[in] RECT rc,
[in] LONG64 dwDarkMode,
[in] LONG64 dwGeolocationMode,
[out] HWND* hWnd,
[in] LONG64 dwZoomFactor,
[in] LONG64 dpiXInitial,
[in] LONG64 dpiYInitial
);
HRESULT Show();
HRESULT Hide();
HRESULT GetWindowHandle([out] HWND* phWnd);
HRESULT LockData();
HRESULT GetDataSizes(
[out] LPDWORD pcbTemperature,
[out] LPDWORD pcbUnit,
[out] LPDWORD pcbCondition,
[out] LPDWORD pcbImage
);
HRESULT GetData(
[in] DWORD cbTemperature,
[out, size_is(cbTemperature)] BYTE* wszTemperature,
[in] DWORD cbUnit,
[ out, size_is(cbUnit)] BYTE* wszUnit,
[in] DWORD cbCondition,
[out, size_is(cbCondition)] BYTE* wszCondition,
[in] DWORD cbImage,
[out, size_is(cbImage)] BYTE* pImage
);
HRESULT UnlockData();
HRESULT SetNotifyWindow([in] HWND hWndNotify);
HRESULT IsInitialized([out] BOOL* bIsInitialized);
HRESULT GetTitle([in] DWORD cbTitle, [out, size_is(cbTitle)] BYTE* wszTitle, [in] DWORD dwType);
HRESULT SetTemperatureUnit([in] LONG64 dwTemperatureUnit);
HRESULT SetTerm([in] DWORD cbTerm, [in, size_is(cbTerm)] BYTE* wszTerm);
HRESULT SetLanguage([in] DWORD cblanguage, [in, size_is(cblanguage)] BYTE* wszLanguage);
HRESULT SetUpdateSchedule([in] LONG64 dwUpdateSchedule);
HRESULT SetIconSize([in] LONG64 cbx, [in] LONG64 cby);
HRESULT GetIconSize([out] LONG64* cbx, [out] LONG64* cby);
HRESULT SetDarkMode([in] LONG64 dwDarkMode, [in] LONG64 bRefresh);
HRESULT SetGeolocationMode([in] LONG64 dwGeolocationMode);
HRESULT SetWindowCornerPreference([in] LONG64 dwWindowCornerPreference);
HRESULT SetDevMode([in] LONG64 dwDevMode, [in] LONG64 bRefresh);
HRESULT SetIconPack([in] LONG64 dwIconPack, [in] LONG64 bRefresh);
HRESULT SetZoomFactor([in] LONG64 dwZoomFactor);
HRESULT GetLastUpdateTime([out] LPSYSTEMTIME lpLastUpdateTime);
};