zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

shcore.h (820B) - Raw


      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 
      7 #ifndef _SHCORE_H_
      8 #define _SHCORE_H_
      9 
     10 #include <objidl.h>
     11 
     12 #if NTDDI_VERSION >= NTDDI_WIN8
     13 
     14 #ifdef __cplusplus
     15 extern "C" {
     16 #endif
     17 
     18 typedef enum {
     19     BSOS_DEFAULT = 0,
     20     BSOS_PREFERDESTINATIONSTREAM
     21 } BSOS_OPTIONS;
     22 
     23 STDAPI CreateRandomAccessStreamOnFile(PCWSTR filePath, DWORD accessMode, REFIID riid, void **ppv);
     24 STDAPI CreateRandomAccessStreamOverStream(IStream *stream, BSOS_OPTIONS options, REFIID riid, void **ppv);
     25 STDAPI CreateStreamOverRandomAccessStream(IUnknown *randomAccessStream, REFIID riid, void **ppv);
     26 
     27 #ifdef __cplusplus
     28 }
     29 #endif
     30 
     31 #endif /* NTDDI_VERSION >= NTDDI_WIN8 */
     32 
     33 #endif