On 26/12/2022 8:45, JonY via Mingw-w64-public wrote:
On 12/25/22 14:53, Alvin Wong via Mingw-w64-public wrote:
Signed-off-by: Alvin Wong <[email protected]>
---
Added according to
https://learn.microsoft.com/en-us/windows/win32/api/shcore/. These
functions are used for WinRT interop with IStream.

  mingw-w64-headers/include/shcore.h | 33 ++++++++++++++++++++++++++++++
  1 file changed, 33 insertions(+)
  create mode 100644 mingw-w64-headers/include/shcore.h



+STDAPI CreateRandomAccessStreamOnFile(PCWSTR filePath, DWORD accessMode, REFIID riid, void **ppv); +STDAPI CreateRandomAccessStreamOverStream(IStream *stream, BSOS_OPTIONS options, REFIID riid, void **ppv); +STDAPI CreateStreamOverRandomAccessStream(IUnknown *randomAccessStream, REFIID riid, void **ppv);
+

Please include the dllimport attributes
Should I use `DECLSPEC_IMPORT HRESULT WINAPI` instead of `STDAPI` then?
and provide the library def file from gendef.
That `shcore.def` already exists in mingw-w64.


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to