authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-24 11:59:10+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-24 11:59:10+01:00
loged10a5db588a74d4ecbff8dd4f5617d8fc75cd27
tree2a609def885ea761402d4b7a58047a959def1c6e
parent2404e7f5d64c526f13c7e187a2fdf884f6d08506
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

mingw: Update MinGW-w64 headers to 3839e21b08807479a31d5a9764666f82ae2f0356.


272 files changed, 6025 insertions(+), 2143 deletions(-)

lib/libc/include/any-windows-any/_mingw.h+13-9
......@@ -237,6 +237,10 @@ limitations in handling dllimport attribute. */
237237# endif
238238#endif
239239
240#if !defined(__CRTDLL__) && __MSVCRT_VERSION__ == 0x00
241#define __CRTDLL__
242#endif
243
240244#if !defined(_UCRT) && ((__MSVCRT_VERSION__ >= 0x1400) || (__MSVCRT_VERSION__ >= 0xE00 && __MSVCRT_VERSION__ < 0x1000))
241245/* Allow both 0x1400 and 0xE00 to identify UCRT */
242246#define _UCRT
......@@ -594,12 +598,12 @@ extern "C" {
594598void __cdecl __debugbreak(void);
595599__MINGW_INTRIN_INLINE void __cdecl __debugbreak(void)
596600{
597#if defined(__i386__) || defined(__x86_64__)
601#if defined(__aarch64__) || defined(__arm64ec__)
602 __asm__ __volatile__("brk #0xf000");
603#elif defined(__i386__) || defined(__x86_64__)
598604 __asm__ __volatile__("int {$}3":);
599605#elif defined(__arm__)
600606 __asm__ __volatile__("udf #0xfe");
601#elif defined(__aarch64__)
602 __asm__ __volatile__("brk #0xf000");
603607#else
604608 __asm__ __volatile__("unimplemented");
605609#endif
......@@ -615,14 +619,14 @@ __MINGW_INTRIN_INLINE void __cdecl __debugbreak(void)
615619void __cdecl __MINGW_ATTRIB_NORETURN __fastfail(unsigned int code);
616620__MINGW_INTRIN_INLINE void __cdecl __MINGW_ATTRIB_NORETURN __fastfail(unsigned int code)
617621{
618#if defined(__i386__) || defined(__x86_64__)
622#if defined(__aarch64__) || defined(__arm64ec__)
623 register unsigned int w0 __asm__("w0") = code;
624 __asm__ __volatile__("brk #0xf003"::"r"(w0));
625#elif defined(__i386__) || defined(__x86_64__)
619626 __asm__ __volatile__("int {$}0x29"::"c"(code));
620627#elif defined(__arm__)
621628 register unsigned int r0 __asm__("r0") = code;
622629 __asm__ __volatile__("udf #0xfb"::"r"(r0));
623#elif defined(__aarch64__)
624 register unsigned int w0 __asm__("w0") = code;
625 __asm__ __volatile__("brk #0xf003"::"r"(w0));
626630#else
627631 __asm__ __volatile__("unimplemented");
628632#endif
......@@ -636,13 +640,13 @@ __MINGW_INTRIN_INLINE void __cdecl __MINGW_ATTRIB_NORETURN __fastfail(unsigned i
636640#define __MINGW_PREFETCH_IMPL 1
637641#endif
638642#if __MINGW_PREFETCH_IMPL == 1
639#if defined(__arm__) || defined(__aarch64__)
643#if defined(__arm__) || defined(__aarch64__) || defined(__arm64ec__)
640644void __cdecl __prefetch(const void *addr);
641645__MINGW_INTRIN_INLINE void __cdecl __prefetch(const void *addr)
642646{
643647#if defined(__arm__)
644648 __asm__ __volatile__("pld [%0]"::"r"(addr));
645#elif defined(__aarch64__)
649#elif defined(__aarch64__) || defined(__arm64ec__)
646650 __asm__ __volatile__("prfm pldl1keep, [%0]"::"r"(addr));
647651#endif
648652}
lib/libc/include/any-windows-any/_mingw_mac.h+16-6
......@@ -7,6 +7,9 @@
77#ifndef _INC_CRTDEFS_MACRO
88#define _INC_CRTDEFS_MACRO
99
10#define __MINGW64_PASTE2(x, y) x ## y
11#define __MINGW64_PASTE(x, y) __MINGW64_PASTE2(x, y)
12
1013#define __STRINGIFY(x) #x
1114#define __MINGW64_STRINGIFY(x) \
1215 __STRINGIFY(x)
......@@ -88,6 +91,13 @@
8891# endif
8992#endif
9093
94#if defined(__arm64ec__) && !defined(_M_ARM64EC)
95# define _M_ARM64EC 1
96# ifndef _ARM64EC_
97# define _ARM64EC_ 1
98# endif
99#endif
100
91101#ifndef _X86_
92102 /* MS does not prefix symbols by underscores for 64-bit. */
93103# ifndef __MINGW_USE_UNDERSCORE_PREFIX
......@@ -116,14 +126,14 @@
116126#endif /* ifndef _X86_ */
117127
118128#if __MINGW_USE_UNDERSCORE_PREFIX == 0
119# define __MINGW_IMP_SYMBOL(sym) __imp_##sym
120# define __MINGW_IMP_LSYMBOL(sym) __imp_##sym
129# define __MINGW_IMP_SYMBOL(sym) __MINGW64_PASTE(__imp_,sym)
130# define __MINGW_IMP_LSYMBOL(sym) __MINGW64_PASTE(__imp_,sym)
121131# define __MINGW_USYMBOL(sym) sym
122# define __MINGW_LSYMBOL(sym) _##sym
132# define __MINGW_LSYMBOL(sym) __MINGW64_PASTE(_,sym)
123133#else /* ! if __MINGW_USE_UNDERSCORE_PREFIX == 0 */
124# define __MINGW_IMP_SYMBOL(sym) _imp__##sym
125# define __MINGW_IMP_LSYMBOL(sym) __imp__##sym
126# define __MINGW_USYMBOL(sym) _##sym
134# define __MINGW_IMP_SYMBOL(sym) __MINGW64_PASTE(_imp__,sym)
135# define __MINGW_IMP_LSYMBOL(sym) __MINGW64_PASTE(__imp__,sym)
136# define __MINGW_USYMBOL(sym) __MINGW64_PASTE(_,sym)
127137# define __MINGW_LSYMBOL(sym) sym
128138#endif /* if __MINGW_USE_UNDERSCORE_PREFIX == 0 */
129139
lib/libc/include/any-windows-any/activation.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/activation.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/activation.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/activaut.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/activaut.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/activaut.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/activdbg.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/activdbg.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/activdbg.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/activdbg100.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/activdbg100.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/activdbg100.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/activprof.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/activprof.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/activprof.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/activscp.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/activscp.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/activscp.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/adhoc.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/adhoc.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/adhoc.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/alg.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/alg.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/alg.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/amstream.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/amstream.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/amstream.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/amvideo.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/amvideo.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/amvideo.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/asyncinfo.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/asyncinfo.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/asyncinfo.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/audioclient.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/audioclient.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/audioclient.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/audioendpoints.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/audioendpoints.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/audioendpoints.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/audiopolicy.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/audiopolicy.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/audiopolicy.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/austream.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/austream.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/austream.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/bdaiface.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/bdaiface.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/bdaiface.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/bits.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/bits.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/bits.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/bits1_5.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/bits1_5.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/bits1_5.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/bits2_0.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/bits2_0.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/bits2_0.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/bits2_5.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/bits2_5.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/bits2_5.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/bits3_0.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/bits3_0.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/bits3_0.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/bits5_0.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/bits5_0.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/bits5_0.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/comadmin.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/comadmin.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/comadmin.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/combaseapi.h+11
......@@ -354,6 +354,17 @@ WINOLEAPI CoGetTreatAsClass (REFCLSID clsidOld, LPCLSID pClsidNew);
354354WINOLEAPI CoInvalidateRemoteMachineBindings (LPOLESTR pszMachineName);
355355#endif
356356
357#if (NTDDI_VERSION >= NTDDI_WINBLUE)
358#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
359enum AgileReferenceOptions {
360 AGILEREFERENCE_DEFAULT = 0,
361 AGILEREFERENCE_DELAYEDMARSHAL = 1
362};
363
364WINOLEAPI RoGetAgileReference(enum AgileReferenceOptions options, REFIID riid, IUnknown *pUnk, IAgileReference **ppAgileReference);
365#endif
366#endif
367
357368#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
358369typedef HRESULT (STDAPICALLTYPE *LPFNGETCLASSOBJECT) (REFCLSID, REFIID, LPVOID *);
359370typedef HRESULT (STDAPICALLTYPE *LPFNCANUNLOADNOW) (void);
lib/libc/include/any-windows-any/comcat.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/comcat.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/comcat.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/commoncontrols.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/commoncontrols.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/commoncontrols.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/consoleapi.h created+139
......@@ -0,0 +1,139 @@
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 _APISETCONSOLE_
8#define _APISETCONSOLE_
9
10#include <_mingw_unicode.h>
11
12#include <apiset.h>
13#include <apisetcconv.h>
14#include <minwinbase.h>
15#include <minwindef.h>
16
17#include <wincontypes.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
24
25WINBASEAPI WINBOOL WINAPI AllocConsole(void);
26
27#if (NTDDI_VERSION >= NTDDI_WIN11_GE)
28
29typedef enum ALLOC_CONSOLE_MODE {
30 ALLOC_CONSOLE_MODE_DEFAULT = 0,
31 ALLOC_CONSOLE_MODE_NEW_WINDOW = 1,
32 ALLOC_CONSOLE_MODE_NO_WINDOW = 2
33} ALLOC_CONSOLE_MODE;
34
35typedef struct ALLOC_CONSOLE_OPTIONS {
36 ALLOC_CONSOLE_MODE mode;
37 WINBOOL useShowWindow;
38 WORD showWindow;
39} ALLOC_CONSOLE_OPTIONS, *PALLOC_CONSOLE_OPTIONS;
40
41typedef enum ALLOC_CONSOLE_RESULT {
42 ALLOC_CONSOLE_RESULT_NO_CONSOLE = 0,
43 ALLOC_CONSOLE_RESULT_NEW_CONSOLE = 1,
44 ALLOC_CONSOLE_RESULT_EXISTING_CONSOLE = 2
45} ALLOC_CONSOLE_RESULT, *PALLOC_CONSOLE_RESULT;
46
47WINBASEAPI HRESULT WINAPI AllocConsoleWithOptions(PALLOC_CONSOLE_OPTIONS options, PALLOC_CONSOLE_RESULT result);
48
49#endif /* NTDDI_VERSION >= NTDDI_WIN11_GE */
50
51WINBASEAPI WINBOOL WINAPI FreeConsole(void);
52
53#if (_WIN32_WINNT >= 0x0500)
54
55WINBASEAPI WINBOOL WINAPI AttachConsole(DWORD process_id);
56
57#define ATTACH_PARENT_PROCESS ((DWORD)-1)
58
59#endif /* _WIN32_WINNT >= 0x0500 */
60
61WINBASEAPI UINT WINAPI GetConsoleCP(void);
62WINBASEAPI UINT WINAPI GetConsoleOutputCP(void);
63
64#define ENABLE_PROCESSED_INPUT 0x0001
65#define ENABLE_LINE_INPUT 0x0002
66#define ENABLE_ECHO_INPUT 0x0004
67#define ENABLE_WINDOW_INPUT 0x0008
68#define ENABLE_MOUSE_INPUT 0x0010
69#define ENABLE_INSERT_MODE 0x0020
70#define ENABLE_QUICK_EDIT_MODE 0x0040
71#define ENABLE_EXTENDED_FLAGS 0x0080
72#define ENABLE_AUTO_POSITION 0x0100
73#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200
74
75#define ENABLE_PROCESSED_OUTPUT 0x0001
76#define ENABLE_WRAP_AT_EOL_OUTPUT 0x0002
77#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
78#define DISABLE_NEWLINE_AUTO_RETURN 0x0008
79#define ENABLE_LVB_GRID_WORLDWIDE 0x0010
80
81WINBASEAPI WINBOOL WINAPI GetConsoleMode(HANDLE console_handle, LPDWORD mode);
82WINBASEAPI WINBOOL WINAPI SetConsoleMode(HANDLE console_handle, DWORD mode);
83WINBASEAPI WINBOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE console_input, LPDWORD number_of_events);
84
85WINBASEAPI WINBOOL WINAPI ReadConsoleInputA(HANDLE console_input, PINPUT_RECORD buffer, DWORD length, LPDWORD number_of_events_read);
86WINBASEAPI WINBOOL WINAPI ReadConsoleInputW(HANDLE console_input, PINPUT_RECORD buffer, DWORD length, LPDWORD number_of_events_read);
87#define ReadConsoleInput __MINGW_NAME_AW(ReadConsoleInput)
88
89WINBASEAPI WINBOOL WINAPI PeekConsoleInputA(HANDLE console_input, PINPUT_RECORD buffer, DWORD length, LPDWORD number_of_events_read);
90WINBASEAPI WINBOOL WINAPI PeekConsoleInputW(HANDLE console_input, PINPUT_RECORD buffer, DWORD length, LPDWORD number_of_events_read);
91#define PeekConsoleInput __MINGW_NAME_AW(PeekConsoleInput)
92
93typedef struct _CONSOLE_READCONSOLE_CONTROL {
94 ULONG nLength;
95 ULONG nInitialChars;
96 ULONG dwCtrlWakeupMask;
97 ULONG dwControlKeyState;
98} CONSOLE_READCONSOLE_CONTROL, *PCONSOLE_READCONSOLE_CONTROL;
99
100WINBASEAPI WINBOOL WINAPI ReadConsoleA(HANDLE console_input, LPVOID buffer, DWORD number_of_chars_to_read, LPDWORD number_of_chars_read, PCONSOLE_READCONSOLE_CONTROL input_control);
101WINBASEAPI WINBOOL WINAPI ReadConsoleW(HANDLE console_input, LPVOID buffer, DWORD number_of_chars_to_read, LPDWORD number_of_chars_read, PCONSOLE_READCONSOLE_CONTROL input_control);
102#define ReadConsole __MINGW_NAME_AW(ReadConsole)
103
104WINBASEAPI WINBOOL WINAPI WriteConsoleA(HANDLE console_output, const void *buffer, DWORD number_of_chars_to_write, LPDWORD number_of_chars_written, LPVOID reserved);
105WINBASEAPI WINBOOL WINAPI WriteConsoleW(HANDLE console_output, const void *buffer, DWORD number_of_chars_to_write, LPDWORD number_of_chars_written, LPVOID reserved);
106#define WriteConsole __MINGW_NAME_AW(WriteConsole)
107
108#define CTRL_C_EVENT 0
109#define CTRL_BREAK_EVENT 1
110#define CTRL_CLOSE_EVENT 2
111#define CTRL_LOGOFF_EVENT 5
112#define CTRL_SHUTDOWN_EVENT 6
113
114typedef WINBOOL (WINAPI *PHANDLER_ROUTINE)(DWORD ctrl_type);
115WINBASEAPI WINBOOL WINAPI SetConsoleCtrlHandler(PHANDLER_ROUTINE handler_routine, WINBOOL add);
116
117#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
118
119#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
120
121#if (NTDDI_VERSION >= NTDDI_WIN10_RS5)
122#define PSEUDOCONSOLE_INHERIT_CURSOR (0x1)
123
124WINBASEAPI HRESULT WINAPI CreatePseudoConsole(COORD size, HANDLE input, HANDLE output, DWORD flags, HPCON *pc);
125WINBASEAPI HRESULT WINAPI ResizePseudoConsole(HPCON pc, COORD size);
126WINBASEAPI void WINAPI ClosePseudoConsole(HPCON pc);
127#endif
128
129#if (NTDDI_VERSION >= NTDDI_WIN11_GE)
130WINBASEAPI HRESULT WINAPI ReleasePseudoConsole(HPCON pc);
131#endif
132
133#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
134
135#ifdef __cplusplus
136}
137#endif
138
139#endif /* _APISETCONSOLE_ */
lib/libc/include/any-windows-any/consoleapi2.h created+144
......@@ -0,0 +1,144 @@
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 _APISETCONSOLEL2_
8#define _APISETCONSOLEL2_
9
10#include <_mingw_unicode.h>
11
12#include <apiset.h>
13#include <apisetcconv.h>
14#include <minwinbase.h>
15#include <minwindef.h>
16
17#include <wincontypes.h>
18#include <windef.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
25
26#define FOREGROUND_BLUE 0x0001
27#define FOREGROUND_GREEN 0x0002
28#define FOREGROUND_RED 0x0004
29#define FOREGROUND_INTENSITY 0x0008
30#define BACKGROUND_BLUE 0x0010
31#define BACKGROUND_GREEN 0x0020
32#define BACKGROUND_RED 0x0040
33#define BACKGROUND_INTENSITY 0x0080
34#define COMMON_LVB_LEADING_BYTE 0x0100
35#define COMMON_LVB_TRAILING_BYTE 0x0200
36#define COMMON_LVB_GRID_HORIZONTAL 0x0400
37#define COMMON_LVB_GRID_LVERTICAL 0x0800
38#define COMMON_LVB_GRID_RVERTICAL 0x1000
39#define COMMON_LVB_REVERSE_VIDEO 0x4000
40#define COMMON_LVB_UNDERSCORE 0x8000
41
42#define COMMON_LVB_SBCSDBCS 0x0300
43
44WINBASEAPI WINBOOL WINAPI FillConsoleOutputCharacterA(HANDLE console_output, CHAR character, DWORD length, COORD write_coord, LPDWORD number_of_chars_written);
45WINBASEAPI WINBOOL WINAPI FillConsoleOutputCharacterW(HANDLE console_output, WCHAR character, DWORD length, COORD write_coord, LPDWORD number_of_chars_written);
46#define FillConsoleOutputCharacter __MINGW_NAME_AW(FillConsoleOutputCharacter)
47
48WINBASEAPI WINBOOL WINAPI FillConsoleOutputAttribute(HANDLE console_output, WORD attribute, DWORD length, COORD write_coord, LPDWORD number_of_attrs_written);
49WINBASEAPI WINBOOL WINAPI GenerateConsoleCtrlEvent(DWORD ctrl_event, DWORD process_group_id);
50WINBASEAPI HANDLE WINAPI CreateConsoleScreenBuffer(DWORD desired_access, DWORD share_mode, const SECURITY_ATTRIBUTES *security_attributes, DWORD flags, LPVOID screen_buffer_data);
51WINBASEAPI WINBOOL WINAPI SetConsoleActiveScreenBuffer(HANDLE console_output);
52WINBASEAPI WINBOOL WINAPI FlushConsoleInputBuffer(HANDLE console_input);
53WINBASEAPI WINBOOL WINAPI SetConsoleCP(UINT code_page_id);
54WINBASEAPI WINBOOL WINAPI SetConsoleOutputCP(UINT code_page_id);
55
56typedef struct _CONSOLE_CURSOR_INFO {
57 DWORD dwSize;
58 WINBOOL bVisible;
59} CONSOLE_CURSOR_INFO, *PCONSOLE_CURSOR_INFO;
60
61WINBASEAPI WINBOOL WINAPI GetConsoleCursorInfo(HANDLE console_output, PCONSOLE_CURSOR_INFO console_cursor_info);
62WINBASEAPI WINBOOL WINAPI SetConsoleCursorInfo(HANDLE console_output, const CONSOLE_CURSOR_INFO *console_cursor_info);
63
64typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
65 COORD dwSize;
66 COORD dwCursorPosition;
67 WORD wAttributes;
68 SMALL_RECT srWindow;
69 COORD dwMaximumWindowSize;
70} CONSOLE_SCREEN_BUFFER_INFO, *PCONSOLE_SCREEN_BUFFER_INFO;
71
72WINBASEAPI WINBOOL WINAPI GetConsoleScreenBufferInfo(HANDLE console_output, PCONSOLE_SCREEN_BUFFER_INFO console_screen_buffer_info);
73
74typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
75 ULONG cbSize;
76 COORD dwSize;
77 COORD dwCursorPosition;
78 WORD wAttributes;
79 SMALL_RECT srWindow;
80 COORD dwMaximumWindowSize;
81 WORD wPopupAttributes;
82 WINBOOL bFullscreenSupported;
83 COLORREF ColorTable[16];
84} CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX;
85
86WINBASEAPI WINBOOL WINAPI GetConsoleScreenBufferInfoEx(HANDLE console_output, PCONSOLE_SCREEN_BUFFER_INFOEX console_screen_buffer_info_ex);
87WINBASEAPI WINBOOL WINAPI SetConsoleScreenBufferInfoEx(HANDLE console_output, PCONSOLE_SCREEN_BUFFER_INFOEX console_screen_buffer_info_ex);
88WINBASEAPI WINBOOL WINAPI SetConsoleScreenBufferSize(HANDLE console_output, COORD size);
89WINBASEAPI WINBOOL WINAPI SetConsoleCursorPosition(HANDLE console_output, COORD cursor_position);
90WINBASEAPI COORD WINAPI GetLargestConsoleWindowSize(HANDLE console_output);
91WINBASEAPI WINBOOL WINAPI SetConsoleTextAttribute(HANDLE console_output, WORD attributes);
92WINBASEAPI WINBOOL WINAPI SetConsoleWindowInfo(HANDLE console_output, WINBOOL absolute, const SMALL_RECT *console_window);
93
94WINBASEAPI WINBOOL WINAPI WriteConsoleOutputCharacterA(HANDLE console_output, LPCSTR character, DWORD length, COORD write_coord, LPDWORD number_of_chars_written);
95WINBASEAPI WINBOOL WINAPI WriteConsoleOutputCharacterW(HANDLE console_output, LPCWSTR character, DWORD length, COORD write_coord, LPDWORD number_of_chars_written);
96#define WriteConsoleOutputCharacter __MINGW_NAME_AW(WriteConsoleOutputCharacter)
97
98WINBASEAPI WINBOOL WINAPI WriteConsoleOutputAttribute(HANDLE console_output, const WORD *attribute, DWORD length, COORD write_coord, LPDWORD number_of_attrs_written);
99
100WINBASEAPI WINBOOL WINAPI ReadConsoleOutputCharacterA(HANDLE console_output, LPSTR character, DWORD length, COORD read_coord, LPDWORD number_of_chars_read);
101WINBASEAPI WINBOOL WINAPI ReadConsoleOutputCharacterW(HANDLE console_output, LPWSTR character, DWORD length, COORD read_coord, LPDWORD number_of_chars_read);
102#define ReadConsoleOutputCharacter __MINGW_NAME_AW(ReadConsoleOutputCharacter)
103
104WINBASEAPI WINBOOL WINAPI ReadConsoleOutputAttribute(HANDLE console_output, LPWORD attribute, DWORD length, COORD read_coord, LPDWORD number_of_attrs_read);
105
106WINBASEAPI WINBOOL WINAPI WriteConsoleInputA(HANDLE console_input, const INPUT_RECORD *buffer, DWORD length, LPDWORD number_of_events_written);
107WINBASEAPI WINBOOL WINAPI WriteConsoleInputW(HANDLE console_input, const INPUT_RECORD *buffer, DWORD length, LPDWORD number_of_events_written);
108#define WriteConsoleInput __MINGW_NAME_AW(WriteConsoleInput)
109
110WINBASEAPI WINBOOL WINAPI ScrollConsoleScreenBufferA(HANDLE console_output, const SMALL_RECT *scroll_rectangle, const SMALL_RECT *clip_rectangle, COORD destination_origin, const CHAR_INFO *fill);
111WINBASEAPI WINBOOL WINAPI ScrollConsoleScreenBufferW(HANDLE console_output, const SMALL_RECT *scroll_rectangle, const SMALL_RECT *clip_rectangle, COORD destination_origin, const CHAR_INFO *fill);
112#define ScrollConsoleScreenBuffer __MINGW_NAME_AW(ScrollConsoleScreenBuffer)
113
114WINBASEAPI WINBOOL WINAPI WriteConsoleOutputA(HANDLE console_output, const CHAR_INFO *buffer, COORD buffer_size, COORD buffer_coord, PSMALL_RECT write_region);
115WINBASEAPI WINBOOL WINAPI WriteConsoleOutputW(HANDLE console_output, const CHAR_INFO *buffer, COORD buffer_size, COORD buffer_coord, PSMALL_RECT write_region);
116#define WriteConsoleOutput __MINGW_NAME_AW(WriteConsoleOutput)
117
118WINBASEAPI WINBOOL WINAPI ReadConsoleOutputA(HANDLE console_output, PCHAR_INFO buffer, COORD buffer_size, COORD buffer_coord, PSMALL_RECT read_region);
119WINBASEAPI WINBOOL WINAPI ReadConsoleOutputW(HANDLE console_output, PCHAR_INFO buffer, COORD buffer_size, COORD buffer_coord, PSMALL_RECT read_region);
120#define ReadConsoleOutput __MINGW_NAME_AW(ReadConsoleOutput)
121
122WINBASEAPI DWORD WINAPI GetConsoleTitleA(LPSTR console_title, DWORD size);
123WINBASEAPI DWORD WINAPI GetConsoleTitleW(LPWSTR console_title, DWORD size);
124#define GetConsoleTitle __MINGW_NAME_AW(GetConsoleTitle)
125
126#if (_WIN32_WINNT >= 0x0600)
127
128WINBASEAPI DWORD WINAPI GetConsoleOriginalTitleA(LPSTR console_title, DWORD size);
129WINBASEAPI DWORD WINAPI GetConsoleOriginalTitleW(LPWSTR console_title, DWORD size);
130#define GetConsoleOriginalTitle __MINGW_NAME_AW(GetConsoleOriginalTitle)
131
132#endif /* _WIN32_WINNT >= 0x0600 */
133
134WINBASEAPI WINBOOL WINAPI SetConsoleTitleA(LPCSTR console_title);
135WINBASEAPI WINBOOL WINAPI SetConsoleTitleW(LPCWSTR console_title);
136#define SetConsoleTitle __MINGW_NAME_AW(SetConsoleTitle)
137
138#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif /* _APISETCONSOLEL2_ */
lib/libc/include/any-windows-any/consoleapi3.h created+146
......@@ -0,0 +1,146 @@
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 _APISETCONSOLEL3_
8#define _APISETCONSOLEL3_
9
10#include <_mingw_unicode.h>
11
12#include <apiset.h>
13#include <apisetcconv.h>
14#include <minwinbase.h>
15#include <minwindef.h>
16
17#include <wincontypes.h>
18#include <windef.h>
19
20#ifndef NOGDI
21#include <wingdi.h>
22#endif
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
29
30WINBASEAPI WINBOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD number_of_mouse_buttons);
31
32#if (_WIN32_WINNT >= 0x0500)
33
34WINBASEAPI COORD WINAPI GetConsoleFontSize(HANDLE console_output, DWORD font);
35WINBASEAPI WINBOOL WINAPI GetCurrentConsoleFont(HANDLE console_output, WINBOOL maximum_window, PCONSOLE_FONT_INFO console_current_font);
36
37#ifndef NOGDI
38
39typedef struct _CONSOLE_FONT_INFOEX {
40 ULONG cbSize;
41 DWORD nFont;
42 COORD dwFontSize;
43 UINT FontFamily;
44 UINT FontWeight;
45 WCHAR FaceName[LF_FACESIZE];
46} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX;
47
48WINBASEAPI WINBOOL WINAPI GetCurrentConsoleFontEx(HANDLE console_output, WINBOOL maximum_window, PCONSOLE_FONT_INFOEX console_current_font_ex);
49WINBASEAPI WINBOOL WINAPI SetCurrentConsoleFontEx(HANDLE console_output, WINBOOL maximum_window, PCONSOLE_FONT_INFOEX console_current_font_ex);
50
51#endif /* !NOGDI */
52
53#define CONSOLE_NO_SELECTION 0x0000
54#define CONSOLE_SELECTION_IN_PROGRESS 0x0001
55#define CONSOLE_SELECTION_NOT_EMPTY 0x0002
56#define CONSOLE_MOUSE_SELECTION 0x0004
57#define CONSOLE_MOUSE_DOWN 0x0008
58
59typedef struct _CONSOLE_SELECTION_INFO {
60 DWORD dwFlags;
61 COORD dwSelectionAnchor;
62 SMALL_RECT srSelection;
63} CONSOLE_SELECTION_INFO, *PCONSOLE_SELECTION_INFO;
64
65WINBASEAPI WINBOOL WINAPI GetConsoleSelectionInfo(PCONSOLE_SELECTION_INFO console_selection_info);
66
67#define HISTORY_NO_DUP_FLAG 0x1
68
69typedef struct _CONSOLE_HISTORY_INFO {
70 UINT cbSize;
71 UINT HistoryBufferSize;
72 UINT NumberOfHistoryBuffers;
73 DWORD dwFlags;
74} CONSOLE_HISTORY_INFO, *PCONSOLE_HISTORY_INFO;
75
76WINBASEAPI WINBOOL WINAPI GetConsoleHistoryInfo(PCONSOLE_HISTORY_INFO console_history_info);
77WINBASEAPI WINBOOL WINAPI SetConsoleHistoryInfo(PCONSOLE_HISTORY_INFO console_history_info);
78
79#define CONSOLE_FULLSCREEN 1
80#define CONSOLE_FULLSCREEN_HARDWARE 2
81
82WINBASEAPI WINBOOL APIENTRY GetConsoleDisplayMode(LPDWORD mode_flags);
83
84#define CONSOLE_FULLSCREEN_MODE 1
85#define CONSOLE_WINDOWED_MODE 2
86
87WINBASEAPI WINBOOL APIENTRY SetConsoleDisplayMode(HANDLE console_output, DWORD flags, PCOORD new_screen_buffer_dimensions);
88WINBASEAPI HWND APIENTRY GetConsoleWindow(void);
89
90#endif /* _WIN32_WINNT >= 0x0500 */
91
92#if (_WIN32_WINNT >= 0x0501)
93
94WINBASEAPI WINBOOL APIENTRY AddConsoleAliasA(LPSTR source, LPSTR target, LPSTR exe_name);
95WINBASEAPI WINBOOL APIENTRY AddConsoleAliasW(LPWSTR source, LPWSTR target, LPWSTR exe_name);
96#define AddConsoleAlias __MINGW_NAME_AW(AddConsoleAlias)
97
98WINBASEAPI DWORD APIENTRY GetConsoleAliasA(LPSTR source, LPSTR target_buffer, DWORD target_buffer_length, LPSTR exe_name);
99WINBASEAPI DWORD APIENTRY GetConsoleAliasW(LPWSTR source, LPWSTR target_buffer, DWORD target_buffer_length, LPWSTR exe_name);
100#define GetConsoleAlias __MINGW_NAME_AW(GetConsoleAlias)
101
102WINBASEAPI DWORD APIENTRY GetConsoleAliasesLengthA(LPSTR exe_name);
103WINBASEAPI DWORD APIENTRY GetConsoleAliasesLengthW(LPWSTR exe_name);
104#define GetConsoleAliasesLength __MINGW_NAME_AW(GetConsoleAliasesLength)
105
106WINBASEAPI DWORD APIENTRY GetConsoleAliasExesLengthA(void);
107WINBASEAPI DWORD APIENTRY GetConsoleAliasExesLengthW(void);
108#define GetConsoleAliasExesLength __MINGW_NAME_AW(GetConsoleAliasExesLength)
109
110WINBASEAPI DWORD APIENTRY GetConsoleAliasesA(LPSTR alias_buffer, DWORD alias_buffer_length, LPSTR exe_name);
111WINBASEAPI DWORD APIENTRY GetConsoleAliasesW(LPWSTR alias_buffer, DWORD alias_buffer_length, LPWSTR exe_name);
112#define GetConsoleAliases __MINGW_NAME_AW(GetConsoleAliases)
113
114WINBASEAPI DWORD APIENTRY GetConsoleAliasExesA(LPSTR exe_name_buffer, DWORD exe_name_buffer_length);
115WINBASEAPI DWORD APIENTRY GetConsoleAliasExesW(LPWSTR exe_name_buffer, DWORD exe_name_buffer_length);
116#define GetConsoleAliasExes __MINGW_NAME_AW(GetConsoleAliasExes)
117
118#endif /* _WIN32_WINNT >= 0x0501 */
119
120WINBASEAPI void APIENTRY ExpungeConsoleCommandHistoryA(LPSTR exe_name);
121WINBASEAPI void APIENTRY ExpungeConsoleCommandHistoryW(LPWSTR exe_name);
122#define ExpungeConsoleCommandHistory __MINGW_NAME_AW(ExpungeConsoleCommandHistory)
123
124WINBASEAPI WINBOOL APIENTRY SetConsoleNumberOfCommandsA(DWORD number, LPSTR exe_name);
125WINBASEAPI WINBOOL APIENTRY SetConsoleNumberOfCommandsW(DWORD number, LPWSTR exe_name);
126#define SetConsoleNumberOfCommands __MINGW_NAME_AW(SetConsoleNumberOfCommands)
127
128WINBASEAPI DWORD APIENTRY GetConsoleCommandHistoryLengthA(LPSTR exe_name);
129WINBASEAPI DWORD APIENTRY GetConsoleCommandHistoryLengthW(LPWSTR exe_name);
130#define GetConsoleCommandHistoryLength __MINGW_NAME_AW(GetConsoleCommandHistoryLength)
131
132WINBASEAPI DWORD APIENTRY GetConsoleCommandHistoryA(LPSTR commands, DWORD command_buffer_length, LPSTR exe_name);
133WINBASEAPI DWORD APIENTRY GetConsoleCommandHistoryW(LPWSTR commands, DWORD command_buffer_length, LPWSTR exe_name);
134#define GetConsoleCommandHistory __MINGW_NAME_AW(GetConsoleCommandHistory)
135
136#if (_WIN32_WINNT >= 0x0501)
137WINBASEAPI DWORD APIENTRY GetConsoleProcessList(LPDWORD process_list, DWORD process_count);
138#endif /* _WIN32_WINNT >= 0x0501 */
139
140#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
141
142#ifdef __cplusplus
143}
144#endif
145
146#endif /* _APISETCONSOLEL3_ */
lib/libc/include/any-windows-any/control.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/control.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/control.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/corecrt_wstdlib.h+9-1
......@@ -10,6 +10,15 @@
1010
1111#ifdef __cplusplus
1212extern "C" {
13#endif
14
15#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
16#pragma push_macro("_wdupenv_s")
17#undef _wdupenv_s
18#endif
19 _CRTIMP errno_t __cdecl _wdupenv_s(wchar_t **_Buffer,size_t *_BufferSizeInWords,const wchar_t *_VarName);
20#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
21#pragma pop_macro("_wdupenv_s")
1322#endif
1423
1524 _CRTIMP errno_t __cdecl _itow_s (int _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
......@@ -24,7 +33,6 @@ extern "C" {
2433 _CRTIMP errno_t __cdecl _wgetenv_s(size_t *_ReturnSize,wchar_t *_DstBuf,size_t _DstSizeInWords,const wchar_t *_VarName);
2534 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t,_wgetenv_s,size_t*,_ReturnSize,wchar_t,_DstBuf,const wchar_t*,_VarName)
2635
27 _CRTIMP errno_t __cdecl _wdupenv_s(wchar_t **_Buffer,size_t *_BufferSizeInWords,const wchar_t *_VarName);
2836 _CRTIMP errno_t __cdecl _i64tow_s(__int64 _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
2937 _CRTIMP errno_t __cdecl _ui64tow_s(unsigned __int64 _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
3038
lib/libc/include/any-windows-any/credentialprovider.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/credentialprovider.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/credentialprovider.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/crtdbg.h+231-1
......@@ -4,6 +4,7 @@
44 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
55 */
66#include <crtdefs.h>
7#include <sal.h>
78
89#ifndef _INC_CRTDBG
910#define _INC_CRTDBG
......@@ -94,13 +95,21 @@ extern "C" {
9495 } _CrtMemState;
9596
9697#ifndef _STATIC_ASSERT
97#if defined(_MSC_VER)
98#if (defined(__cpp_static_assert) && __cpp_static_assert >= 201411L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
99#define _STATIC_ASSERT(expr) static_assert(expr)
100#elif defined(__cpp_static_assert)
101#define _STATIC_ASSERT(expr) static_assert(expr, #expr)
102#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
103#define _STATIC_ASSERT(expr) _Static_assert(expr, #expr)
104#elif defined(_MSC_VER)
98105#define _STATIC_ASSERT(expr) typedef char __static_assert_t[(expr)]
99106#else
100107#define _STATIC_ASSERT(expr) extern void __static_assert_t(int [(expr)?1:-1])
101108#endif
102109#endif
103110
111#ifndef _DEBUG
112
104113#ifndef _ASSERT
105114#define _ASSERT(expr) ((void)0)
106115#endif
......@@ -208,6 +217,227 @@ extern "C" {
208217#define _CrtSetCheckCount(f) ((int)0)
209218#define _CrtGetCheckCount() ((int)0)
210219
220#else /* _DEBUG */
221
222_CRTIMP long * __cdecl __p__crtAssertBusy(void);
223#define _crtAssertBusy (*__p__crtAssertBusy())
224
225_CRTIMP _CRT_REPORT_HOOK __cdecl _CrtGetReportHook(void);
226_CRTIMP _CRT_REPORT_HOOK __cdecl _CrtSetReportHook(_CRT_REPORT_HOOK _PFnNewHook);
227_CRTIMP int __cdecl _CrtSetReportHook2(int _Mode, _CRT_REPORT_HOOK _PFnNewHook);
228_CRTIMP int __cdecl _CrtSetReportHookW2(int _Mode, _CRT_REPORT_HOOKW _PFnNewHook);
229_CRTIMP int __cdecl _CrtSetReportMode(int _ReportType, int _ReportMode);
230_CRTIMP _HFILE __cdecl _CrtSetReportFile(int _ReportType, _HFILE _ReportFile);
231_CRTIMP int __cdecl _CrtDbgReport(int _ReportType, const char * _Filename, int _Linenumber, const char * _ModuleName, const char * _Format, ...);
232_CRTIMP size_t __cdecl _CrtSetDebugFillThreshold(size_t _NewDebugFillThreshold);
233_CRTIMP int __cdecl _CrtDbgReportW(int _ReportType, const wchar_t * _Filename, int _LineNumber, const wchar_t * _ModuleName, const wchar_t * _Format, ...);
234
235#define _ASSERT_EXPR(expr, msg) \
236 (void) ((!!(expr)) || \
237 (1 != _CrtDbgReportW(_CRT_ASSERT, _CRT_WIDE(__FILE__), __LINE__, NULL, msg)) || \
238 (_CrtDbgBreak(), 0))
239
240#ifndef _ASSERT
241#define _ASSERT(expr) _ASSERT_EXPR((expr), NULL)
242#endif
243
244#ifndef _ASSERTE
245#define _ASSERTE(expr) _ASSERT_EXPR((expr), _CRT_WIDE(#expr))
246#endif
247
248#ifndef _ASSERT_BASE
249#define _ASSERT_BASE _ASSERT_EXPR
250#endif
251
252#define _RPT_BASE(args) \
253 (void) ((1 != _CrtDbgReport args) || \
254 (_CrtDbgBreak(), 0))
255
256#define _RPT_BASE_W(args) \
257 (void) ((1 != _CrtDbgReportW args) || \
258 (_CrtDbgBreak(), 0))
259
260#define _RPT0(rptno, msg) \
261 _RPT_BASE((rptno, NULL, 0, NULL, "%s", msg))
262
263#define _RPTW0(rptno, msg) \
264 _RPT_BASE_W((rptno, NULL, 0, NULL, L"%s", msg))
265
266#define _RPT1(rptno, msg, arg1) \
267 _RPT_BASE((rptno, NULL, 0, NULL, msg, arg1))
268
269#define _RPTW1(rptno, msg, arg1) \
270 _RPT_BASE_W((rptno, NULL, 0, NULL, msg, arg1))
271
272#define _RPT2(rptno, msg, arg1, arg2) \
273 _RPT_BASE((rptno, NULL, 0, NULL, msg, arg1, arg2))
274
275#define _RPTW2(rptno, msg, arg1, arg2) \
276 _RPT_BASE_W((rptno, NULL, 0, NULL, msg, arg1, arg2))
277
278#define _RPT3(rptno, msg, arg1, arg2, arg3) \
279 _RPT_BASE((rptno, NULL, 0, NULL, msg, arg1, arg2, arg3))
280
281#define _RPTW3(rptno, msg, arg1, arg2, arg3) \
282 _RPT_BASE_W((rptno, NULL, 0, NULL, msg, arg1, arg2, arg3))
283
284#define _RPT4(rptno, msg, arg1, arg2, arg3, arg4) \
285 _RPT_BASE((rptno, NULL, 0, NULL, msg, arg1, arg2, arg3, arg4))
286
287#define _RPTW4(rptno, msg, arg1, arg2, arg3, arg4) \
288 _RPT_BASE_W((rptno, NULL, 0, NULL, msg, arg1, arg2, arg3, arg4))
289
290#define _RPT5(rptno, msg, arg1, arg2, arg3, arg4, arg5) \
291 _RPT_BASE((rptno, NULL, 0, NULL, msg, arg1, arg2, arg3, arg4, arg5))
292
293#define _RPTW5(rptno, msg, arg1, arg2, arg3, arg4, arg5) \
294 _RPT_BASE_W((rptno, NULL, 0, NULL, msg, arg1, arg2, arg3, arg4, arg5))
295
296#define _RPTF0(rptno, msg) \
297 _RPT_BASE((rptno, __FILE__, __LINE__, NULL, "%s", msg))
298
299#define _RPTFW0(rptno, msg) \
300 _RPT_BASE_W((rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, L"%s", msg))
301
302#define _RPTF1(rptno, msg, arg1) \
303 _RPT_BASE((rptno, __FILE__, __LINE__, NULL, msg, arg1))
304
305#define _RPTFW1(rptno, msg, arg1) \
306 _RPT_BASE_W((rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, arg1))
307
308#define _RPTF2(rptno, msg, arg1, arg2) \
309 _RPT_BASE((rptno, __FILE__, __LINE__, NULL, msg, arg1, arg2))
310
311#define _RPTFW2(rptno, msg, arg1, arg2) \
312 _RPT_BASE_W((rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, arg1, arg2))
313
314#define _RPTF3(rptno, msg, arg1, arg2, arg3) \
315 _RPT_BASE((rptno, __FILE__, __LINE__, NULL, msg, arg1, arg2, arg3))
316
317#define _RPTFW3(rptno, msg, arg1, arg2, arg3) \
318 _RPT_BASE_W((rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, arg1, arg2, arg3))
319
320#define _RPTF4(rptno, msg, arg1, arg2, arg3, arg4) \
321 _RPT_BASE((rptno, __FILE__, __LINE__, NULL, msg, arg1, arg2, arg3, arg4))
322
323#define _RPTFW4(rptno, msg, arg1, arg2, arg3, arg4) \
324 _RPT_BASE_W((rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, arg1, arg2, arg3, arg4))
325
326#define _RPTF5(rptno, msg, arg1, arg2, arg3, arg4, arg5) \
327 _RPT_BASE((rptno, __FILE__, __LINE__, NULL, msg, arg1, arg2, arg3, arg4, arg5))
328
329#define _RPTFW5(rptno, msg, arg1, arg2, arg3, arg4, arg5) \
330 _RPT_BASE_W((rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, arg1, arg2, arg3, arg4, arg5))
331
332#define _CrtDbgBreak() __debugbreak()
333
334#ifdef _CRTDBG_MAP_ALLOC
335
336#define malloc(s) _malloc_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
337#define calloc(c, s) _calloc_dbg(c, s, _NORMAL_BLOCK, __FILE__, __LINE__)
338#define realloc(p, s) _realloc_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__)
339#define _recalloc(p, c, s) _recalloc_dbg(p, c, s, _NORMAL_BLOCK, __FILE__, __LINE__)
340#define _expand(p, s) _expand_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__)
341#define free(p) _free_dbg(p, _NORMAL_BLOCK)
342#define _msize(p) _msize_dbg(p, _NORMAL_BLOCK)
343#define _aligned_msize(p, a, o) _aligned_msize_dbg(p, a, o)
344#define _aligned_malloc(s, a) _aligned_malloc_dbg(s, a, __FILE__, __LINE__)
345#define _aligned_realloc(p, s, a) _aligned_realloc_dbg(p, s, a, __FILE__, __LINE__)
346#define _aligned_recalloc(p, c, s, a) _aligned_recalloc_dbg(p, c, s, a, __FILE__, __LINE__)
347#define _aligned_offset_malloc(s, a, o) _aligned_offset_malloc_dbg(s, a, o, __FILE__, __LINE__)
348#define _aligned_offset_realloc(p, s, a, o) _aligned_offset_realloc_dbg(p, s, a, o, __FILE__, __LINE__)
349#define _aligned_offset_recalloc(p, c, s, a, o) _aligned_offset_recalloc_dbg(p, c, s, a, o, __FILE__, __LINE__)
350#define _aligned_free(p) _aligned_free_dbg(p)
351
352#define _malloca(s) _malloca_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
353#define _freea(p) _freea_dbg(p, _NORMAL_BLOCK)
354
355#define _strdup(s) _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
356#define _wcsdup(s) _wcsdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
357#define _mbsdup(s) _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
358#define _tempnam(s1, s2) _tempnam_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__)
359#define _wtempnam(s1, s2) _wtempnam_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__)
360#define _fullpath(s1, s2, le) _fullpath_dbg(s1, s2, le, _NORMAL_BLOCK, __FILE__, __LINE__)
361#define _wfullpath(s1, s2, le) _wfullpath_dbg(s1, s2, le, _NORMAL_BLOCK, __FILE__, __LINE__)
362#define _getcwd(s, le) _getcwd_dbg(s, le, _NORMAL_BLOCK, __FILE__, __LINE__)
363#define _wgetcwd(s, le) _wgetcwd_dbg(s, le, _NORMAL_BLOCK, __FILE__, __LINE__)
364#define _getdcwd(d, s, le) _getdcwd_dbg(d, s, le, _NORMAL_BLOCK, __FILE__, __LINE__)
365#define _wgetdcwd(d, s, le) _wgetdcwd_dbg(d, s, le, _NORMAL_BLOCK, __FILE__, __LINE__)
366#define _getdcwd_nolock(d, s, le) _getdcwd_lk_dbg(d, s, le, _NORMAL_BLOCK, __FILE__, __LINE__)
367#define _wgetdcwd_nolock(d, s, le) _wgetdcwd_lk_dbg(d, s, le, _NORMAL_BLOCK, __FILE__, __LINE__)
368#define _dupenv_s(ps1, size, s2) _dupenv_s_dbg(ps1, size, s2, _NORMAL_BLOCK, __FILE__, __LINE__)
369#define _wdupenv_s(ps1, size, s2) _wdupenv_s_dbg(ps1, size, s2, _NORMAL_BLOCK, __FILE__, __LINE__)
370
371#define strdup(s) _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
372#define wcsdup(s) _wcsdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
373#define tempnam(s1, s2) _tempnam_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__)
374#define getcwd(s, le) _getcwd_dbg(s, le, _NORMAL_BLOCK, __FILE__, __LINE__)
375
376#endif /* _CRTDBG_MAP_ALLOC */
377
378_CRTIMP long * __cdecl __p__crtBreakAlloc(void);
379#define _crtBreakAlloc (*__p__crtBreakAlloc())
380
381_CRTIMP long __cdecl _CrtSetBreakAlloc(long _BreakAlloc);
382
383_CRTIMP __checkReturn void * __cdecl _malloc_dbg(size_t _Size, int _BlockType, const char * _Filename, int _LineNumber);
384_CRTIMP __checkReturn void * __cdecl _calloc_dbg(size_t _NumOfElements, size_t _SizeOfElements, int _BlockType, const char * _Filename, int _LineNumber);
385_CRTIMP __checkReturn void * __cdecl _realloc_dbg(void * _Memory, size_t _NewSize, int _BlockType, const char * _Filename, int _LineNumber);
386_CRTIMP __checkReturn void * __cdecl _recalloc_dbg(void * _Memory, size_t _NumOfElements, size_t _SizeOfElements, int _BlockType, const char * _Filename, int _LineNumber);
387_CRTIMP __checkReturn void * __cdecl _expand_dbg(void * _Memory, size_t _NewSize, int _BlockType, const char * _Filename, int _LineNumber);
388_CRTIMP void __cdecl _free_dbg(void * _Memory, int _BlockType);
389_CRTIMP size_t __cdecl _msize_dbg(void * _Memory, int _BlockType);
390_CRTIMP size_t __cdecl _aligned_msize_dbg(void * _Memory, size_t _Alignment, size_t _Offset);
391_CRTIMP __checkReturn void * __cdecl _aligned_malloc_dbg(size_t _Size, size_t _Alignment, const char * _Filename, int _LineNumber);
392_CRTIMP __checkReturn void * __cdecl _aligned_realloc_dbg(void * _Memory, size_t _Size, size_t _Alignment, const char * _Filename, int _LineNumber);
393_CRTIMP __checkReturn void * __cdecl _aligned_recalloc_dbg(void * _Memory, size_t _NumOfElements, size_t _SizeOfElements, size_t _Alignment, const char * _Filename, int _LineNumber);
394_CRTIMP __checkReturn void * __cdecl _aligned_offset_malloc_dbg(size_t _Size, size_t _Alignment, size_t _Offset, const char * _Filename, int _LineNumber);
395_CRTIMP __checkReturn void * __cdecl _aligned_offset_realloc_dbg(void * _Memory, size_t _Size, size_t _Alignment, size_t _Offset, const char * _Filename, int _LineNumber);
396_CRTIMP __checkReturn void * __cdecl _aligned_offset_recalloc_dbg(void * _Memory, size_t _NumOfElements, size_t _SizeOfElements, size_t _Alignment, size_t _Offset, const char * _Filename, int _LineNumber);
397_CRTIMP void __cdecl _aligned_free_dbg(void * _Memory);
398_CRTIMP __checkReturn char * __cdecl _strdup_dbg(const char * _Str, int _BlockType, const char * _Filename, int _LineNumber);
399_CRTIMP __checkReturn wchar_t * __cdecl _wcsdup_dbg(const wchar_t * _Str, int _BlockType, const char * _Filename, int _LineNumber);
400_CRTIMP __checkReturn char * __cdecl _tempnam_dbg(const char * _DirName, const char * _FilePrefix, int _BlockType, const char * _Filename, int _LineNumber);
401_CRTIMP __checkReturn wchar_t * __cdecl _wtempnam_dbg(const wchar_t * _DirName, const wchar_t * _FilePrefix, int _BlockType, const char * _Filename, int _LineNumber);
402_CRTIMP __checkReturn char * __cdecl _fullpath_dbg(char * _FullPath, const char * _Path, size_t _SizeInBytes, int _BlockType, const char * _Filename, int _LineNumber);
403_CRTIMP __checkReturn wchar_t * __cdecl _wfullpath_dbg(wchar_t * _FullPath, const wchar_t * _Path, size_t _SizeInWords, int _BlockType, const char * _Filename, int _LineNumber);
404_CRTIMP __checkReturn char * __cdecl _getcwd_dbg(char * _DstBuf, int _SizeInBytes, int _BlockType, const char * _Filename, int _LineNumber);
405_CRTIMP __checkReturn wchar_t * __cdecl _wgetcwd_dbg(wchar_t * _DstBuf, int _SizeInWords, int _BlockType, const char * _Filename, int _LineNumber);
406_CRTIMP __checkReturn char * __cdecl _getdcwd_dbg(int _Drive, char * _DstBuf, int _SizeInBytes, int _BlockType, const char * _Filename, int _LineNumber);
407_CRTIMP __checkReturn wchar_t * __cdecl _wgetdcwd_dbg(int _Drive, wchar_t * _DstBuf, int _SizeInWords, int _BlockType, const char * _Filename, int _LineNumber);
408__checkReturn char * __cdecl _getdcwd_lk_dbg(int _Drive, char * _DstBuf, int _SizeInBytes, int _BlockType, const char * _Filename, int _LineNumber);
409__checkReturn wchar_t * __cdecl _wgetdcwd_lk_dbg(int _Drive, wchar_t * _DstBuf, int _SizeInWords, int _BlockType, const char * _Filename, int _LineNumber);
410_CRTIMP __checkReturn errno_t __cdecl _dupenv_s_dbg(char ** _PBuffer, size_t * _PBufferSizeInBytes, const char * _VarName, int _BlockType, const char * _Filename, int _LineNumber);
411_CRTIMP __checkReturn errno_t __cdecl _wdupenv_s_dbg(wchar_t ** _PBuffer, size_t * _PBufferSizeInWords, const wchar_t * _VarName, int _BlockType, const char * _Filename, int _LineNumber);
412
413#define _malloca_dbg(s, t, f, l) _malloc_dbg(s, t, f, l)
414#define _freea_dbg(p, t) _free_dbg(p, t)
415
416_CRTIMP _CRT_ALLOC_HOOK __cdecl _CrtGetAllocHook(void);
417_CRTIMP _CRT_ALLOC_HOOK __cdecl _CrtSetAllocHook(_CRT_ALLOC_HOOK _PfnNewHook);
418
419_CRTIMP int * __cdecl __p__crtDbgFlag(void);
420#define _crtDbgFlag (*__p__crtDbgFlag())
421
422_CRTIMP int __cdecl _CrtCheckMemory(void);
423_CRTIMP int __cdecl _CrtSetDbgFlag(int _NewFlag);
424_CRTIMP void __cdecl _CrtDoForAllClientObjects(void (__cdecl *_PFn)(void *, void *), void * _Context);
425_CRTIMP __checkReturn int __cdecl _CrtIsValidPointer(const void * _Ptr, unsigned int _Bytes, int _ReadWrite);
426_CRTIMP __checkReturn int __cdecl _CrtIsValidHeapPointer(const void * _HeapPtr);
427_CRTIMP int __cdecl _CrtIsMemoryBlock(const void * _Memory, unsigned int _Bytes, long * _RequestNumber, char ** _Filename, int * _LineNumber);
428_CRTIMP __checkReturn int __cdecl _CrtReportBlockType(const void * _Memory);
429_CRTIMP _CRT_DUMP_CLIENT __cdecl _CrtGetDumpClient(void);
430_CRTIMP _CRT_DUMP_CLIENT __cdecl _CrtSetDumpClient(_CRT_DUMP_CLIENT _PFnNewDump);
431_CRTIMP _CRT_MANAGED_HEAP_DEPRECATE void __cdecl _CrtMemCheckpoint(_CrtMemState * _State);
432_CRTIMP _CRT_MANAGED_HEAP_DEPRECATE int __cdecl _CrtMemDifference(_CrtMemState * _State, const _CrtMemState * _OldState, const _CrtMemState * _NewState);
433_CRTIMP void __cdecl _CrtMemDumpAllObjectsSince(const _CrtMemState * _State);
434_CRTIMP void __cdecl _CrtMemDumpStatistics(const _CrtMemState * _State);
435_CRTIMP int __cdecl _CrtDumpMemoryLeaks(void);
436_CRTIMP int __cdecl _CrtSetCheckCount(int _CheckCount);
437_CRTIMP int __cdecl _CrtGetCheckCount(void);
438
439#endif /* _DEBUG */
440
211441#ifdef __cplusplus
212442}
213443/*
lib/libc/include/any-windows-any/ctfutb.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/ctfutb.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/ctfutb.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/ctxtcall.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/ctxtcall.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/ctxtcall.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/ctype.h+41-31
......@@ -111,35 +111,38 @@ extern "C" {
111111 _CRTIMP int __cdecl __toascii(int _C);
112112 _CRTIMP int __cdecl __iscsymf(int _C);
113113 _CRTIMP int __cdecl __iscsym(int _C);
114
115#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES) || defined (__cplusplus)
116int __cdecl isblank(int _C);
117#endif
114#if __MSVCRT_VERSION__ >= 0xC00
115 _CRTIMP int __cdecl isblank(int _C);
116 _CRTIMP int __cdecl _isblank_l(int _C,_locale_t _Locale);
117#else
118 int __cdecl isblank(int _C);
119#endif /* msvcr120 */
118120#endif
119121
120122#ifndef _WCTYPE_DEFINED
121123#define _WCTYPE_DEFINED
122124
123 int __cdecl iswalpha(wint_t _C);
124 int __cdecl iswupper(wint_t _C);
125 int __cdecl iswlower(wint_t _C);
126 int __cdecl iswdigit(wint_t _C);
127 int __cdecl iswxdigit(wint_t _C);
128 int __cdecl iswspace(wint_t _C);
129 int __cdecl iswpunct(wint_t _C);
130 int __cdecl iswalnum(wint_t _C);
131 int __cdecl iswprint(wint_t _C);
132 int __cdecl iswgraph(wint_t _C);
133 int __cdecl iswcntrl(wint_t _C);
134 int __cdecl iswascii(wint_t _C);
125 _CRTIMP int __cdecl iswalpha(wint_t _C);
126 _CRTIMP int __cdecl iswupper(wint_t _C);
127 _CRTIMP int __cdecl iswlower(wint_t _C);
128 _CRTIMP int __cdecl iswdigit(wint_t _C);
129 _CRTIMP int __cdecl iswxdigit(wint_t _C);
130 _CRTIMP int __cdecl iswspace(wint_t _C);
131 _CRTIMP int __cdecl iswpunct(wint_t _C);
132 _CRTIMP int __cdecl iswalnum(wint_t _C);
133 _CRTIMP int __cdecl iswprint(wint_t _C);
134 _CRTIMP int __cdecl iswgraph(wint_t _C);
135 _CRTIMP int __cdecl iswcntrl(wint_t _C);
136 _CRTIMP int __cdecl iswascii(wint_t _C);
135137#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
136 int __cdecl isleadbyte(int _C);
138 _CRTIMP int __cdecl isleadbyte(int _C);
137139#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
138 wint_t __cdecl towupper(wint_t _C);
139 wint_t __cdecl towlower(wint_t _C);
140 int __cdecl iswctype(wint_t _C,wctype_t _Type);
141#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x700 && _WIN32_WINNT >= 0x0600)
142 /* These are available since msvcr80.dll, and in msvcrt.dll since Vista. */
140 _CRTIMP wint_t __cdecl towupper(wint_t _C);
141 _CRTIMP wint_t __cdecl towlower(wint_t _C);
142 _CRTIMP int __cdecl iswctype(wint_t _C,wctype_t _Type);
143#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x600 && _WIN32_WINNT >= 0x0600)
144 /* These are available since msvcr80.dll (__MSVCRT_VERSION__ >= 0x800), and in
145 * msvcrt.dll (__MSVCRT_VERSION__ == 0x600) since Vista (_WIN32_WINNT >= 0x0600). */
143146 _CRTIMP int __cdecl _iswalpha_l(wint_t _C,_locale_t _Locale);
144147 _CRTIMP int __cdecl _iswupper_l(wint_t _C,_locale_t _Locale);
145148 _CRTIMP int __cdecl _iswlower_l(wint_t _C,_locale_t _Locale);
......@@ -166,12 +169,15 @@ int __cdecl isblank(int _C);
166169 _CRTIMP int __cdecl _iswcsym_l(wint_t _C,_locale_t _Locale);
167170#endif
168171#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
169 int __cdecl is_wctype(wint_t _C,wctype_t _Type);
172 _CRTIMP int __cdecl is_wctype(wint_t _C,wctype_t _Type);
170173#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
171174
172#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES) || defined (__cplusplus)
173int __cdecl iswblank(wint_t _C);
174#endif
175#if __MSVCRT_VERSION__ >= 0xC00
176 _CRTIMP int __cdecl iswblank(wint_t _C);
177 _CRTIMP int __cdecl _iswblank_l(wint_t _C,_locale_t _Locale);
178#else
179 int __cdecl iswblank(wint_t _C);
180#endif /* msvcr120 */
175181#endif
176182
177183#ifndef _CTYPE_DISABLE_MACROS
......@@ -225,7 +231,8 @@ _CRTIMP int __cdecl ___mb_cur_max_func(void);
225231#define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))
226232#define iswcntrl(_c) (iswctype(_c,_CONTROL))
227233#define iswascii(_c) ((unsigned)(_c) < 0x80)
228#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x700 && _WIN32_WINNT >= 0x0600)
234#define iswblank(_c) (iswctype(_c,_SPACE) || ((_c)=='\t'))
235#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x600 && _WIN32_WINNT >= 0x0600)
229236# define _iswalpha_l(_c,_p) (_iswctype_l(_c,_ALPHA,_p))
230237# define _iswupper_l(_c,_p) (_iswctype_l(_c,_UPPER,_p))
231238# define _iswlower_l(_c,_p) (_iswctype_l(_c,_LOWER,_p))
......@@ -238,7 +245,10 @@ _CRTIMP int __cdecl ___mb_cur_max_func(void);
238245# define _iswgraph_l(_c,_p) (_iswctype_l(_c,_PUNCT|_ALPHA|_DIGIT,_p))
239246# define _iswcntrl_l(_c,_p) (_iswctype_l(_c,_CONTROL,_p))
240247#endif /* __MSVCRT_VERSION__ >= 0x800 */
248#if __MSVCRT_VERSION__ >= 0xC00
249#define _iswblank_l(_c,_p) (_iswctype_l(_c,_BLANK,_p) || ((_c)=='\t'))
241250#endif
251#endif /* __cplusplus */
242252#endif
243253
244254#define __iscsymf(_c) (isalpha(_c) || ((_c)=='_'))
......@@ -253,10 +263,10 @@ _CRTIMP int __cdecl ___mb_cur_max_func(void);
253263
254264#ifndef NO_OLDNAMES
255265#ifndef _CTYPE_DEFINED
256 int __cdecl isascii(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
257 int __cdecl toascii(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
258 int __cdecl iscsymf(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
259 int __cdecl iscsym(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
266 _CRTIMP int __cdecl isascii(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
267 _CRTIMP int __cdecl toascii(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
268 _CRTIMP int __cdecl iscsymf(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
269 _CRTIMP int __cdecl iscsym(int _C) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
260270#else
261271#define isascii __isascii
262272#define toascii __toascii
lib/libc/include/any-windows-any/d3d10.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d10.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d10.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d10_1.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d10_1.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d10_1.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d10effect.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d10effect.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d10effect.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d10sdklayers.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d10sdklayers.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d10sdklayers.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d10shader.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d10shader.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d10shader.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d11.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d11.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d11.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d11_1.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d11_1.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d11_1.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d11_2.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d11_2.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d11_2.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d11_3.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d11_3.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d11_3.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d11_4.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d11_4.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d11_4.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d11on12.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d11on12.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d11on12.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d11sdklayers.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d11sdklayers.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d11sdklayers.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d12.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d12.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d12.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d12sdklayers.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d12sdklayers.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d12sdklayers.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d12shader.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d12shader.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d12shader.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3d12video.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3d12video.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3d12video.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/d3dcommon.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/d3dcommon.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/d3dcommon.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dbgprop.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dbgprop.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dbgprop.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dcommon.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dcommon.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dcommon.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dcompanimation.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dcompanimation.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dcompanimation.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/ddstream.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/ddstream.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/ddstream.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/devicetopology.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/devicetopology.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/devicetopology.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dimm.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dimm.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dimm.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dinputd.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dinputd.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dinputd.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/direct.h+33
......@@ -25,10 +25,23 @@ extern "C" {
2525 };
2626#endif
2727
28#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
29#pragma push_macro("_getcwd")
30#undef _getcwd
31#pragma push_macro("_getdcwd")
32#undef _getdcwd
33#pragma push_macro("_getdcwd_nolock")
34#undef _getdcwd_nolock
35#endif
2836 _CRTIMP char *__cdecl _getcwd(char *_DstBuf,int _SizeInBytes);
2937 _CRTIMP char *__cdecl _getdcwd(int _Drive,char *_DstBuf,int _SizeInBytes);
3038#if __MSVCRT_VERSION__ >= 0x800
3139 char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
40#endif
41#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
42#pragma pop_macro("_getcwd")
43#pragma pop_macro("_getdcwd")
44#pragma pop_macro("_getdcwd_nolock")
3245#endif
3346 _CRTIMP int __cdecl _chdir(const char *_Path);
3447 _CRTIMP int __cdecl _mkdir(const char *_Path);
......@@ -46,10 +59,23 @@ extern "C" {
4659
4760#ifndef _WDIRECT_DEFINED
4861#define _WDIRECT_DEFINED
62#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
63#pragma push_macro("_wgetcwd")
64#undef _wgetcwd
65#pragma push_macro("_wgetdcwd")
66#undef _wgetdcwd
67#pragma push_macro("_wgetdcwd_nolock")
68#undef _wgetdcwd_nolock
69#endif
4970 _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
5071 _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
5172#if __MSVCRT_VERSION__ >= 0x800
5273 wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
74#endif
75#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
76#pragma pop_macro("_wgetcwd")
77#pragma pop_macro("_wgetdcwd")
78#pragma pop_macro("_wgetdcwd_nolock")
5379#endif
5480 _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
5581 _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
......@@ -60,7 +86,14 @@ extern "C" {
6086
6187#define diskfree_t _diskfree_t
6288
89#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
90#pragma push_macro("getcwd")
91#undef getcwd
92#endif
6393 char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
94#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
95#pragma pop_macro("getcwd")
96#endif
6497 int __cdecl chdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
6598 int __cdecl mkdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
6699 int __cdecl rmdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
lib/libc/include/any-windows-any/directmanipulation.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/directmanipulation.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/directmanipulation.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dispex.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dispex.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dispex.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dmodshow.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dmodshow.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dmodshow.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/docobj.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/docobj.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/docobj.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/docobjectservice.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/docobjectservice.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/docobjectservice.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/documenttarget.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/documenttarget.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/documenttarget.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/downloadmgr.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/downloadmgr.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/downloadmgr.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/drmexternals.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/drmexternals.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/drmexternals.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dvdif.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dvdif.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dvdif.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dwrite.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dwrite.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dwrite.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dwrite_1.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dwrite_1.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dwrite_1.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dwrite_2.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dwrite_2.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dwrite_2.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dwrite_3.h+1053-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dwrite_3.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dwrite_3.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
......@@ -378,6 +378,30 @@ interface IDWriteFactory7;
378378#endif /* __cplusplus */
379379#endif
380380
381#ifndef __IDWriteFactory8_FWD_DEFINED__
382#define __IDWriteFactory8_FWD_DEFINED__
383typedef interface IDWriteFactory8 IDWriteFactory8;
384#ifdef __cplusplus
385interface IDWriteFactory8;
386#endif /* __cplusplus */
387#endif
388
389#ifndef __IDWriteBitmapRenderTarget2_FWD_DEFINED__
390#define __IDWriteBitmapRenderTarget2_FWD_DEFINED__
391typedef interface IDWriteBitmapRenderTarget2 IDWriteBitmapRenderTarget2;
392#ifdef __cplusplus
393interface IDWriteBitmapRenderTarget2;
394#endif /* __cplusplus */
395#endif
396
397#ifndef __IDWriteBitmapRenderTarget3_FWD_DEFINED__
398#define __IDWriteBitmapRenderTarget3_FWD_DEFINED__
399typedef interface IDWriteBitmapRenderTarget3 IDWriteBitmapRenderTarget3;
400#ifdef __cplusplus
401interface IDWriteBitmapRenderTarget3;
402#endif /* __cplusplus */
403#endif
404
381405/* Headers for imported files */
382406
383407#include <dwrite_2.h>
......@@ -571,11 +595,14 @@ typedef enum DWRITE_PAINT_TYPE {
571595 DWRITE_PAINT_TYPE_TRANSFORM = 9,
572596 DWRITE_PAINT_TYPE_COMPOSITE = 10
573597} DWRITE_PAINT_TYPE;
598#ifndef DWRITE_PAINT_FEATURE_LEVEL_DEFINED
599#define DWRITE_PAINT_FEATURE_LEVEL_DEFINED
574600typedef enum DWRITE_PAINT_FEATURE_LEVEL {
575601 DWRITE_PAINT_FEATURE_LEVEL_NONE = 0,
576602 DWRITE_PAINT_FEATURE_LEVEL_COLR_V0 = 1,
577603 DWRITE_PAINT_FEATURE_LEVEL_COLR_V1 = 2
578604} DWRITE_PAINT_FEATURE_LEVEL;
605#endif /* DWRITE_PAINT_FEATURE_LEVEL_DEFINED */
579606typedef enum DWRITE_PAINT_ATTRIBUTES {
580607 DWRITE_PAINT_ATTRIBUTES_NONE = 0,
581608 DWRITE_PAINT_ATTRIBUTES_USES_PALETTE = 0x1,
......@@ -14125,6 +14152,1031 @@ static inline HRESULT IDWriteFactory7_GetSystemFontCollection(IDWriteFactory7* T
1412514152
1412614153#endif /* __IDWriteFactory7_INTERFACE_DEFINED__ */
1412714154
14155/*****************************************************************************
14156 * IDWriteFactory8 interface
14157 */
14158#ifndef __IDWriteFactory8_INTERFACE_DEFINED__
14159#define __IDWriteFactory8_INTERFACE_DEFINED__
14160
14161DEFINE_GUID(IID_IDWriteFactory8, 0xee0a7fb5, 0xdef4, 0x4c23, 0xa4,0x54, 0xc9,0xc7,0xdc,0x87,0x83,0x98);
14162#if defined(__cplusplus) && !defined(CINTERFACE)
14163MIDL_INTERFACE("ee0a7fb5-def4-4c23-a454-c9c7dc878398")
14164IDWriteFactory8 : public IDWriteFactory7
14165{
14166 virtual HRESULT STDMETHODCALLTYPE TranslateColorGlyphRun(
14167 D2D1_POINT_2F origin,
14168 const DWRITE_GLYPH_RUN *glyph_run,
14169 const DWRITE_GLYPH_RUN_DESCRIPTION *glyph_run_desc,
14170 DWRITE_GLYPH_IMAGE_FORMATS image_formats,
14171 DWRITE_PAINT_FEATURE_LEVEL feature_level,
14172 DWRITE_MEASURING_MODE measuring_mode,
14173 const DWRITE_MATRIX *world_and_dpi_transform,
14174 UINT32 palette_index,
14175 IDWriteColorGlyphRunEnumerator1 **enumerator) = 0;
14176
14177};
14178#ifdef __CRT_UUID_DECL
14179__CRT_UUID_DECL(IDWriteFactory8, 0xee0a7fb5, 0xdef4, 0x4c23, 0xa4,0x54, 0xc9,0xc7,0xdc,0x87,0x83,0x98)
14180#endif
14181#else
14182typedef struct IDWriteFactory8Vtbl {
14183 BEGIN_INTERFACE
14184
14185 /*** IUnknown methods ***/
14186 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
14187 IDWriteFactory8 *This,
14188 REFIID riid,
14189 void **ppvObject);
14190
14191 ULONG (STDMETHODCALLTYPE *AddRef)(
14192 IDWriteFactory8 *This);
14193
14194 ULONG (STDMETHODCALLTYPE *Release)(
14195 IDWriteFactory8 *This);
14196
14197 /*** IDWriteFactory methods ***/
14198 HRESULT (STDMETHODCALLTYPE *GetSystemFontCollection)(
14199 IDWriteFactory8 *This,
14200 IDWriteFontCollection **collection,
14201 WINBOOL check_for_updates);
14202
14203 HRESULT (STDMETHODCALLTYPE *CreateCustomFontCollection)(
14204 IDWriteFactory8 *This,
14205 IDWriteFontCollectionLoader *loader,
14206 const void *key,
14207 UINT32 key_size,
14208 IDWriteFontCollection **collection);
14209
14210 HRESULT (STDMETHODCALLTYPE *RegisterFontCollectionLoader)(
14211 IDWriteFactory8 *This,
14212 IDWriteFontCollectionLoader *loader);
14213
14214 HRESULT (STDMETHODCALLTYPE *UnregisterFontCollectionLoader)(
14215 IDWriteFactory8 *This,
14216 IDWriteFontCollectionLoader *loader);
14217
14218 HRESULT (STDMETHODCALLTYPE *CreateFontFileReference)(
14219 IDWriteFactory8 *This,
14220 const WCHAR *path,
14221 const FILETIME *writetime,
14222 IDWriteFontFile **font_file);
14223
14224 HRESULT (STDMETHODCALLTYPE *CreateCustomFontFileReference)(
14225 IDWriteFactory8 *This,
14226 const void *reference_key,
14227 UINT32 key_size,
14228 IDWriteFontFileLoader *loader,
14229 IDWriteFontFile **font_file);
14230
14231 HRESULT (STDMETHODCALLTYPE *CreateFontFace)(
14232 IDWriteFactory8 *This,
14233 DWRITE_FONT_FACE_TYPE facetype,
14234 UINT32 files_number,
14235 IDWriteFontFile *const *font_files,
14236 UINT32 index,
14237 DWRITE_FONT_SIMULATIONS sim_flags,
14238 IDWriteFontFace **font_face);
14239
14240 HRESULT (STDMETHODCALLTYPE *CreateRenderingParams)(
14241 IDWriteFactory8 *This,
14242 IDWriteRenderingParams **params);
14243
14244 HRESULT (STDMETHODCALLTYPE *CreateMonitorRenderingParams)(
14245 IDWriteFactory8 *This,
14246 HMONITOR monitor,
14247 IDWriteRenderingParams **params);
14248
14249 HRESULT (STDMETHODCALLTYPE *CreateCustomRenderingParams)(
14250 IDWriteFactory8 *This,
14251 FLOAT gamma,
14252 FLOAT enhancedContrast,
14253 FLOAT cleartype_level,
14254 DWRITE_PIXEL_GEOMETRY geometry,
14255 DWRITE_RENDERING_MODE mode,
14256 IDWriteRenderingParams **params);
14257
14258 HRESULT (STDMETHODCALLTYPE *RegisterFontFileLoader)(
14259 IDWriteFactory8 *This,
14260 IDWriteFontFileLoader *loader);
14261
14262 HRESULT (STDMETHODCALLTYPE *UnregisterFontFileLoader)(
14263 IDWriteFactory8 *This,
14264 IDWriteFontFileLoader *loader);
14265
14266 HRESULT (STDMETHODCALLTYPE *CreateTextFormat)(
14267 IDWriteFactory8 *This,
14268 const WCHAR *family_name,
14269 IDWriteFontCollection *collection,
14270 DWRITE_FONT_WEIGHT weight,
14271 DWRITE_FONT_STYLE style,
14272 DWRITE_FONT_STRETCH stretch,
14273 FLOAT size,
14274 const WCHAR *locale,
14275 IDWriteTextFormat **format);
14276
14277 HRESULT (STDMETHODCALLTYPE *CreateTypography)(
14278 IDWriteFactory8 *This,
14279 IDWriteTypography **typography);
14280
14281 HRESULT (STDMETHODCALLTYPE *GetGdiInterop)(
14282 IDWriteFactory8 *This,
14283 IDWriteGdiInterop **gdi_interop);
14284
14285 HRESULT (STDMETHODCALLTYPE *CreateTextLayout)(
14286 IDWriteFactory8 *This,
14287 const WCHAR *string,
14288 UINT32 len,
14289 IDWriteTextFormat *format,
14290 FLOAT max_width,
14291 FLOAT max_height,
14292 IDWriteTextLayout **layout);
14293
14294 HRESULT (STDMETHODCALLTYPE *CreateGdiCompatibleTextLayout)(
14295 IDWriteFactory8 *This,
14296 const WCHAR *string,
14297 UINT32 len,
14298 IDWriteTextFormat *format,
14299 FLOAT layout_width,
14300 FLOAT layout_height,
14301 FLOAT pixels_per_dip,
14302 const DWRITE_MATRIX *transform,
14303 WINBOOL use_gdi_natural,
14304 IDWriteTextLayout **layout);
14305
14306 HRESULT (STDMETHODCALLTYPE *CreateEllipsisTrimmingSign)(
14307 IDWriteFactory8 *This,
14308 IDWriteTextFormat *format,
14309 IDWriteInlineObject **trimming_sign);
14310
14311 HRESULT (STDMETHODCALLTYPE *CreateTextAnalyzer)(
14312 IDWriteFactory8 *This,
14313 IDWriteTextAnalyzer **analyzer);
14314
14315 HRESULT (STDMETHODCALLTYPE *CreateNumberSubstitution)(
14316 IDWriteFactory8 *This,
14317 DWRITE_NUMBER_SUBSTITUTION_METHOD method,
14318 const WCHAR *locale,
14319 WINBOOL ignore_user_override,
14320 IDWriteNumberSubstitution **substitution);
14321
14322 HRESULT (STDMETHODCALLTYPE *CreateGlyphRunAnalysis)(
14323 IDWriteFactory8 *This,
14324 const DWRITE_GLYPH_RUN *glyph_run,
14325 FLOAT pixels_per_dip,
14326 const DWRITE_MATRIX *transform,
14327 DWRITE_RENDERING_MODE rendering_mode,
14328 DWRITE_MEASURING_MODE measuring_mode,
14329 FLOAT baseline_x,
14330 FLOAT baseline_y,
14331 IDWriteGlyphRunAnalysis **analysis);
14332
14333 /*** IDWriteFactory1 methods ***/
14334 HRESULT (STDMETHODCALLTYPE *GetEudcFontCollection)(
14335 IDWriteFactory8 *This,
14336 IDWriteFontCollection **collection,
14337 WINBOOL check_for_updates);
14338
14339 HRESULT (STDMETHODCALLTYPE *IDWriteFactory1_CreateCustomRenderingParams)(
14340 IDWriteFactory8 *This,
14341 FLOAT gamma,
14342 FLOAT enhcontrast,
14343 FLOAT enhcontrast_grayscale,
14344 FLOAT cleartype_level,
14345 DWRITE_PIXEL_GEOMETRY geometry,
14346 DWRITE_RENDERING_MODE mode,
14347 IDWriteRenderingParams1 **params);
14348
14349 /*** IDWriteFactory2 methods ***/
14350 HRESULT (STDMETHODCALLTYPE *GetSystemFontFallback)(
14351 IDWriteFactory8 *This,
14352 IDWriteFontFallback **fallback);
14353
14354 HRESULT (STDMETHODCALLTYPE *CreateFontFallbackBuilder)(
14355 IDWriteFactory8 *This,
14356 IDWriteFontFallbackBuilder **fallbackbuilder);
14357
14358 HRESULT (STDMETHODCALLTYPE *TranslateColorGlyphRun)(
14359 IDWriteFactory8 *This,
14360 FLOAT originX,
14361 FLOAT originY,
14362 const DWRITE_GLYPH_RUN *run,
14363 const DWRITE_GLYPH_RUN_DESCRIPTION *rundescr,
14364 DWRITE_MEASURING_MODE mode,
14365 const DWRITE_MATRIX *transform,
14366 UINT32 palette_index,
14367 IDWriteColorGlyphRunEnumerator **colorlayers);
14368
14369 HRESULT (STDMETHODCALLTYPE *IDWriteFactory2_CreateCustomRenderingParams)(
14370 IDWriteFactory8 *This,
14371 FLOAT gamma,
14372 FLOAT contrast,
14373 FLOAT grayscalecontrast,
14374 FLOAT cleartypeLevel,
14375 DWRITE_PIXEL_GEOMETRY pixelGeometry,
14376 DWRITE_RENDERING_MODE renderingMode,
14377 DWRITE_GRID_FIT_MODE gridFitMode,
14378 IDWriteRenderingParams2 **params);
14379
14380 HRESULT (STDMETHODCALLTYPE *IDWriteFactory2_CreateGlyphRunAnalysis)(
14381 IDWriteFactory8 *This,
14382 const DWRITE_GLYPH_RUN *run,
14383 const DWRITE_MATRIX *transform,
14384 DWRITE_RENDERING_MODE renderingMode,
14385 DWRITE_MEASURING_MODE measuringMode,
14386 DWRITE_GRID_FIT_MODE gridFitMode,
14387 DWRITE_TEXT_ANTIALIAS_MODE antialiasMode,
14388 FLOAT originX,
14389 FLOAT originY,
14390 IDWriteGlyphRunAnalysis **analysis);
14391
14392 /*** IDWriteFactory3 methods ***/
14393 HRESULT (STDMETHODCALLTYPE *IDWriteFactory3_CreateGlyphRunAnalysis)(
14394 IDWriteFactory8 *This,
14395 const DWRITE_GLYPH_RUN *run,
14396 const DWRITE_MATRIX *transform,
14397 DWRITE_RENDERING_MODE1 rendering_mode,
14398 DWRITE_MEASURING_MODE measuring_mode,
14399 DWRITE_GRID_FIT_MODE gridfit_mode,
14400 DWRITE_TEXT_ANTIALIAS_MODE antialias_mode,
14401 FLOAT origin_x,
14402 FLOAT origin_y,
14403 IDWriteGlyphRunAnalysis **analysis);
14404
14405 HRESULT (STDMETHODCALLTYPE *IDWriteFactory3_CreateCustomRenderingParams)(
14406 IDWriteFactory8 *This,
14407 FLOAT gamma,
14408 FLOAT enhanced_contrast,
14409 FLOAT grayscale_enhanced_contrast,
14410 FLOAT cleartype_level,
14411 DWRITE_PIXEL_GEOMETRY pixel_geometry,
14412 DWRITE_RENDERING_MODE1 rendering_mode,
14413 DWRITE_GRID_FIT_MODE gridfit_mode,
14414 IDWriteRenderingParams3 **params);
14415
14416 HRESULT (STDMETHODCALLTYPE *CreateFontFaceReference_)(
14417 IDWriteFactory8 *This,
14418 IDWriteFontFile *file,
14419 UINT32 index,
14420 DWRITE_FONT_SIMULATIONS simulations,
14421 IDWriteFontFaceReference **reference);
14422
14423 HRESULT (STDMETHODCALLTYPE *CreateFontFaceReference)(
14424 IDWriteFactory8 *This,
14425 const WCHAR *path,
14426 const FILETIME *writetime,
14427 UINT32 index,
14428 DWRITE_FONT_SIMULATIONS simulations,
14429 IDWriteFontFaceReference **reference);
14430
14431 HRESULT (STDMETHODCALLTYPE *GetSystemFontSet)(
14432 IDWriteFactory8 *This,
14433 IDWriteFontSet **fontset);
14434
14435 HRESULT (STDMETHODCALLTYPE *CreateFontSetBuilder)(
14436 IDWriteFactory8 *This,
14437 IDWriteFontSetBuilder **builder);
14438
14439 HRESULT (STDMETHODCALLTYPE *CreateFontCollectionFromFontSet)(
14440 IDWriteFactory8 *This,
14441 IDWriteFontSet *fontset,
14442 IDWriteFontCollection1 **collection);
14443
14444 HRESULT (STDMETHODCALLTYPE *IDWriteFactory3_GetSystemFontCollection)(
14445 IDWriteFactory8 *This,
14446 WINBOOL include_downloadable,
14447 IDWriteFontCollection1 **collection,
14448 WINBOOL check_for_updates);
14449
14450 HRESULT (STDMETHODCALLTYPE *GetFontDownloadQueue)(
14451 IDWriteFactory8 *This,
14452 IDWriteFontDownloadQueue **queue);
14453
14454 /*** IDWriteFactory4 methods ***/
14455 HRESULT (STDMETHODCALLTYPE *IDWriteFactory4_TranslateColorGlyphRun)(
14456 IDWriteFactory8 *This,
14457 D2D1_POINT_2F baseline_origin,
14458 const DWRITE_GLYPH_RUN *run,
14459 const DWRITE_GLYPH_RUN_DESCRIPTION *run_desc,
14460 DWRITE_GLYPH_IMAGE_FORMATS desired_formats,
14461 DWRITE_MEASURING_MODE measuring_mode,
14462 const DWRITE_MATRIX *transform,
14463 UINT32 palette,
14464 IDWriteColorGlyphRunEnumerator1 **layers);
14465
14466 HRESULT (STDMETHODCALLTYPE *ComputeGlyphOrigins_)(
14467 IDWriteFactory8 *This,
14468 const DWRITE_GLYPH_RUN *run,
14469 D2D1_POINT_2F baseline_origin,
14470 D2D1_POINT_2F *origins);
14471
14472 HRESULT (STDMETHODCALLTYPE *ComputeGlyphOrigins)(
14473 IDWriteFactory8 *This,
14474 const DWRITE_GLYPH_RUN *run,
14475 DWRITE_MEASURING_MODE measuring_mode,
14476 D2D1_POINT_2F baseline_origin,
14477 const DWRITE_MATRIX *transform,
14478 D2D1_POINT_2F *origins);
14479
14480 /*** IDWriteFactory5 methods ***/
14481 HRESULT (STDMETHODCALLTYPE *IDWriteFactory5_CreateFontSetBuilder)(
14482 IDWriteFactory8 *This,
14483 IDWriteFontSetBuilder1 **fontset_builder);
14484
14485 HRESULT (STDMETHODCALLTYPE *CreateInMemoryFontFileLoader)(
14486 IDWriteFactory8 *This,
14487 IDWriteInMemoryFontFileLoader **loader);
14488
14489 HRESULT (STDMETHODCALLTYPE *CreateHttpFontFileLoader)(
14490 IDWriteFactory8 *This,
14491 const WCHAR *referrer_url,
14492 const WCHAR *extra_headers,
14493 IDWriteRemoteFontFileLoader **loader);
14494
14495 DWRITE_CONTAINER_TYPE (STDMETHODCALLTYPE *AnalyzeContainerType)(
14496 IDWriteFactory8 *This,
14497 const void *data,
14498 UINT32 data_size);
14499
14500 HRESULT (STDMETHODCALLTYPE *UnpackFontFile)(
14501 IDWriteFactory8 *This,
14502 DWRITE_CONTAINER_TYPE container_type,
14503 const void *data,
14504 UINT32 data_size,
14505 IDWriteFontFileStream **stream);
14506
14507 /*** IDWriteFactory6 methods ***/
14508 HRESULT (STDMETHODCALLTYPE *IDWriteFactory6_CreateFontFaceReference)(
14509 IDWriteFactory8 *This,
14510 IDWriteFontFile *file,
14511 UINT32 face_index,
14512 DWRITE_FONT_SIMULATIONS simulations,
14513 const DWRITE_FONT_AXIS_VALUE *axis_values,
14514 UINT32 num_axis,
14515 IDWriteFontFaceReference1 **face_ref);
14516
14517 HRESULT (STDMETHODCALLTYPE *CreateFontResource)(
14518 IDWriteFactory8 *This,
14519 IDWriteFontFile *file,
14520 UINT32 face_index,
14521 IDWriteFontResource **resource);
14522
14523 HRESULT (STDMETHODCALLTYPE *IDWriteFactory6_GetSystemFontSet)(
14524 IDWriteFactory8 *This,
14525 WINBOOL include_downloadable,
14526 IDWriteFontSet1 **fontset);
14527
14528 HRESULT (STDMETHODCALLTYPE *IDWriteFactory6_GetSystemFontCollection)(
14529 IDWriteFactory8 *This,
14530 WINBOOL include_downloadable,
14531 DWRITE_FONT_FAMILY_MODEL family_model,
14532 IDWriteFontCollection2 **collection);
14533
14534 HRESULT (STDMETHODCALLTYPE *IDWriteFactory6_CreateFontCollectionFromFontSet)(
14535 IDWriteFactory8 *This,
14536 IDWriteFontSet *fontset,
14537 DWRITE_FONT_FAMILY_MODEL family_model,
14538 IDWriteFontCollection2 **collection);
14539
14540 HRESULT (STDMETHODCALLTYPE *IDWriteFactory6_CreateFontSetBuilder)(
14541 IDWriteFactory8 *This,
14542 IDWriteFontSetBuilder2 **builder);
14543
14544 HRESULT (STDMETHODCALLTYPE *IDWriteFactory6_CreateTextFormat)(
14545 IDWriteFactory8 *This,
14546 const WCHAR *familyname,
14547 IDWriteFontCollection *collection,
14548 const DWRITE_FONT_AXIS_VALUE *axis_values,
14549 UINT32 num_axis,
14550 FLOAT fontsize,
14551 const WCHAR *localename,
14552 IDWriteTextFormat3 **format);
14553
14554 /*** IDWriteFactory7 methods ***/
14555 HRESULT (STDMETHODCALLTYPE *IDWriteFactory7_GetSystemFontSet)(
14556 IDWriteFactory8 *This,
14557 WINBOOL include_downloadable,
14558 IDWriteFontSet2 **fontset);
14559
14560 HRESULT (STDMETHODCALLTYPE *IDWriteFactory7_GetSystemFontCollection)(
14561 IDWriteFactory8 *This,
14562 WINBOOL include_downloadable,
14563 DWRITE_FONT_FAMILY_MODEL family_model,
14564 IDWriteFontCollection3 **collection);
14565
14566 /*** IDWriteFactory8 methods ***/
14567 HRESULT (STDMETHODCALLTYPE *IDWriteFactory8_TranslateColorGlyphRun)(
14568 IDWriteFactory8 *This,
14569 D2D1_POINT_2F origin,
14570 const DWRITE_GLYPH_RUN *glyph_run,
14571 const DWRITE_GLYPH_RUN_DESCRIPTION *glyph_run_desc,
14572 DWRITE_GLYPH_IMAGE_FORMATS image_formats,
14573 DWRITE_PAINT_FEATURE_LEVEL feature_level,
14574 DWRITE_MEASURING_MODE measuring_mode,
14575 const DWRITE_MATRIX *world_and_dpi_transform,
14576 UINT32 palette_index,
14577 IDWriteColorGlyphRunEnumerator1 **enumerator);
14578
14579 END_INTERFACE
14580} IDWriteFactory8Vtbl;
14581
14582interface IDWriteFactory8 {
14583 CONST_VTBL IDWriteFactory8Vtbl* lpVtbl;
14584};
14585
14586#ifdef COBJMACROS
14587#ifndef WIDL_C_INLINE_WRAPPERS
14588/*** IUnknown methods ***/
14589#define IDWriteFactory8_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
14590#define IDWriteFactory8_AddRef(This) (This)->lpVtbl->AddRef(This)
14591#define IDWriteFactory8_Release(This) (This)->lpVtbl->Release(This)
14592/*** IDWriteFactory methods ***/
14593#define IDWriteFactory8_CreateCustomFontCollection(This,loader,key,key_size,collection) (This)->lpVtbl->CreateCustomFontCollection(This,loader,key,key_size,collection)
14594#define IDWriteFactory8_RegisterFontCollectionLoader(This,loader) (This)->lpVtbl->RegisterFontCollectionLoader(This,loader)
14595#define IDWriteFactory8_UnregisterFontCollectionLoader(This,loader) (This)->lpVtbl->UnregisterFontCollectionLoader(This,loader)
14596#define IDWriteFactory8_CreateFontFileReference(This,path,writetime,font_file) (This)->lpVtbl->CreateFontFileReference(This,path,writetime,font_file)
14597#define IDWriteFactory8_CreateCustomFontFileReference(This,reference_key,key_size,loader,font_file) (This)->lpVtbl->CreateCustomFontFileReference(This,reference_key,key_size,loader,font_file)
14598#define IDWriteFactory8_CreateFontFace(This,facetype,files_number,font_files,index,sim_flags,font_face) (This)->lpVtbl->CreateFontFace(This,facetype,files_number,font_files,index,sim_flags,font_face)
14599#define IDWriteFactory8_CreateRenderingParams(This,params) (This)->lpVtbl->CreateRenderingParams(This,params)
14600#define IDWriteFactory8_CreateMonitorRenderingParams(This,monitor,params) (This)->lpVtbl->CreateMonitorRenderingParams(This,monitor,params)
14601#define IDWriteFactory8_RegisterFontFileLoader(This,loader) (This)->lpVtbl->RegisterFontFileLoader(This,loader)
14602#define IDWriteFactory8_UnregisterFontFileLoader(This,loader) (This)->lpVtbl->UnregisterFontFileLoader(This,loader)
14603#define IDWriteFactory8_CreateTypography(This,typography) (This)->lpVtbl->CreateTypography(This,typography)
14604#define IDWriteFactory8_GetGdiInterop(This,gdi_interop) (This)->lpVtbl->GetGdiInterop(This,gdi_interop)
14605#define IDWriteFactory8_CreateTextLayout(This,string,len,format,max_width,max_height,layout) (This)->lpVtbl->CreateTextLayout(This,string,len,format,max_width,max_height,layout)
14606#define IDWriteFactory8_CreateGdiCompatibleTextLayout(This,string,len,format,layout_width,layout_height,pixels_per_dip,transform,use_gdi_natural,layout) (This)->lpVtbl->CreateGdiCompatibleTextLayout(This,string,len,format,layout_width,layout_height,pixels_per_dip,transform,use_gdi_natural,layout)
14607#define IDWriteFactory8_CreateEllipsisTrimmingSign(This,format,trimming_sign) (This)->lpVtbl->CreateEllipsisTrimmingSign(This,format,trimming_sign)
14608#define IDWriteFactory8_CreateTextAnalyzer(This,analyzer) (This)->lpVtbl->CreateTextAnalyzer(This,analyzer)
14609#define IDWriteFactory8_CreateNumberSubstitution(This,method,locale,ignore_user_override,substitution) (This)->lpVtbl->CreateNumberSubstitution(This,method,locale,ignore_user_override,substitution)
14610/*** IDWriteFactory1 methods ***/
14611#define IDWriteFactory8_GetEudcFontCollection(This,collection,check_for_updates) (This)->lpVtbl->GetEudcFontCollection(This,collection,check_for_updates)
14612/*** IDWriteFactory2 methods ***/
14613#define IDWriteFactory8_GetSystemFontFallback(This,fallback) (This)->lpVtbl->GetSystemFontFallback(This,fallback)
14614#define IDWriteFactory8_CreateFontFallbackBuilder(This,fallbackbuilder) (This)->lpVtbl->CreateFontFallbackBuilder(This,fallbackbuilder)
14615/*** IDWriteFactory3 methods ***/
14616#define IDWriteFactory8_CreateGlyphRunAnalysis(This,run,transform,rendering_mode,measuring_mode,gridfit_mode,antialias_mode,origin_x,origin_y,analysis) (This)->lpVtbl->IDWriteFactory3_CreateGlyphRunAnalysis(This,run,transform,rendering_mode,measuring_mode,gridfit_mode,antialias_mode,origin_x,origin_y,analysis)
14617#define IDWriteFactory8_CreateCustomRenderingParams(This,gamma,enhanced_contrast,grayscale_enhanced_contrast,cleartype_level,pixel_geometry,rendering_mode,gridfit_mode,params) (This)->lpVtbl->IDWriteFactory3_CreateCustomRenderingParams(This,gamma,enhanced_contrast,grayscale_enhanced_contrast,cleartype_level,pixel_geometry,rendering_mode,gridfit_mode,params)
14618#define IDWriteFactory8_CreateFontFaceReference_(This,file,index,simulations,reference) (This)->lpVtbl->CreateFontFaceReference_(This,file,index,simulations,reference)
14619#define IDWriteFactory8_GetFontDownloadQueue(This,queue) (This)->lpVtbl->GetFontDownloadQueue(This,queue)
14620/*** IDWriteFactory4 methods ***/
14621#define IDWriteFactory8_ComputeGlyphOrigins_(This,run,baseline_origin,origins) (This)->lpVtbl->ComputeGlyphOrigins_(This,run,baseline_origin,origins)
14622#define IDWriteFactory8_ComputeGlyphOrigins(This,run,measuring_mode,baseline_origin,transform,origins) (This)->lpVtbl->ComputeGlyphOrigins(This,run,measuring_mode,baseline_origin,transform,origins)
14623/*** IDWriteFactory5 methods ***/
14624#define IDWriteFactory8_CreateInMemoryFontFileLoader(This,loader) (This)->lpVtbl->CreateInMemoryFontFileLoader(This,loader)
14625#define IDWriteFactory8_CreateHttpFontFileLoader(This,referrer_url,extra_headers,loader) (This)->lpVtbl->CreateHttpFontFileLoader(This,referrer_url,extra_headers,loader)
14626#define IDWriteFactory8_AnalyzeContainerType(This,data,data_size) (This)->lpVtbl->AnalyzeContainerType(This,data,data_size)
14627#define IDWriteFactory8_UnpackFontFile(This,container_type,data,data_size,stream) (This)->lpVtbl->UnpackFontFile(This,container_type,data,data_size,stream)
14628/*** IDWriteFactory6 methods ***/
14629#define IDWriteFactory8_CreateFontFaceReference(This,file,face_index,simulations,axis_values,num_axis,face_ref) (This)->lpVtbl->IDWriteFactory6_CreateFontFaceReference(This,file,face_index,simulations,axis_values,num_axis,face_ref)
14630#define IDWriteFactory8_CreateFontResource(This,file,face_index,resource) (This)->lpVtbl->CreateFontResource(This,file,face_index,resource)
14631#define IDWriteFactory8_CreateFontCollectionFromFontSet(This,fontset,family_model,collection) (This)->lpVtbl->IDWriteFactory6_CreateFontCollectionFromFontSet(This,fontset,family_model,collection)
14632#define IDWriteFactory8_CreateFontSetBuilder(This,builder) (This)->lpVtbl->IDWriteFactory6_CreateFontSetBuilder(This,builder)
14633#define IDWriteFactory8_CreateTextFormat(This,familyname,collection,axis_values,num_axis,fontsize,localename,format) (This)->lpVtbl->IDWriteFactory6_CreateTextFormat(This,familyname,collection,axis_values,num_axis,fontsize,localename,format)
14634/*** IDWriteFactory7 methods ***/
14635#define IDWriteFactory8_GetSystemFontSet(This,include_downloadable,fontset) (This)->lpVtbl->IDWriteFactory7_GetSystemFontSet(This,include_downloadable,fontset)
14636#define IDWriteFactory8_GetSystemFontCollection(This,include_downloadable,family_model,collection) (This)->lpVtbl->IDWriteFactory7_GetSystemFontCollection(This,include_downloadable,family_model,collection)
14637/*** IDWriteFactory8 methods ***/
14638#define IDWriteFactory8_TranslateColorGlyphRun(This,origin,glyph_run,glyph_run_desc,image_formats,feature_level,measuring_mode,world_and_dpi_transform,palette_index,enumerator) (This)->lpVtbl->IDWriteFactory8_TranslateColorGlyphRun(This,origin,glyph_run,glyph_run_desc,image_formats,feature_level,measuring_mode,world_and_dpi_transform,palette_index,enumerator)
14639#else
14640/*** IUnknown methods ***/
14641static inline HRESULT IDWriteFactory8_QueryInterface(IDWriteFactory8* This,REFIID riid,void **ppvObject) {
14642 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
14643}
14644static inline ULONG IDWriteFactory8_AddRef(IDWriteFactory8* This) {
14645 return This->lpVtbl->AddRef(This);
14646}
14647static inline ULONG IDWriteFactory8_Release(IDWriteFactory8* This) {
14648 return This->lpVtbl->Release(This);
14649}
14650/*** IDWriteFactory methods ***/
14651static inline HRESULT IDWriteFactory8_CreateCustomFontCollection(IDWriteFactory8* This,IDWriteFontCollectionLoader *loader,const void *key,UINT32 key_size,IDWriteFontCollection **collection) {
14652 return This->lpVtbl->CreateCustomFontCollection(This,loader,key,key_size,collection);
14653}
14654static inline HRESULT IDWriteFactory8_RegisterFontCollectionLoader(IDWriteFactory8* This,IDWriteFontCollectionLoader *loader) {
14655 return This->lpVtbl->RegisterFontCollectionLoader(This,loader);
14656}
14657static inline HRESULT IDWriteFactory8_UnregisterFontCollectionLoader(IDWriteFactory8* This,IDWriteFontCollectionLoader *loader) {
14658 return This->lpVtbl->UnregisterFontCollectionLoader(This,loader);
14659}
14660static inline HRESULT IDWriteFactory8_CreateFontFileReference(IDWriteFactory8* This,const WCHAR *path,const FILETIME *writetime,IDWriteFontFile **font_file) {
14661 return This->lpVtbl->CreateFontFileReference(This,path,writetime,font_file);
14662}
14663static inline HRESULT IDWriteFactory8_CreateCustomFontFileReference(IDWriteFactory8* This,const void *reference_key,UINT32 key_size,IDWriteFontFileLoader *loader,IDWriteFontFile **font_file) {
14664 return This->lpVtbl->CreateCustomFontFileReference(This,reference_key,key_size,loader,font_file);
14665}
14666static inline HRESULT IDWriteFactory8_CreateFontFace(IDWriteFactory8* This,DWRITE_FONT_FACE_TYPE facetype,UINT32 files_number,IDWriteFontFile *const *font_files,UINT32 index,DWRITE_FONT_SIMULATIONS sim_flags,IDWriteFontFace **font_face) {
14667 return This->lpVtbl->CreateFontFace(This,facetype,files_number,font_files,index,sim_flags,font_face);
14668}
14669static inline HRESULT IDWriteFactory8_CreateRenderingParams(IDWriteFactory8* This,IDWriteRenderingParams **params) {
14670 return This->lpVtbl->CreateRenderingParams(This,params);
14671}
14672static inline HRESULT IDWriteFactory8_CreateMonitorRenderingParams(IDWriteFactory8* This,HMONITOR monitor,IDWriteRenderingParams **params) {
14673 return This->lpVtbl->CreateMonitorRenderingParams(This,monitor,params);
14674}
14675static inline HRESULT IDWriteFactory8_RegisterFontFileLoader(IDWriteFactory8* This,IDWriteFontFileLoader *loader) {
14676 return This->lpVtbl->RegisterFontFileLoader(This,loader);
14677}
14678static inline HRESULT IDWriteFactory8_UnregisterFontFileLoader(IDWriteFactory8* This,IDWriteFontFileLoader *loader) {
14679 return This->lpVtbl->UnregisterFontFileLoader(This,loader);
14680}
14681static inline HRESULT IDWriteFactory8_CreateTypography(IDWriteFactory8* This,IDWriteTypography **typography) {
14682 return This->lpVtbl->CreateTypography(This,typography);
14683}
14684static inline HRESULT IDWriteFactory8_GetGdiInterop(IDWriteFactory8* This,IDWriteGdiInterop **gdi_interop) {
14685 return This->lpVtbl->GetGdiInterop(This,gdi_interop);
14686}
14687static inline HRESULT IDWriteFactory8_CreateTextLayout(IDWriteFactory8* This,const WCHAR *string,UINT32 len,IDWriteTextFormat *format,FLOAT max_width,FLOAT max_height,IDWriteTextLayout **layout) {
14688 return This->lpVtbl->CreateTextLayout(This,string,len,format,max_width,max_height,layout);
14689}
14690static inline HRESULT IDWriteFactory8_CreateGdiCompatibleTextLayout(IDWriteFactory8* This,const WCHAR *string,UINT32 len,IDWriteTextFormat *format,FLOAT layout_width,FLOAT layout_height,FLOAT pixels_per_dip,const DWRITE_MATRIX *transform,WINBOOL use_gdi_natural,IDWriteTextLayout **layout) {
14691 return This->lpVtbl->CreateGdiCompatibleTextLayout(This,string,len,format,layout_width,layout_height,pixels_per_dip,transform,use_gdi_natural,layout);
14692}
14693static inline HRESULT IDWriteFactory8_CreateEllipsisTrimmingSign(IDWriteFactory8* This,IDWriteTextFormat *format,IDWriteInlineObject **trimming_sign) {
14694 return This->lpVtbl->CreateEllipsisTrimmingSign(This,format,trimming_sign);
14695}
14696static inline HRESULT IDWriteFactory8_CreateTextAnalyzer(IDWriteFactory8* This,IDWriteTextAnalyzer **analyzer) {
14697 return This->lpVtbl->CreateTextAnalyzer(This,analyzer);
14698}
14699static inline HRESULT IDWriteFactory8_CreateNumberSubstitution(IDWriteFactory8* This,DWRITE_NUMBER_SUBSTITUTION_METHOD method,const WCHAR *locale,WINBOOL ignore_user_override,IDWriteNumberSubstitution **substitution) {
14700 return This->lpVtbl->CreateNumberSubstitution(This,method,locale,ignore_user_override,substitution);
14701}
14702/*** IDWriteFactory1 methods ***/
14703static inline HRESULT IDWriteFactory8_GetEudcFontCollection(IDWriteFactory8* This,IDWriteFontCollection **collection,WINBOOL check_for_updates) {
14704 return This->lpVtbl->GetEudcFontCollection(This,collection,check_for_updates);
14705}
14706/*** IDWriteFactory2 methods ***/
14707static inline HRESULT IDWriteFactory8_GetSystemFontFallback(IDWriteFactory8* This,IDWriteFontFallback **fallback) {
14708 return This->lpVtbl->GetSystemFontFallback(This,fallback);
14709}
14710static inline HRESULT IDWriteFactory8_CreateFontFallbackBuilder(IDWriteFactory8* This,IDWriteFontFallbackBuilder **fallbackbuilder) {
14711 return This->lpVtbl->CreateFontFallbackBuilder(This,fallbackbuilder);
14712}
14713/*** IDWriteFactory3 methods ***/
14714static inline HRESULT IDWriteFactory8_CreateGlyphRunAnalysis(IDWriteFactory8* This,const DWRITE_GLYPH_RUN *run,const DWRITE_MATRIX *transform,DWRITE_RENDERING_MODE1 rendering_mode,DWRITE_MEASURING_MODE measuring_mode,DWRITE_GRID_FIT_MODE gridfit_mode,DWRITE_TEXT_ANTIALIAS_MODE antialias_mode,FLOAT origin_x,FLOAT origin_y,IDWriteGlyphRunAnalysis **analysis) {
14715 return This->lpVtbl->IDWriteFactory3_CreateGlyphRunAnalysis(This,run,transform,rendering_mode,measuring_mode,gridfit_mode,antialias_mode,origin_x,origin_y,analysis);
14716}
14717static inline HRESULT IDWriteFactory8_CreateCustomRenderingParams(IDWriteFactory8* This,FLOAT gamma,FLOAT enhanced_contrast,FLOAT grayscale_enhanced_contrast,FLOAT cleartype_level,DWRITE_PIXEL_GEOMETRY pixel_geometry,DWRITE_RENDERING_MODE1 rendering_mode,DWRITE_GRID_FIT_MODE gridfit_mode,IDWriteRenderingParams3 **params) {
14718 return This->lpVtbl->IDWriteFactory3_CreateCustomRenderingParams(This,gamma,enhanced_contrast,grayscale_enhanced_contrast,cleartype_level,pixel_geometry,rendering_mode,gridfit_mode,params);
14719}
14720static inline HRESULT IDWriteFactory8_CreateFontFaceReference_(IDWriteFactory8* This,IDWriteFontFile *file,UINT32 index,DWRITE_FONT_SIMULATIONS simulations,IDWriteFontFaceReference **reference) {
14721 return This->lpVtbl->CreateFontFaceReference_(This,file,index,simulations,reference);
14722}
14723static inline HRESULT IDWriteFactory8_GetFontDownloadQueue(IDWriteFactory8* This,IDWriteFontDownloadQueue **queue) {
14724 return This->lpVtbl->GetFontDownloadQueue(This,queue);
14725}
14726/*** IDWriteFactory4 methods ***/
14727static inline HRESULT IDWriteFactory8_ComputeGlyphOrigins_(IDWriteFactory8* This,const DWRITE_GLYPH_RUN *run,D2D1_POINT_2F baseline_origin,D2D1_POINT_2F *origins) {
14728 return This->lpVtbl->ComputeGlyphOrigins_(This,run,baseline_origin,origins);
14729}
14730static inline HRESULT IDWriteFactory8_ComputeGlyphOrigins(IDWriteFactory8* This,const DWRITE_GLYPH_RUN *run,DWRITE_MEASURING_MODE measuring_mode,D2D1_POINT_2F baseline_origin,const DWRITE_MATRIX *transform,D2D1_POINT_2F *origins) {
14731 return This->lpVtbl->ComputeGlyphOrigins(This,run,measuring_mode,baseline_origin,transform,origins);
14732}
14733/*** IDWriteFactory5 methods ***/
14734static inline HRESULT IDWriteFactory8_CreateInMemoryFontFileLoader(IDWriteFactory8* This,IDWriteInMemoryFontFileLoader **loader) {
14735 return This->lpVtbl->CreateInMemoryFontFileLoader(This,loader);
14736}
14737static inline HRESULT IDWriteFactory8_CreateHttpFontFileLoader(IDWriteFactory8* This,const WCHAR *referrer_url,const WCHAR *extra_headers,IDWriteRemoteFontFileLoader **loader) {
14738 return This->lpVtbl->CreateHttpFontFileLoader(This,referrer_url,extra_headers,loader);
14739}
14740static inline DWRITE_CONTAINER_TYPE IDWriteFactory8_AnalyzeContainerType(IDWriteFactory8* This,const void *data,UINT32 data_size) {
14741 return This->lpVtbl->AnalyzeContainerType(This,data,data_size);
14742}
14743static inline HRESULT IDWriteFactory8_UnpackFontFile(IDWriteFactory8* This,DWRITE_CONTAINER_TYPE container_type,const void *data,UINT32 data_size,IDWriteFontFileStream **stream) {
14744 return This->lpVtbl->UnpackFontFile(This,container_type,data,data_size,stream);
14745}
14746/*** IDWriteFactory6 methods ***/
14747static inline HRESULT IDWriteFactory8_CreateFontFaceReference(IDWriteFactory8* This,IDWriteFontFile *file,UINT32 face_index,DWRITE_FONT_SIMULATIONS simulations,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_axis,IDWriteFontFaceReference1 **face_ref) {
14748 return This->lpVtbl->IDWriteFactory6_CreateFontFaceReference(This,file,face_index,simulations,axis_values,num_axis,face_ref);
14749}
14750static inline HRESULT IDWriteFactory8_CreateFontResource(IDWriteFactory8* This,IDWriteFontFile *file,UINT32 face_index,IDWriteFontResource **resource) {
14751 return This->lpVtbl->CreateFontResource(This,file,face_index,resource);
14752}
14753static inline HRESULT IDWriteFactory8_CreateFontCollectionFromFontSet(IDWriteFactory8* This,IDWriteFontSet *fontset,DWRITE_FONT_FAMILY_MODEL family_model,IDWriteFontCollection2 **collection) {
14754 return This->lpVtbl->IDWriteFactory6_CreateFontCollectionFromFontSet(This,fontset,family_model,collection);
14755}
14756static inline HRESULT IDWriteFactory8_CreateFontSetBuilder(IDWriteFactory8* This,IDWriteFontSetBuilder2 **builder) {
14757 return This->lpVtbl->IDWriteFactory6_CreateFontSetBuilder(This,builder);
14758}
14759static inline HRESULT IDWriteFactory8_CreateTextFormat(IDWriteFactory8* This,const WCHAR *familyname,IDWriteFontCollection *collection,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_axis,FLOAT fontsize,const WCHAR *localename,IDWriteTextFormat3 **format) {
14760 return This->lpVtbl->IDWriteFactory6_CreateTextFormat(This,familyname,collection,axis_values,num_axis,fontsize,localename,format);
14761}
14762/*** IDWriteFactory7 methods ***/
14763static inline HRESULT IDWriteFactory8_GetSystemFontSet(IDWriteFactory8* This,WINBOOL include_downloadable,IDWriteFontSet2 **fontset) {
14764 return This->lpVtbl->IDWriteFactory7_GetSystemFontSet(This,include_downloadable,fontset);
14765}
14766static inline HRESULT IDWriteFactory8_GetSystemFontCollection(IDWriteFactory8* This,WINBOOL include_downloadable,DWRITE_FONT_FAMILY_MODEL family_model,IDWriteFontCollection3 **collection) {
14767 return This->lpVtbl->IDWriteFactory7_GetSystemFontCollection(This,include_downloadable,family_model,collection);
14768}
14769/*** IDWriteFactory8 methods ***/
14770static inline HRESULT IDWriteFactory8_TranslateColorGlyphRun(IDWriteFactory8* This,D2D1_POINT_2F origin,const DWRITE_GLYPH_RUN *glyph_run,const DWRITE_GLYPH_RUN_DESCRIPTION *glyph_run_desc,DWRITE_GLYPH_IMAGE_FORMATS image_formats,DWRITE_PAINT_FEATURE_LEVEL feature_level,DWRITE_MEASURING_MODE measuring_mode,const DWRITE_MATRIX *world_and_dpi_transform,UINT32 palette_index,IDWriteColorGlyphRunEnumerator1 **enumerator) {
14771 return This->lpVtbl->IDWriteFactory8_TranslateColorGlyphRun(This,origin,glyph_run,glyph_run_desc,image_formats,feature_level,measuring_mode,world_and_dpi_transform,palette_index,enumerator);
14772}
14773#endif
14774#endif
14775
14776#endif
14777
14778
14779#endif /* __IDWriteFactory8_INTERFACE_DEFINED__ */
14780
14781typedef struct DWRITE_BITMAP_DATA_BGRA32 {
14782 UINT32 width;
14783 UINT32 height;
14784 UINT32 *pixels;
14785} DWRITE_BITMAP_DATA_BGRA32;
14786/*****************************************************************************
14787 * IDWriteBitmapRenderTarget2 interface
14788 */
14789#ifndef __IDWriteBitmapRenderTarget2_INTERFACE_DEFINED__
14790#define __IDWriteBitmapRenderTarget2_INTERFACE_DEFINED__
14791
14792DEFINE_GUID(IID_IDWriteBitmapRenderTarget2, 0xc553a742, 0xfc01, 0x44da, 0xa6,0x6e, 0xb8,0xb9,0xed,0x6c,0x39,0x95);
14793#if defined(__cplusplus) && !defined(CINTERFACE)
14794MIDL_INTERFACE("c553a742-fc01-44da-a66e-b8b9ed6c3995")
14795IDWriteBitmapRenderTarget2 : public IDWriteBitmapRenderTarget1
14796{
14797 virtual HRESULT STDMETHODCALLTYPE GetBitmapData(
14798 DWRITE_BITMAP_DATA_BGRA32 *bitmap_data) = 0;
14799
14800};
14801#ifdef __CRT_UUID_DECL
14802__CRT_UUID_DECL(IDWriteBitmapRenderTarget2, 0xc553a742, 0xfc01, 0x44da, 0xa6,0x6e, 0xb8,0xb9,0xed,0x6c,0x39,0x95)
14803#endif
14804#else
14805typedef struct IDWriteBitmapRenderTarget2Vtbl {
14806 BEGIN_INTERFACE
14807
14808 /*** IUnknown methods ***/
14809 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
14810 IDWriteBitmapRenderTarget2 *This,
14811 REFIID riid,
14812 void **ppvObject);
14813
14814 ULONG (STDMETHODCALLTYPE *AddRef)(
14815 IDWriteBitmapRenderTarget2 *This);
14816
14817 ULONG (STDMETHODCALLTYPE *Release)(
14818 IDWriteBitmapRenderTarget2 *This);
14819
14820 /*** IDWriteBitmapRenderTarget methods ***/
14821 HRESULT (STDMETHODCALLTYPE *DrawGlyphRun)(
14822 IDWriteBitmapRenderTarget2 *This,
14823 FLOAT baselineOriginX,
14824 FLOAT baselineOriginY,
14825 DWRITE_MEASURING_MODE measuring_mode,
14826 const DWRITE_GLYPH_RUN *glyph_run,
14827 IDWriteRenderingParams *params,
14828 COLORREF textColor,
14829 RECT *blackbox_rect);
14830
14831 HDC (STDMETHODCALLTYPE *GetMemoryDC)(
14832 IDWriteBitmapRenderTarget2 *This);
14833
14834 FLOAT (STDMETHODCALLTYPE *GetPixelsPerDip)(
14835 IDWriteBitmapRenderTarget2 *This);
14836
14837 HRESULT (STDMETHODCALLTYPE *SetPixelsPerDip)(
14838 IDWriteBitmapRenderTarget2 *This,
14839 FLOAT pixels_per_dip);
14840
14841 HRESULT (STDMETHODCALLTYPE *GetCurrentTransform)(
14842 IDWriteBitmapRenderTarget2 *This,
14843 DWRITE_MATRIX *transform);
14844
14845 HRESULT (STDMETHODCALLTYPE *SetCurrentTransform)(
14846 IDWriteBitmapRenderTarget2 *This,
14847 const DWRITE_MATRIX *transform);
14848
14849 HRESULT (STDMETHODCALLTYPE *GetSize)(
14850 IDWriteBitmapRenderTarget2 *This,
14851 SIZE *size);
14852
14853 HRESULT (STDMETHODCALLTYPE *Resize)(
14854 IDWriteBitmapRenderTarget2 *This,
14855 UINT32 width,
14856 UINT32 height);
14857
14858 /*** IDWriteBitmapRenderTarget1 methods ***/
14859 DWRITE_TEXT_ANTIALIAS_MODE (STDMETHODCALLTYPE *GetTextAntialiasMode)(
14860 IDWriteBitmapRenderTarget2 *This);
14861
14862 HRESULT (STDMETHODCALLTYPE *SetTextAntialiasMode)(
14863 IDWriteBitmapRenderTarget2 *This,
14864 DWRITE_TEXT_ANTIALIAS_MODE mode);
14865
14866 /*** IDWriteBitmapRenderTarget2 methods ***/
14867 HRESULT (STDMETHODCALLTYPE *GetBitmapData)(
14868 IDWriteBitmapRenderTarget2 *This,
14869 DWRITE_BITMAP_DATA_BGRA32 *bitmap_data);
14870
14871 END_INTERFACE
14872} IDWriteBitmapRenderTarget2Vtbl;
14873
14874interface IDWriteBitmapRenderTarget2 {
14875 CONST_VTBL IDWriteBitmapRenderTarget2Vtbl* lpVtbl;
14876};
14877
14878#ifdef COBJMACROS
14879#ifndef WIDL_C_INLINE_WRAPPERS
14880/*** IUnknown methods ***/
14881#define IDWriteBitmapRenderTarget2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
14882#define IDWriteBitmapRenderTarget2_AddRef(This) (This)->lpVtbl->AddRef(This)
14883#define IDWriteBitmapRenderTarget2_Release(This) (This)->lpVtbl->Release(This)
14884/*** IDWriteBitmapRenderTarget methods ***/
14885#define IDWriteBitmapRenderTarget2_DrawGlyphRun(This,baselineOriginX,baselineOriginY,measuring_mode,glyph_run,params,textColor,blackbox_rect) (This)->lpVtbl->DrawGlyphRun(This,baselineOriginX,baselineOriginY,measuring_mode,glyph_run,params,textColor,blackbox_rect)
14886#define IDWriteBitmapRenderTarget2_GetMemoryDC(This) (This)->lpVtbl->GetMemoryDC(This)
14887#define IDWriteBitmapRenderTarget2_GetPixelsPerDip(This) (This)->lpVtbl->GetPixelsPerDip(This)
14888#define IDWriteBitmapRenderTarget2_SetPixelsPerDip(This,pixels_per_dip) (This)->lpVtbl->SetPixelsPerDip(This,pixels_per_dip)
14889#define IDWriteBitmapRenderTarget2_GetCurrentTransform(This,transform) (This)->lpVtbl->GetCurrentTransform(This,transform)
14890#define IDWriteBitmapRenderTarget2_SetCurrentTransform(This,transform) (This)->lpVtbl->SetCurrentTransform(This,transform)
14891#define IDWriteBitmapRenderTarget2_GetSize(This,size) (This)->lpVtbl->GetSize(This,size)
14892#define IDWriteBitmapRenderTarget2_Resize(This,width,height) (This)->lpVtbl->Resize(This,width,height)
14893/*** IDWriteBitmapRenderTarget1 methods ***/
14894#define IDWriteBitmapRenderTarget2_GetTextAntialiasMode(This) (This)->lpVtbl->GetTextAntialiasMode(This)
14895#define IDWriteBitmapRenderTarget2_SetTextAntialiasMode(This,mode) (This)->lpVtbl->SetTextAntialiasMode(This,mode)
14896/*** IDWriteBitmapRenderTarget2 methods ***/
14897#define IDWriteBitmapRenderTarget2_GetBitmapData(This,bitmap_data) (This)->lpVtbl->GetBitmapData(This,bitmap_data)
14898#else
14899/*** IUnknown methods ***/
14900static inline HRESULT IDWriteBitmapRenderTarget2_QueryInterface(IDWriteBitmapRenderTarget2* This,REFIID riid,void **ppvObject) {
14901 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
14902}
14903static inline ULONG IDWriteBitmapRenderTarget2_AddRef(IDWriteBitmapRenderTarget2* This) {
14904 return This->lpVtbl->AddRef(This);
14905}
14906static inline ULONG IDWriteBitmapRenderTarget2_Release(IDWriteBitmapRenderTarget2* This) {
14907 return This->lpVtbl->Release(This);
14908}
14909/*** IDWriteBitmapRenderTarget methods ***/
14910static inline HRESULT IDWriteBitmapRenderTarget2_DrawGlyphRun(IDWriteBitmapRenderTarget2* This,FLOAT baselineOriginX,FLOAT baselineOriginY,DWRITE_MEASURING_MODE measuring_mode,const DWRITE_GLYPH_RUN *glyph_run,IDWriteRenderingParams *params,COLORREF textColor,RECT *blackbox_rect) {
14911 return This->lpVtbl->DrawGlyphRun(This,baselineOriginX,baselineOriginY,measuring_mode,glyph_run,params,textColor,blackbox_rect);
14912}
14913static inline HDC IDWriteBitmapRenderTarget2_GetMemoryDC(IDWriteBitmapRenderTarget2* This) {
14914 return This->lpVtbl->GetMemoryDC(This);
14915}
14916static inline FLOAT IDWriteBitmapRenderTarget2_GetPixelsPerDip(IDWriteBitmapRenderTarget2* This) {
14917 return This->lpVtbl->GetPixelsPerDip(This);
14918}
14919static inline HRESULT IDWriteBitmapRenderTarget2_SetPixelsPerDip(IDWriteBitmapRenderTarget2* This,FLOAT pixels_per_dip) {
14920 return This->lpVtbl->SetPixelsPerDip(This,pixels_per_dip);
14921}
14922static inline HRESULT IDWriteBitmapRenderTarget2_GetCurrentTransform(IDWriteBitmapRenderTarget2* This,DWRITE_MATRIX *transform) {
14923 return This->lpVtbl->GetCurrentTransform(This,transform);
14924}
14925static inline HRESULT IDWriteBitmapRenderTarget2_SetCurrentTransform(IDWriteBitmapRenderTarget2* This,const DWRITE_MATRIX *transform) {
14926 return This->lpVtbl->SetCurrentTransform(This,transform);
14927}
14928static inline HRESULT IDWriteBitmapRenderTarget2_GetSize(IDWriteBitmapRenderTarget2* This,SIZE *size) {
14929 return This->lpVtbl->GetSize(This,size);
14930}
14931static inline HRESULT IDWriteBitmapRenderTarget2_Resize(IDWriteBitmapRenderTarget2* This,UINT32 width,UINT32 height) {
14932 return This->lpVtbl->Resize(This,width,height);
14933}
14934/*** IDWriteBitmapRenderTarget1 methods ***/
14935static inline DWRITE_TEXT_ANTIALIAS_MODE IDWriteBitmapRenderTarget2_GetTextAntialiasMode(IDWriteBitmapRenderTarget2* This) {
14936 return This->lpVtbl->GetTextAntialiasMode(This);
14937}
14938static inline HRESULT IDWriteBitmapRenderTarget2_SetTextAntialiasMode(IDWriteBitmapRenderTarget2* This,DWRITE_TEXT_ANTIALIAS_MODE mode) {
14939 return This->lpVtbl->SetTextAntialiasMode(This,mode);
14940}
14941/*** IDWriteBitmapRenderTarget2 methods ***/
14942static inline HRESULT IDWriteBitmapRenderTarget2_GetBitmapData(IDWriteBitmapRenderTarget2* This,DWRITE_BITMAP_DATA_BGRA32 *bitmap_data) {
14943 return This->lpVtbl->GetBitmapData(This,bitmap_data);
14944}
14945#endif
14946#endif
14947
14948#endif
14949
14950
14951#endif /* __IDWriteBitmapRenderTarget2_INTERFACE_DEFINED__ */
14952
14953/*****************************************************************************
14954 * IDWriteBitmapRenderTarget3 interface
14955 */
14956#ifndef __IDWriteBitmapRenderTarget3_INTERFACE_DEFINED__
14957#define __IDWriteBitmapRenderTarget3_INTERFACE_DEFINED__
14958
14959DEFINE_GUID(IID_IDWriteBitmapRenderTarget3, 0xaeec37db, 0xc337, 0x40f1, 0x8e,0x2a, 0x9a,0x41,0xb1,0x67,0xb2,0x38);
14960#if defined(__cplusplus) && !defined(CINTERFACE)
14961MIDL_INTERFACE("aeec37db-c337-40f1-8e2a-9a41b167b238")
14962IDWriteBitmapRenderTarget3 : public IDWriteBitmapRenderTarget2
14963{
14964 virtual DWRITE_PAINT_FEATURE_LEVEL STDMETHODCALLTYPE GetPaintFeatureLevel(
14965 ) = 0;
14966
14967 virtual HRESULT STDMETHODCALLTYPE DrawPaintGlyphRun(
14968 FLOAT origin_x,
14969 FLOAT origin_y,
14970 DWRITE_MEASURING_MODE measuring_mode,
14971 const DWRITE_GLYPH_RUN *run,
14972 DWRITE_GLYPH_IMAGE_FORMATS image_format,
14973 COLORREF text_color,
14974 UINT32 palette_index,
14975 RECT *black_box) = 0;
14976
14977 virtual HRESULT STDMETHODCALLTYPE DrawGlyphRunWithColorSupport(
14978 FLOAT origin_x,
14979 FLOAT origin_y,
14980 DWRITE_MEASURING_MODE measuring_mode,
14981 const DWRITE_GLYPH_RUN *run,
14982 IDWriteRenderingParams *params,
14983 COLORREF text_color,
14984 UINT32 palette_index,
14985 RECT *black_box) = 0;
14986
14987};
14988#ifdef __CRT_UUID_DECL
14989__CRT_UUID_DECL(IDWriteBitmapRenderTarget3, 0xaeec37db, 0xc337, 0x40f1, 0x8e,0x2a, 0x9a,0x41,0xb1,0x67,0xb2,0x38)
14990#endif
14991#else
14992typedef struct IDWriteBitmapRenderTarget3Vtbl {
14993 BEGIN_INTERFACE
14994
14995 /*** IUnknown methods ***/
14996 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
14997 IDWriteBitmapRenderTarget3 *This,
14998 REFIID riid,
14999 void **ppvObject);
15000
15001 ULONG (STDMETHODCALLTYPE *AddRef)(
15002 IDWriteBitmapRenderTarget3 *This);
15003
15004 ULONG (STDMETHODCALLTYPE *Release)(
15005 IDWriteBitmapRenderTarget3 *This);
15006
15007 /*** IDWriteBitmapRenderTarget methods ***/
15008 HRESULT (STDMETHODCALLTYPE *DrawGlyphRun)(
15009 IDWriteBitmapRenderTarget3 *This,
15010 FLOAT baselineOriginX,
15011 FLOAT baselineOriginY,
15012 DWRITE_MEASURING_MODE measuring_mode,
15013 const DWRITE_GLYPH_RUN *glyph_run,
15014 IDWriteRenderingParams *params,
15015 COLORREF textColor,
15016 RECT *blackbox_rect);
15017
15018 HDC (STDMETHODCALLTYPE *GetMemoryDC)(
15019 IDWriteBitmapRenderTarget3 *This);
15020
15021 FLOAT (STDMETHODCALLTYPE *GetPixelsPerDip)(
15022 IDWriteBitmapRenderTarget3 *This);
15023
15024 HRESULT (STDMETHODCALLTYPE *SetPixelsPerDip)(
15025 IDWriteBitmapRenderTarget3 *This,
15026 FLOAT pixels_per_dip);
15027
15028 HRESULT (STDMETHODCALLTYPE *GetCurrentTransform)(
15029 IDWriteBitmapRenderTarget3 *This,
15030 DWRITE_MATRIX *transform);
15031
15032 HRESULT (STDMETHODCALLTYPE *SetCurrentTransform)(
15033 IDWriteBitmapRenderTarget3 *This,
15034 const DWRITE_MATRIX *transform);
15035
15036 HRESULT (STDMETHODCALLTYPE *GetSize)(
15037 IDWriteBitmapRenderTarget3 *This,
15038 SIZE *size);
15039
15040 HRESULT (STDMETHODCALLTYPE *Resize)(
15041 IDWriteBitmapRenderTarget3 *This,
15042 UINT32 width,
15043 UINT32 height);
15044
15045 /*** IDWriteBitmapRenderTarget1 methods ***/
15046 DWRITE_TEXT_ANTIALIAS_MODE (STDMETHODCALLTYPE *GetTextAntialiasMode)(
15047 IDWriteBitmapRenderTarget3 *This);
15048
15049 HRESULT (STDMETHODCALLTYPE *SetTextAntialiasMode)(
15050 IDWriteBitmapRenderTarget3 *This,
15051 DWRITE_TEXT_ANTIALIAS_MODE mode);
15052
15053 /*** IDWriteBitmapRenderTarget2 methods ***/
15054 HRESULT (STDMETHODCALLTYPE *GetBitmapData)(
15055 IDWriteBitmapRenderTarget3 *This,
15056 DWRITE_BITMAP_DATA_BGRA32 *bitmap_data);
15057
15058 /*** IDWriteBitmapRenderTarget3 methods ***/
15059 DWRITE_PAINT_FEATURE_LEVEL (STDMETHODCALLTYPE *GetPaintFeatureLevel)(
15060 IDWriteBitmapRenderTarget3 *This);
15061
15062 HRESULT (STDMETHODCALLTYPE *DrawPaintGlyphRun)(
15063 IDWriteBitmapRenderTarget3 *This,
15064 FLOAT origin_x,
15065 FLOAT origin_y,
15066 DWRITE_MEASURING_MODE measuring_mode,
15067 const DWRITE_GLYPH_RUN *run,
15068 DWRITE_GLYPH_IMAGE_FORMATS image_format,
15069 COLORREF text_color,
15070 UINT32 palette_index,
15071 RECT *black_box);
15072
15073 HRESULT (STDMETHODCALLTYPE *DrawGlyphRunWithColorSupport)(
15074 IDWriteBitmapRenderTarget3 *This,
15075 FLOAT origin_x,
15076 FLOAT origin_y,
15077 DWRITE_MEASURING_MODE measuring_mode,
15078 const DWRITE_GLYPH_RUN *run,
15079 IDWriteRenderingParams *params,
15080 COLORREF text_color,
15081 UINT32 palette_index,
15082 RECT *black_box);
15083
15084 END_INTERFACE
15085} IDWriteBitmapRenderTarget3Vtbl;
15086
15087interface IDWriteBitmapRenderTarget3 {
15088 CONST_VTBL IDWriteBitmapRenderTarget3Vtbl* lpVtbl;
15089};
15090
15091#ifdef COBJMACROS
15092#ifndef WIDL_C_INLINE_WRAPPERS
15093/*** IUnknown methods ***/
15094#define IDWriteBitmapRenderTarget3_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
15095#define IDWriteBitmapRenderTarget3_AddRef(This) (This)->lpVtbl->AddRef(This)
15096#define IDWriteBitmapRenderTarget3_Release(This) (This)->lpVtbl->Release(This)
15097/*** IDWriteBitmapRenderTarget methods ***/
15098#define IDWriteBitmapRenderTarget3_DrawGlyphRun(This,baselineOriginX,baselineOriginY,measuring_mode,glyph_run,params,textColor,blackbox_rect) (This)->lpVtbl->DrawGlyphRun(This,baselineOriginX,baselineOriginY,measuring_mode,glyph_run,params,textColor,blackbox_rect)
15099#define IDWriteBitmapRenderTarget3_GetMemoryDC(This) (This)->lpVtbl->GetMemoryDC(This)
15100#define IDWriteBitmapRenderTarget3_GetPixelsPerDip(This) (This)->lpVtbl->GetPixelsPerDip(This)
15101#define IDWriteBitmapRenderTarget3_SetPixelsPerDip(This,pixels_per_dip) (This)->lpVtbl->SetPixelsPerDip(This,pixels_per_dip)
15102#define IDWriteBitmapRenderTarget3_GetCurrentTransform(This,transform) (This)->lpVtbl->GetCurrentTransform(This,transform)
15103#define IDWriteBitmapRenderTarget3_SetCurrentTransform(This,transform) (This)->lpVtbl->SetCurrentTransform(This,transform)
15104#define IDWriteBitmapRenderTarget3_GetSize(This,size) (This)->lpVtbl->GetSize(This,size)
15105#define IDWriteBitmapRenderTarget3_Resize(This,width,height) (This)->lpVtbl->Resize(This,width,height)
15106/*** IDWriteBitmapRenderTarget1 methods ***/
15107#define IDWriteBitmapRenderTarget3_GetTextAntialiasMode(This) (This)->lpVtbl->GetTextAntialiasMode(This)
15108#define IDWriteBitmapRenderTarget3_SetTextAntialiasMode(This,mode) (This)->lpVtbl->SetTextAntialiasMode(This,mode)
15109/*** IDWriteBitmapRenderTarget2 methods ***/
15110#define IDWriteBitmapRenderTarget3_GetBitmapData(This,bitmap_data) (This)->lpVtbl->GetBitmapData(This,bitmap_data)
15111/*** IDWriteBitmapRenderTarget3 methods ***/
15112#define IDWriteBitmapRenderTarget3_GetPaintFeatureLevel(This) (This)->lpVtbl->GetPaintFeatureLevel(This)
15113#define IDWriteBitmapRenderTarget3_DrawPaintGlyphRun(This,origin_x,origin_y,measuring_mode,run,image_format,text_color,palette_index,black_box) (This)->lpVtbl->DrawPaintGlyphRun(This,origin_x,origin_y,measuring_mode,run,image_format,text_color,palette_index,black_box)
15114#define IDWriteBitmapRenderTarget3_DrawGlyphRunWithColorSupport(This,origin_x,origin_y,measuring_mode,run,params,text_color,palette_index,black_box) (This)->lpVtbl->DrawGlyphRunWithColorSupport(This,origin_x,origin_y,measuring_mode,run,params,text_color,palette_index,black_box)
15115#else
15116/*** IUnknown methods ***/
15117static inline HRESULT IDWriteBitmapRenderTarget3_QueryInterface(IDWriteBitmapRenderTarget3* This,REFIID riid,void **ppvObject) {
15118 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
15119}
15120static inline ULONG IDWriteBitmapRenderTarget3_AddRef(IDWriteBitmapRenderTarget3* This) {
15121 return This->lpVtbl->AddRef(This);
15122}
15123static inline ULONG IDWriteBitmapRenderTarget3_Release(IDWriteBitmapRenderTarget3* This) {
15124 return This->lpVtbl->Release(This);
15125}
15126/*** IDWriteBitmapRenderTarget methods ***/
15127static inline HRESULT IDWriteBitmapRenderTarget3_DrawGlyphRun(IDWriteBitmapRenderTarget3* This,FLOAT baselineOriginX,FLOAT baselineOriginY,DWRITE_MEASURING_MODE measuring_mode,const DWRITE_GLYPH_RUN *glyph_run,IDWriteRenderingParams *params,COLORREF textColor,RECT *blackbox_rect) {
15128 return This->lpVtbl->DrawGlyphRun(This,baselineOriginX,baselineOriginY,measuring_mode,glyph_run,params,textColor,blackbox_rect);
15129}
15130static inline HDC IDWriteBitmapRenderTarget3_GetMemoryDC(IDWriteBitmapRenderTarget3* This) {
15131 return This->lpVtbl->GetMemoryDC(This);
15132}
15133static inline FLOAT IDWriteBitmapRenderTarget3_GetPixelsPerDip(IDWriteBitmapRenderTarget3* This) {
15134 return This->lpVtbl->GetPixelsPerDip(This);
15135}
15136static inline HRESULT IDWriteBitmapRenderTarget3_SetPixelsPerDip(IDWriteBitmapRenderTarget3* This,FLOAT pixels_per_dip) {
15137 return This->lpVtbl->SetPixelsPerDip(This,pixels_per_dip);
15138}
15139static inline HRESULT IDWriteBitmapRenderTarget3_GetCurrentTransform(IDWriteBitmapRenderTarget3* This,DWRITE_MATRIX *transform) {
15140 return This->lpVtbl->GetCurrentTransform(This,transform);
15141}
15142static inline HRESULT IDWriteBitmapRenderTarget3_SetCurrentTransform(IDWriteBitmapRenderTarget3* This,const DWRITE_MATRIX *transform) {
15143 return This->lpVtbl->SetCurrentTransform(This,transform);
15144}
15145static inline HRESULT IDWriteBitmapRenderTarget3_GetSize(IDWriteBitmapRenderTarget3* This,SIZE *size) {
15146 return This->lpVtbl->GetSize(This,size);
15147}
15148static inline HRESULT IDWriteBitmapRenderTarget3_Resize(IDWriteBitmapRenderTarget3* This,UINT32 width,UINT32 height) {
15149 return This->lpVtbl->Resize(This,width,height);
15150}
15151/*** IDWriteBitmapRenderTarget1 methods ***/
15152static inline DWRITE_TEXT_ANTIALIAS_MODE IDWriteBitmapRenderTarget3_GetTextAntialiasMode(IDWriteBitmapRenderTarget3* This) {
15153 return This->lpVtbl->GetTextAntialiasMode(This);
15154}
15155static inline HRESULT IDWriteBitmapRenderTarget3_SetTextAntialiasMode(IDWriteBitmapRenderTarget3* This,DWRITE_TEXT_ANTIALIAS_MODE mode) {
15156 return This->lpVtbl->SetTextAntialiasMode(This,mode);
15157}
15158/*** IDWriteBitmapRenderTarget2 methods ***/
15159static inline HRESULT IDWriteBitmapRenderTarget3_GetBitmapData(IDWriteBitmapRenderTarget3* This,DWRITE_BITMAP_DATA_BGRA32 *bitmap_data) {
15160 return This->lpVtbl->GetBitmapData(This,bitmap_data);
15161}
15162/*** IDWriteBitmapRenderTarget3 methods ***/
15163static inline DWRITE_PAINT_FEATURE_LEVEL IDWriteBitmapRenderTarget3_GetPaintFeatureLevel(IDWriteBitmapRenderTarget3* This) {
15164 return This->lpVtbl->GetPaintFeatureLevel(This);
15165}
15166static inline HRESULT IDWriteBitmapRenderTarget3_DrawPaintGlyphRun(IDWriteBitmapRenderTarget3* This,FLOAT origin_x,FLOAT origin_y,DWRITE_MEASURING_MODE measuring_mode,const DWRITE_GLYPH_RUN *run,DWRITE_GLYPH_IMAGE_FORMATS image_format,COLORREF text_color,UINT32 palette_index,RECT *black_box) {
15167 return This->lpVtbl->DrawPaintGlyphRun(This,origin_x,origin_y,measuring_mode,run,image_format,text_color,palette_index,black_box);
15168}
15169static inline HRESULT IDWriteBitmapRenderTarget3_DrawGlyphRunWithColorSupport(IDWriteBitmapRenderTarget3* This,FLOAT origin_x,FLOAT origin_y,DWRITE_MEASURING_MODE measuring_mode,const DWRITE_GLYPH_RUN *run,IDWriteRenderingParams *params,COLORREF text_color,UINT32 palette_index,RECT *black_box) {
15170 return This->lpVtbl->DrawGlyphRunWithColorSupport(This,origin_x,origin_y,measuring_mode,run,params,text_color,palette_index,black_box);
15171}
15172#endif
15173#endif
15174
15175#endif
15176
15177
15178#endif /* __IDWriteBitmapRenderTarget3_INTERFACE_DEFINED__ */
15179
1412815180/* Begin additional prototypes for all interfaces */
1412915181
1413015182
lib/libc/include/any-windows-any/dxgi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgi1_2.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgi1_2.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgi1_2.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgi1_3.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgi1_3.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgi1_3.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgi1_4.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgi1_4.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgi1_4.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgi1_5.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgi1_5.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgi1_5.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgi1_6.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgi1_6.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgi1_6.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgicommon.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgicommon.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgicommon.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgidebug.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgidebug.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgidebug.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgiformat.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgiformat.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgiformat.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxgitype.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxgitype.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxgitype.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxva2api.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxva2api.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxva2api.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/dxvahd.h+2-2
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/dxvahd.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/dxvahd.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
......@@ -415,7 +415,7 @@ typedef struct _DXVAHDSW_CALLBACKS {
415415 PDXVAHDSW_DestroyVideoProcessor DestroyVideoProcessor;
416416} DXVAHDSW_CALLBACKS;
417417
418HRESULT DXVAHD_CreateDevice(IDirect3DDevice9Ex *pD3DDevice,const DXVAHD_CONTENT_DESC *pContentDesc,DXVAHD_DEVICE_USAGE Usage,PDXVAHDSW_Plugin pPlugin,IDXVAHD_Device **ppDevice);
418HRESULT WINAPI DXVAHD_CreateDevice(IDirect3DDevice9Ex *pD3DDevice,const DXVAHD_CONTENT_DESC *pContentDesc,DXVAHD_DEVICE_USAGE Usage,PDXVAHDSW_Plugin pPlugin,IDXVAHD_Device **ppDevice);
419419
420420/*****************************************************************************
421421 * IDXVAHD_Device interface
lib/libc/include/any-windows-any/endpointvolume.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/endpointvolume.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/endpointvolume.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/evr.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/evr.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/evr.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/evr9.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/evr9.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/evr9.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/exdisp.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/exdisp.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/exdisp.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fibersapi.h+5
......@@ -25,6 +25,11 @@ extern "C" {
2525 WINBASEAPI WINBOOL WINAPI FlsFree (DWORD dwFlsIndex);
2626 WINBASEAPI WINBOOL WINAPI IsThreadAFiber (VOID);
2727#endif
28
29#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
30 WINBASEAPI PVOID WINAPI FlsGetValue2(DWORD dwTlsIndex);
31#endif
32
2833#endif
2934
3035#ifdef __cplusplus
lib/libc/include/any-windows-any/filter.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/filter.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/filter.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fsrm.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/fsrm.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/fsrm.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fsrmenums.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/fsrmenums.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/fsrmenums.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fsrmquota.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/fsrmquota.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/fsrmquota.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fsrmreports.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/fsrmreports.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/fsrmreports.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fsrmscreen.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/fsrmscreen.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/fsrmscreen.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fusion.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/fusion.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/fusion.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/fwptypes.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/fwptypes.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/fwptypes.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/hstring.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/hstring.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/hstring.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/icftypes.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/icftypes.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/icftypes.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/icodecapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/icodecapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/icodecapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/iketypes.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/iketypes.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/iketypes.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/inputpaneinterop.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/inputpaneinterop.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/inputpaneinterop.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/inputscope.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/inputscope.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/inputscope.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/inspectable.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/inspectable.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/inspectable.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/intrin.h+10-10
......@@ -55,7 +55,7 @@
5555#endif
5656
5757#if defined(__GNUC__) && \
58 (defined(__i386__) || defined(__x86_64__))
58 (defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__)))
5959#ifndef _MM_MALLOC_H_INCLUDED
6060#include <stdlib.h>
6161#include <errno.h>
......@@ -103,7 +103,7 @@ typedef union __m128i { char v[16]; } __m128i;
103103#endif
104104#endif
105105
106#if (defined(_X86_) || defined(__x86_64))
106#if (defined(_X86_) || (defined(__x86_64) && !defined(__arm64ec__)))
107107
108108#if defined(__MMX__) || defined(__MINGW_FORCE_SYS_INTRINS)
109109#if defined(__cplusplus)
......@@ -177,7 +177,7 @@ extern "C" {
177177#define __MACHINEIA32 __MACHINEZ
178178#endif
179179
180#if !(defined(_X86_) || defined(__x86_64) || defined(__ia64__))
180#if !(defined(_X86_) || defined(__x86_64) || defined(__ia64__)) || defined(__arm64ec__)
181181#undef __MACHINEIW64
182182#define __MACHINEIW64 __MACHINEZ
183183#endif
......@@ -187,17 +187,17 @@ extern "C" {
187187#define __MACHINEIA64 __MACHINEZ
188188#endif
189189
190#if !(defined(__ia64__) || defined(__x86_64))
190#if !(defined(__ia64__) || defined(__x86_64)) || defined(__arm64ec__)
191191#undef __MACHINEW64
192192#define __MACHINEW64 __MACHINEZ
193193#endif
194194
195#if !(defined(_X86_) || defined(__x86_64))
195#if !(defined(_X86_) || defined(__x86_64)) || defined(__arm64ec__)
196196#undef __MACHINEI
197197#define __MACHINEI __MACHINEZ
198198#endif
199199
200#if !(defined(_X86_) || defined(__x86_64))
200#if !(defined(_X86_) || defined(__x86_64)) || defined(__arm64ec__)
201201#undef __MACHINEX86X
202202#define __MACHINEX86X __MACHINEZ
203203#endif
......@@ -207,7 +207,7 @@ extern "C" {
207207#define __MACHINEX86X_NOX64 __MACHINEZ
208208#endif
209209
210#if !(defined(_X86_) || defined(__x86_64)) || defined(__ia64__)
210#if !(defined(_X86_) || defined(__x86_64)) || defined(__ia64__) || defined(__arm64ec__)
211211#undef __MACHINEX86X_NOIA64
212212#define __MACHINEX86X_NOIA64 __MACHINEZ
213213#endif
......@@ -228,17 +228,17 @@ extern "C" {
228228#define __MACHINECC __MACHINEZ
229229#endif
230230
231#if !(defined(__aarch64__))
231#if !(defined(__aarch64__) || defined(__arm64ec__))
232232#undef __MACHINEARM64
233233#define __MACHINEARM64 __MACHINEZ
234234#endif
235235
236#if !(defined(__arm__) || defined(__aarch64__))
236#if !(defined(__arm__) || defined(__aarch64__) || defined(__arm64ec__))
237237#undef __MACHINEARM_ARM64
238238#define __MACHINEARM_ARM64 __MACHINEZ
239239#endif
240240
241#if !(defined(__x86_64))
241#if !(defined(__x86_64)) || defined(__arm64ec__)
242242#undef __MACHINEX64
243243#define __MACHINEX64 __MACHINEZ
244244#endif
lib/libc/include/any-windows-any/io.h+15
......@@ -24,7 +24,15 @@
2424extern "C" {
2525#endif
2626
27#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
28#pragma push_macro("_getcwd")
29#undef _getcwd
30#endif
2731_CRTIMP char* __cdecl _getcwd (char*, int);
32#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
33#pragma pop_macro("_getcwd")
34#endif
35
2836#ifndef _FSIZE_T_DEFINED
2937 typedef unsigned long _fsize_t;
3038#define _FSIZE_T_DEFINED
......@@ -278,7 +286,14 @@ _CRTIMP char* __cdecl _getcwd (char*, int);
278286#ifndef NO_OLDNAMES
279287#ifndef _UWIN
280288 int __cdecl chdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
289#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
290#pragma push_macro("getcwd")
291#undef getcwd
292#endif
281293 char *__cdecl getcwd (char *, int) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
294#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
295#pragma pop_macro("getcwd")
296#endif
282297 int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
283298 char *__cdecl mktemp(char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
284299 int __cdecl rmdir (const char*) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
lib/libc/include/any-windows-any/iwscapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/iwscapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/iwscapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/locationapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/locationapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/locationapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/malloc.h+74-1
......@@ -21,7 +21,13 @@ extern "C" {
2121#endif
2222
2323#ifndef _STATIC_ASSERT
24#if defined(_MSC_VER)
24#if (defined(__cpp_static_assert) && __cpp_static_assert >= 201411L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
25#define _STATIC_ASSERT(expr) static_assert(expr)
26#elif defined(__cpp_static_assert)
27#define _STATIC_ASSERT(expr) static_assert(expr, #expr)
28#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
29#define _STATIC_ASSERT(expr) _Static_assert(expr, #expr)
30#elif defined(_MSC_VER)
2531#define _STATIC_ASSERT(expr) typedef char __static_assert_t[(expr)]
2632#else
2733#define _STATIC_ASSERT(expr) extern void __static_assert_t(int [(expr)?1:-1])
......@@ -55,6 +61,36 @@ extern "C" {
5561
5662#ifndef _CRT_ALLOCATION_DEFINED
5763#define _CRT_ALLOCATION_DEFINED
64
65#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
66#pragma push_macro("calloc")
67#undef calloc
68#pragma push_macro("free")
69#undef free
70#pragma push_macro("malloc")
71#undef malloc
72#pragma push_macro("realloc")
73#undef realloc
74#pragma push_macro("_aligned_free")
75#undef _aligned_free
76#pragma push_macro("_aligned_malloc")
77#undef _aligned_malloc
78#pragma push_macro("_aligned_offset_malloc")
79#undef _aligned_offset_malloc
80#pragma push_macro("_aligned_realloc")
81#undef _aligned_realloc
82#pragma push_macro("_aligned_offset_realloc")
83#undef _aligned_offset_realloc
84#pragma push_macro("_recalloc")
85#undef _recalloc
86#pragma push_macro("_aligned_recalloc")
87#undef _aligned_recalloc
88#pragma push_macro("_aligned_offset_recalloc")
89#undef _aligned_offset_recalloc
90#pragma push_macro("_aligned_msize")
91#undef _aligned_msize
92#endif
93
5894 void *__cdecl calloc(size_t _NumOfElements,size_t _SizeOfElements);
5995 void __cdecl free(void *_Memory);
6096 void *__cdecl malloc(size_t _Size);
......@@ -72,6 +108,23 @@ extern "C" {
72108 _CRTIMP void *__cdecl _aligned_offset_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment,size_t _Offset);
73109 _CRTIMP size_t __cdecl _aligned_msize(void *_Memory,size_t _Alignment,size_t _Offset);
74110# endif
111
112#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
113#pragma pop_macro("calloc")
114#pragma pop_macro("free")
115#pragma pop_macro("malloc")
116#pragma pop_macro("realloc")
117#pragma pop_macro("_aligned_free")
118#pragma pop_macro("_aligned_malloc")
119#pragma pop_macro("_aligned_offset_malloc")
120#pragma pop_macro("_aligned_realloc")
121#pragma pop_macro("_aligned_offset_realloc")
122#pragma pop_macro("_recalloc")
123#pragma pop_macro("_aligned_recalloc")
124#pragma pop_macro("_aligned_offset_recalloc")
125#pragma pop_macro("_aligned_msize")
126#endif
127
75128#endif
76129
77130/* Users should really use MS provided versions */
......@@ -92,8 +145,19 @@ void * __mingw_aligned_realloc (void *_Memory, size_t _Size, size_t _Offset);
92145#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
93146 _CRTIMP unsigned long __cdecl _set_malloc_crt_max_wait(unsigned long _NewValue);
94147
148#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
149#pragma push_macro("_expand")
150#undef _expand
151#pragma push_macro("_msize")
152#undef _msize
153#endif
95154 _CRTIMP void *__cdecl _expand(void *_Memory,size_t _NewSize);
96155 _CRTIMP size_t __cdecl _msize(void *_Memory);
156#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
157#pragma pop_macro("_expand")
158#pragma pop_macro("_msize")
159#endif
160
97161#ifdef __GNUC__
98162#undef _alloca
99163#define _alloca(x) __builtin_alloca((x))
......@@ -132,11 +196,20 @@ void * __mingw_aligned_realloc (void *_Memory, size_t _Size, size_t _Offset);
132196 }
133197#endif
134198
199#ifdef _DEBUG
200#ifndef _CRTDBG_MAP_ALLOC
201#undef _malloca
202#define _malloca(size) \
203 _MarkAllocaS(malloc((size) + _ALLOCA_S_MARKER_SIZE), _ALLOCA_S_HEAP_MARKER)
204#endif
205#else
135206#undef _malloca
136207#define _malloca(size) \
137208 ((((size) + _ALLOCA_S_MARKER_SIZE) <= _ALLOCA_S_THRESHOLD) ? \
138209 _MarkAllocaS(_alloca((size) + _ALLOCA_S_MARKER_SIZE),_ALLOCA_S_STACK_MARKER) : \
139210 _MarkAllocaS(malloc((size) + _ALLOCA_S_MARKER_SIZE),_ALLOCA_S_HEAP_MARKER))
211#endif
212
140213#undef _FREEA_INLINE
141214#define _FREEA_INLINE
142215
lib/libc/include/any-windows-any/mapi.h+42
......@@ -35,6 +35,15 @@ extern "C" {
3535 LPVOID lpFileType;
3636 } MapiFileDesc,*lpMapiFileDesc;
3737
38 typedef struct {
39 ULONG ulReserved;
40 ULONG flFlags;
41 ULONG nPosition;
42 PWSTR lpszPathName;
43 PWSTR lpszFileName;
44 PVOID lpFileType;
45 } MapiFileDescW, *lpMapiFileDescW;
46
3847#define MAPI_OLE 0x00000001
3948#define MAPI_OLE_STATIC 0x00000002
4049
......@@ -55,6 +64,15 @@ extern "C" {
5564 LPVOID lpEntryID;
5665 } MapiRecipDesc,*lpMapiRecipDesc;
5766
67 typedef struct {
68 ULONG ulReserved;
69 ULONG ulRecipClass;
70 PWSTR lpszName;
71 PWSTR lpszAddress;
72 ULONG ulEIDSize;
73 PVOID lpEntryID;
74 } MapiRecipDescW, *lpMapiRecipDescW;
75
5876#ifndef MAPI_ORIG
5977#define MAPI_ORIG 0
6078#define MAPI_TO 1
......@@ -77,6 +95,21 @@ extern "C" {
7795 lpMapiFileDesc lpFiles;
7896 } MapiMessage,*lpMapiMessage;
7997
98 typedef struct {
99 ULONG ulReserved;
100 PWSTR lpszSubject;
101 PWSTR lpszNoteText;
102 PWSTR lpszMessageType;
103 PWSTR lpszDateReceived;
104 PWSTR lpszConversationID;
105 FLAGS flFlags;
106 lpMapiRecipDescW lpOriginator;
107 ULONG nRecipCount;
108 lpMapiRecipDescW lpRecips;
109 ULONG nFileCount;
110 lpMapiFileDescW lpFiles;
111 } MapiMessageW, *lpMapiMessageW;
112
80113#define MAPI_UNREAD 0x00000001
81114#define MAPI_RECEIPT_REQUESTED 0x00000002
82115#define MAPI_SENT 0x00000004
......@@ -93,6 +126,9 @@ extern "C" {
93126#define MAPI_DIALOG 0x00000008
94127#endif
95128
129#define MAPI_DIALOG_MODELESS (0x00000004 | MAPI_DIALOG)
130#define MAPI_FORCE_UNICODE 0x00040000
131
96132#define MAPI_UNREAD_ONLY 0x00000020
97133#define MAPI_GUARANTEE_FIFO 0x00000100
98134#define MAPI_LONG_MSGID 0x00004000
......@@ -116,6 +152,10 @@ extern "C" {
116152 typedef MAPISENDMAIL *LPMAPISENDMAIL;
117153 MAPISENDMAIL MAPISendMail;
118154
155 typedef ULONG (WINAPI MAPISENDMAILW)(LHANDLE lhSession,ULONG_PTR ulUIParam,lpMapiMessageW lpMessage,FLAGS flFlags,ULONG ulReserved);
156 typedef MAPISENDMAILW *LPMAPISENDMAILW;
157 MAPISENDMAILW MAPISendMailW;
158
119159 typedef ULONG (WINAPI MAPISENDDOCUMENTS)(ULONG_PTR ulUIParam,LPSTR lpszDelimChar,LPSTR lpszFilePaths,LPSTR lpszFileNames,ULONG ulReserved);
120160 typedef MAPISENDDOCUMENTS *LPMAPISENDDOCUMENTS;
121161 MAPISENDDOCUMENTS MAPISendDocuments;
......@@ -183,6 +223,8 @@ extern "C" {
183223#define MAPI_E_INVALID_EDITFIELDS 24
184224#define MAPI_E_INVALID_RECIPS 25
185225#define MAPI_E_NOT_SUPPORTED 26
226#define MAPI_E_UNICODE_NOT_SUPPORTED 27
227#define MAPI_E_ATTACHMENT_TOO_LARGE 28
186228
187229#ifdef MAPIX_H
188230 STDMETHODIMP_(SCODE) ScMAPIXFromSMAPI(LHANDLE lhSimpleSession,ULONG ulFlags,LPCIID lpInterface,LPMAPISESSION*lppMAPISession);
lib/libc/include/any-windows-any/mbstring.h+7
......@@ -31,7 +31,14 @@ extern "C" {
3131
3232#ifndef _MBSTRING_DEFINED
3333#define _MBSTRING_DEFINED
34#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
35#pragma push_macro("_mbsdup")
36#undef _mbsdup
37#endif
3438 _CRTIMP unsigned char *__cdecl _mbsdup(const unsigned char *_Str);
39#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
40#pragma pop_macro("_mbsdup")
41#endif
3542 _CRTIMP unsigned int __cdecl _mbbtombc(unsigned int _Ch);
3643 _CRTIMP unsigned int __cdecl _mbbtombc_l(unsigned int _Ch,_locale_t _Locale);
3744 _CRTIMP int __cdecl _mbbtype(unsigned char _Ch,int _CType);
lib/libc/include/any-windows-any/mediaobj.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mediaobj.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mediaobj.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/medparam.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/medparam.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/medparam.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfcaptureengine.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfcaptureengine.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfcaptureengine.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfd3d12.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfd3d12.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfd3d12.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfmediacapture.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfmediacapture.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfmediacapture.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfmediaengine.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfmediaengine.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfmediaengine.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfobjects.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfobjects.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfobjects.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfplay.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfplay.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfplay.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mfreadwrite.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mfreadwrite.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mfreadwrite.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mftransform.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mftransform.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mftransform.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mmdeviceapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mmdeviceapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mmdeviceapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mmstream.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mmstream.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mmstream.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mscoree.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mscoree.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mscoree.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/msctf.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/msctf.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/msctf.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mshtmhst.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mshtmhst.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mshtmhst.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/mshtml.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/mshtml.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/mshtml.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/msinkaut.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/msinkaut.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/msinkaut.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/msinkaut_i.c+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from msinkaut.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from msinkaut.idl - Do not edit ***/
22
33#include <rpc.h>
44#include <rpcndr.h>
lib/libc/include/any-windows-any/msopc.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/msopc.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/msopc.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/msxml.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/msxml.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/msxml.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/msxml2.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/msxml2.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/msxml2.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/msxml6.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/msxml6.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/msxml6.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napcertrelyingparty.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napcertrelyingparty.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napcertrelyingparty.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napcommon.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napcommon.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napcommon.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napenforcementclient.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napenforcementclient.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napenforcementclient.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napmanagement.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napmanagement.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napmanagement.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napprotocol.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napprotocol.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napprotocol.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napservermanagement.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napservermanagement.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napservermanagement.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napsystemhealthagent.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napsystemhealthagent.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napsystemhealthagent.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/napsystemhealthvalidator.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/napsystemhealthvalidator.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/napsystemhealthvalidator.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/naptypes.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/naptypes.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/naptypes.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/netcfgn.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/netcfgn.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/netcfgn.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/netcfgx.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/netcfgx.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/netcfgx.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/netfw.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/netfw.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/netfw.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/netlistmgr.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/netlistmgr.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/netlistmgr.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/oaidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/oaidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/oaidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/objectarray.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/objectarray.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/objectarray.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/objidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/objidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/objidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/objidlbase.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/objidlbase.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/objidlbase.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/ocidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/ocidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/ocidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/oleacc.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/oleacc.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/oleacc.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/oleidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/oleidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/oleidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/optary.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/optary.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/optary.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/portabledeviceapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/portabledeviceapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/portabledeviceapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/portabledevicetypes.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/portabledevicetypes.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/portabledevicetypes.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/processthreadsapi.h+11-3
......@@ -47,7 +47,7 @@ extern "C" {
4747
4848#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
4949 WINBASEAPI WINBOOL WINAPI TerminateProcess (HANDLE hProcess, UINT uExitCode);
50
50
5151 typedef struct _STARTUPINFOA {
5252 DWORD cb;
5353 LPSTR lpReserved;
......@@ -111,6 +111,8 @@ extern "C" {
111111 ProcessProtectionLevelInfo,
112112 ProcessLeapSecondInfo,
113113 ProcessMachineTypeInfo,
114 ProcessOverrideSubsequentPrefetchParameter,
115 ProcessMaxOverridePrefetchParameter,
114116 ProcessInformationClassMax
115117 } PROCESS_INFORMATION_CLASS;
116118
......@@ -136,6 +138,10 @@ DEFINE_ENUM_FLAG_OPERATORS(MACHINE_ATTRIBUTES);
136138 MACHINE_ATTRIBUTES MachineAttributes;
137139 } PROCESS_MACHINE_INFORMATION;
138140
141 typedef struct OVERRIDE_PREFETCH_PARAMETER {
142 UINT32 Value;
143 } OVERRIDE_PREFETCH_PARAMETER;
144
139145#define PME_CURRENT_VERSION 1
140146
141147 typedef enum _PROCESS_MEMORY_EXHAUSTION_TYPE {
......@@ -309,6 +315,7 @@ DEFINE_ENUM_FLAG_OPERATORS(MACHINE_ATTRIBUTES);
309315#if _WIN32_WINNT >= 0x0A00
310316 WINBASEAPI DWORD WINAPI QueueUserAPC (PAPCFUNC pfnAPC, HANDLE hThread, ULONG_PTR dwData);
311317 WINBASEAPI WINBOOL WINAPI SwitchToThread (VOID);
318 WINBASEAPI LPVOID WINAPI TlsGetValue2(DWORD dwTlsIndex);
312319#endif
313320 WINBASEAPI DWORD WINAPI SuspendThread (HANDLE hThread);
314321 WINBASEAPI DWORD WINAPI ResumeThread (HANDLE hThread);
......@@ -325,8 +332,9 @@ DEFINE_ENUM_FLAG_OPERATORS(MACHINE_ATTRIBUTES);
325332
326333#if NTDDI_VERSION >= NTDDI_WIN10_MN
327334 typedef enum _QUEUE_USER_APC_FLAGS {
328 QUEUE_USER_APC_FLAGS_NONE = 0x0,
329 QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC = 0x1
335 QUEUE_USER_APC_FLAGS_NONE = 0x00000000,
336 QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC = 0x00000001,
337 QUEUE_USER_APC_CALLBACK_DATA_CONTEXT = 0x00010000
330338 } QUEUE_USER_APC_FLAGS;
331339
332340 typedef struct _APC_CALLBACK_DATA {
lib/libc/include/any-windows-any/proofofpossessioncookieinfo.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/proofofpossessioncookieinfo.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/proofofpossessioncookieinfo.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/propidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/propidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/propidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/propsys.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/propsys.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/propsys.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/propvarutil.h+3
......@@ -102,6 +102,7 @@ PSSTDAPI PropVariantToUInt32(REFPROPVARIANT propvarIn, ULONG *ret);
102102PSSTDAPI_(ULONG) PropVariantToUInt32WithDefault(REFPROPVARIANT propvarIn, ULONG uLDefault);
103103PSSTDAPI PropVariantToUInt64(REFPROPVARIANT propvarIn, ULONGLONG *ret);
104104PSSTDAPI PropVariantToBoolean(REFPROPVARIANT propvarIn, WINBOOL *ret);
105PSSTDAPI PropVariantToBSTR(REFPROPVARIANT propvar, BSTR *bstr);
105106PSSTDAPI PropVariantToBuffer(REFPROPVARIANT propvarIn, void *ret, UINT cb);
106107PSSTDAPI PropVariantToString(REFPROPVARIANT propvarIn, PWSTR ret, UINT cch);
107108PSSTDAPI_(PCWSTR) PropVariantToStringWithDefault(REFPROPVARIANT propvarIn, LPCWSTR pszDefault);
......@@ -113,6 +114,8 @@ PSSTDAPI PropVariantToStringAlloc(REFPROPVARIANT propvarIn, WCHAR **ret);
113114PSSTDAPI PropVariantToVariant(const PROPVARIANT *propvar, VARIANT *var);
114115PSSTDAPI VariantToPropVariant(const VARIANT* var, PROPVARIANT* propvar);
115116
117PSSTDAPI PropVariantGetStringElem(const PROPVARIANT *propvar, ULONG idx, WCHAR **ret);
118
116119#ifdef __cplusplus
117120
118121HRESULT InitPropVariantFromBoolean(WINBOOL fVal, PROPVARIANT *ppropvar);
lib/libc/include/any-windows-any/psdk_inc/intrin-impl.h+13-14
......@@ -134,7 +134,7 @@ __INTRINSICS_USEINLINE
134134 FunctionName: Any valid function name
135135 DataType: __LONG32 or __int64
136136 OffsetConstraint: either "I" for 32bit data types or "J" for 64. */
137#if defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_)
137#if (defined(__x86_64__) && !defined(__arm64ec__)) || (defined(_AMD64_) && !defined(_ARM64EC_)) || defined(__i386__) || defined(_X86_)
138138#define __buildbittesti(x, y, z, a) unsigned char x(y volatile *Base, y Offset) \
139139{ \
140140 unsigned char old; \
......@@ -162,7 +162,7 @@ __INTRINSICS_USEINLINE
162162 : "memory", "cc"); \
163163 return (old >> Offset) & 1; \
164164}
165#elif defined(__aarch64__) || defined(_ARM64_)
165#elif defined(__aarch64__) || defined(_ARM64_) || defined(__arm64ec__) || defined(_ARM64EC_)
166166#define __buildbittesti(x, y, z, a) unsigned char x(y volatile *Base, y Offset) \
167167{ \
168168 unsigned int old, tmp1, tmp2; \
......@@ -198,7 +198,7 @@ __INTRINSICS_USEINLINE
198198 : "memory", "cc"); \
199199 return (old >> Offset) & 1; \
200200}
201#endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_) */
201#endif /* (defined(__x86_64__) && !defined(__arm64ec__)) || (defined(_AMD64_) && !defined(_ARM64EC_)) || defined(__i386__) || defined(_X86_) */
202202
203203/* This macro is used by YieldProcessor when compiling x86 w/o SSE2.
204204It generates the same opcodes as _mm_pause. */
......@@ -668,8 +668,7 @@ unsigned short _rotr16(unsigned short __X, unsigned char __C)
668668#define __INTRINSIC_DEFINED__rotr16
669669#endif /* __INTRINSIC_PROLOG */
670670
671#if defined(__x86_64__) || defined(_AMD64_)
672
671#if (defined(__x86_64__) && !defined(__arm64ec__)) || (defined(_AMD64_) && !defined(_ARM64EC_))
673672#if __INTRINSIC_PROLOG(__faststorefence)
674673void __faststorefence(void);
675674#if !__has_builtin(__faststorefence)
......@@ -1103,7 +1102,7 @@ unsigned __int64 __shiftright128 (unsigned __int64 LowPart, unsigned __int64 Hi
11031102#define __INTRINSIC_DEFINED___shiftright128
11041103#endif /* __INTRINSIC_PROLOG */
11051104
1106#endif /* defined(__x86_64__) || defined(_AMD64_) */
1105#endif /* #(defined(__x86_64__) && !defined(__arm64ec__)) || (defined(_AMD64_) && !defined(_ARM64EC_)) */
11071106
11081107/* ***************************************************** */
11091108
......@@ -1195,7 +1194,7 @@ unsigned char _BitScanReverse(unsigned __LONG32 *Index, unsigned __LONG32 Mask)
11951194
11961195#endif /* defined(__arm__) || defined(_ARM_) */
11971196
1198#if defined(__aarch64__) || defined(_ARM64_)
1197#if defined(__aarch64__) || defined(_ARM64_) || defined(__arm64ec__) || defined(_ARM64EC_)
11991198
12001199#if __INTRINSIC_PROLOG(_interlockedbittestandset)
12011200unsigned char _interlockedbittestandset(__LONG32 volatile *a, __LONG32 b);
......@@ -1436,9 +1435,9 @@ unsigned char _BitScanReverse64(unsigned __LONG32 *Index, unsigned __int64 Mask)
14361435#define __INTRINSIC_DEFINED__BitScanReverse64
14371436#endif /* __INTRINSIC_PROLOG */
14381437
1439#endif /* defined(__aarch64__) || define(_ARM64_) */
1438#endif /* defined(__aarch64__) || define(_ARM64_) || defined(__arm64ec__) || defined(_ARM64EC_) */
14401439
1441#if defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_)
1440#if defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) || defined(__arm64ec__) || defined(_ARM64EC_)
14421441
14431442#if __INTRINSIC_PROLOG(_bittest)
14441443unsigned char _bittest(const __LONG32 *__a, __LONG32 __b);
......@@ -1494,9 +1493,9 @@ unsigned char _bittestandcomplement(__LONG32 *__a, __LONG32 __b)
14941493#define __INTRINSIC_DEFINED__bittestandcomplement
14951494#endif /* __INTRINSIC_PROLOG */
14961495
1497#endif /* defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) */
1496#endif /* defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) || defined(__arm64ec__) || defined(_ARM64EC_) */
14981497
1499#if defined(__aarch64__) || defined(_ARM64_)
1498#if defined(__aarch64__) || defined(_ARM64_) || defined(__arm64ec__) || defined(_ARM64EC_)
15001499
15011500#if __INTRINSIC_PROLOG(_bittest64)
15021501unsigned char _bittest64(const __int64 *__a, __int64 __b);
......@@ -1552,7 +1551,7 @@ unsigned char _bittestandcomplement64(__int64 *__a, __int64 __b)
15521551#define __INTRINSIC_DEFINED__bittestandcomplement64
15531552#endif /* __INTRINSIC_PROLOG */
15541553
1555#endif /* defined(__aarch64__) || define(_ARM64_) */
1554#endif /* defined(__aarch64__) || define(_ARM64_) || defined(__arm64ec__) || defined(_ARM64EC_) */
15561555
15571556/* ***************************************************** */
15581557
......@@ -1777,7 +1776,7 @@ void *_InterlockedExchangePointer(void *volatile *Target,void *Value) {
17771776
17781777#endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_) || defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) */
17791778
1780#if defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_)
1779#if (defined(__x86_64__) && !defined(__arm64ec__)) || (defined(_AMD64_) && !defined(_ARM64EC_)) || defined(__i386__) || defined(_X86_)
17811780
17821781#if __INTRINSIC_PROLOG(__int2c)
17831782void __int2c(void);
......@@ -2157,7 +2156,7 @@ unsigned __int64 _xgetbv(unsigned int index)
21572156#endif /* __INTRINSIC_PROLOG */
21582157#endif /* __GNUC__ < 8 */
21592158
2160#endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_) */
2159#endif /* (defined(__x86_64__) && !defined(__arm64ec__)) || (defined(_AMD64_) && !defined(_ARM64EC_)) || defined(__i386__) || defined(_X86_) */
21612160
21622161/* ***************************************************** */
21632162
lib/libc/include/any-windows-any/pthread.h+5-52
......@@ -68,9 +68,12 @@
6868#include <signal.h>
6969#include <time.h>
7070
71#include <sys/timeb.h>
72
7371#include "pthread_compat.h"
72#include "sched.h"
73
74#ifdef _MSC_VER
75#include "pthread_time.h"
76#endif
7477
7578#ifdef __cplusplus
7679extern "C" {
......@@ -83,36 +86,11 @@ extern "C" {
8386/* MSB 8-bit major version, 8-bit minor version, 16-bit patch level. */
8487#define __WINPTHREADS_VERSION 0x00050000
8588
86#if defined(IN_WINPTHREAD)
87# if defined(DLL_EXPORT)
88# define WINPTHREAD_API __declspec(dllexport) /* building the DLL */
89# else
90# define WINPTHREAD_API /* building the static library */
91# endif
92#else
93# if defined(WINPTHREADS_USE_DLLIMPORT)
94# define WINPTHREAD_API __declspec(dllimport) /* user wants explicit `dllimport` */
95# else
96# define WINPTHREAD_API /* the default; auto imported in case of DLL */
97# endif
98#endif
99
10089/* #define WINPTHREAD_DBG 1 */
10190
10291/* Compatibility stuff: */
10392#define RWLS_PER_THREAD 8
10493
105/* Error-codes. */
106#ifndef ETIMEDOUT
107#define ETIMEDOUT 138
108#endif
109#ifndef ENOTSUP
110#define ENOTSUP 129
111#endif
112#ifndef EWOULDBLOCK
113#define EWOULDBLOCK 140
114#endif
115
11694/* pthread specific defines. */
11795
11896#define PTHREAD_CANCEL_DISABLE 0
......@@ -234,26 +212,6 @@ struct _pthread_cleanup
234212 if ((E)) _pthread_cup.func((pthread_once_t *)_pthread_cup.arg); \
235213 } while (0)
236214
237#ifndef SCHED_OTHER
238/* Some POSIX realtime extensions, mostly stubbed */
239#define SCHED_OTHER 0
240#define SCHED_FIFO 1
241#define SCHED_RR 2
242#define SCHED_MIN SCHED_OTHER
243#define SCHED_MAX SCHED_RR
244
245struct sched_param {
246 int sched_priority;
247};
248
249WINPTHREAD_API int sched_yield(void);
250WINPTHREAD_API int sched_get_priority_min(int pol);
251WINPTHREAD_API int sched_get_priority_max(int pol);
252WINPTHREAD_API int sched_getscheduler(pid_t pid);
253WINPTHREAD_API int sched_setscheduler(pid_t pid, int pol, const struct sched_param *param);
254
255#endif
256
257215typedef struct pthread_attr_t pthread_attr_t;
258216struct pthread_attr_t
259217{
......@@ -393,11 +351,6 @@ WINPTHREAD_API int pthread_condattr_init(pthread_condattr_t *a);
393351WINPTHREAD_API int pthread_condattr_getpshared(const pthread_condattr_t *a, int *s);
394352WINPTHREAD_API int pthread_condattr_setpshared(pthread_condattr_t *a, int s);
395353
396#ifndef __clockid_t_defined
397typedef int clockid_t;
398#define __clockid_t_defined 1
399#endif /* __clockid_t_defined */
400
401354WINPTHREAD_API int pthread_condattr_getclock (const pthread_condattr_t *attr,
402355 clockid_t *clock_id);
403356WINPTHREAD_API int pthread_condattr_setclock(pthread_condattr_t *attr,
lib/libc/include/any-windows-any/pthread_compat.h+35-3
......@@ -60,6 +60,41 @@
6060#ifndef WIN_PTHREADS_PTHREAD_COMPAT_H
6161#define WIN_PTHREADS_PTHREAD_COMPAT_H
6262
63#if defined(IN_WINPTHREAD)
64# if defined(DLL_EXPORT)
65# define WINPTHREAD_API __declspec(dllexport) /* building the DLL */
66# else
67# define WINPTHREAD_API /* building the static library */
68# endif
69#else
70# if defined(WINPTHREADS_USE_DLLIMPORT)
71# define WINPTHREAD_API __declspec(dllimport) /* user wants explicit `dllimport` */
72# else
73# define WINPTHREAD_API /* the default; auto imported in case of DLL */
74# endif
75#endif
76
77#ifndef __clockid_t_defined
78typedef int clockid_t;
79#define __clockid_t_defined 1
80#endif /* __clockid_t_defined */
81
82#ifndef _MODE_T_
83#define _MODE_T_
84typedef unsigned short mode_t;
85#endif
86
87/* Error-codes. */
88#ifndef ETIMEDOUT
89#define ETIMEDOUT 138
90#endif
91#ifndef ENOTSUP
92#define ENOTSUP 129
93#endif
94#ifndef EWOULDBLOCK
95#define EWOULDBLOCK 140
96#endif
97
6398#ifdef __GNUC__
6499
65100#define WINPTHREADS_INLINE inline
......@@ -68,14 +103,11 @@
68103
69104#elif _MSC_VER
70105
71#include "pthread_time.h"
72
73106#ifdef _WIN64
74107typedef __int64 pid_t;
75108#else
76109typedef int pid_t;
77110#endif
78typedef int clockid_t;
79111
80112#define WINPTHREADS_INLINE __inline
81113#define WINPTHREADS_ATTRIBUTE(X) __declspec X
lib/libc/include/any-windows-any/pthread_time.h+2-17
......@@ -20,11 +20,11 @@
2020 DEALINGS IN THE SOFTWARE.
2121*/
2222
23#include <sys/timeb.h>
24
2523#ifndef WIN_PTHREADS_TIME_H
2624#define WIN_PTHREADS_TIME_H
2725
26#include "pthread_compat.h"
27
2828/* Posix timers are supported */
2929#ifndef _POSIX_TIMERS
3030#define _POSIX_TIMERS 200809L
......@@ -45,11 +45,6 @@
4545#define _POSIX_THREAD_CPUTIME 200809L
4646#endif
4747
48#ifndef __clockid_t_defined
49typedef int clockid_t;
50#define __clockid_t_defined 1
51#endif /* __clockid_t_defined */
52
5348#ifndef TIMER_ABSTIME
5449#define TIMER_ABSTIME 1
5550#endif
......@@ -78,13 +73,6 @@ typedef int clockid_t;
7873extern "C" {
7974#endif
8075
81/* Make sure we provide default for WINPTHREAD_API, if not defined. */
82#pragma push_macro("WINPTHREAD_API")
83#ifndef WINPTHREAD_API
84#define WINPTHREAD_API
85#endif
86
87/* These should really be dllimport'ed if using winpthread dll */
8876WINPTHREAD_API int __cdecl nanosleep(const struct timespec *request, struct timespec *remain);
8977
9078WINPTHREAD_API int __cdecl clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct timespec *remain);
......@@ -92,11 +80,8 @@ WINPTHREAD_API int __cdecl clock_getres(clockid_t clock_id, struct timespec *res
9280WINPTHREAD_API int __cdecl clock_gettime(clockid_t clock_id, struct timespec *tp);
9381WINPTHREAD_API int __cdecl clock_settime(clockid_t clock_id, const struct timespec *tp);
9482
95#pragma pop_macro("WINPTHREAD_API")
96
9783#ifdef __cplusplus
9884}
9985#endif
10086
10187#endif /* WIN_PTHREADS_TIME_H */
102
lib/libc/include/any-windows-any/qedit.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/qedit.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/qedit.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/qnetwork.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/qnetwork.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/qnetwork.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/rdpencomapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/rdpencomapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/rdpencomapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/regbag.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/regbag.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/regbag.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/relogger.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/relogger.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/relogger.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/robuffer.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/robuffer.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/robuffer.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/rtworkq.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/rtworkq.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/rtworkq.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/sapi51.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/sapi51.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/sapi51.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/sapi53.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/sapi53.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/sapi53.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/sapi54.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/sapi54.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/sapi54.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/sched.h+7-27
......@@ -19,6 +19,8 @@
1919 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2020 DEALINGS IN THE SOFTWARE.
2121*/
22#ifndef WIN_PTHREADS_SCHED_H
23#define WIN_PTHREADS_SCHED_H
2224
2325#include <stddef.h>
2426#include <errno.h>
......@@ -28,14 +30,8 @@
2830#include <limits.h>
2931#include <signal.h>
3032
31#include <sys/timeb.h>
32
3333#include "pthread_compat.h"
3434
35#ifndef WIN_PTHREADS_SCHED_H
36#define WIN_PTHREADS_SCHED_H
37
38#ifndef SCHED_OTHER
3935/* Some POSIX realtime extensions, mostly stubbed */
4036#define SCHED_OTHER 0
4137#define SCHED_FIFO 1
......@@ -51,32 +47,16 @@ struct sched_param {
5147extern "C" {
5248#endif
5349
54#if defined(IN_WINPTHREAD)
55# if defined(DLL_EXPORT) && !defined(WINPTHREAD_EXPORT_ALL_DEBUG)
56# define WINPTHREAD_SCHED_API __declspec(dllexport) /* building the DLL */
57# else
58# define WINPTHREAD_SCHED_API /* building the static library */
59# endif
60#else
61# if defined(WINPTHREADS_USE_DLLIMPORT)
62# define WINPTHREAD_SCHED_API __declspec(dllimport) /* user wants explicit `dllimport` */
63# else
64# define WINPTHREAD_SCHED_API /* the default; auto imported in case of DLL */
65# endif
66#endif
67
68WINPTHREAD_SCHED_API int sched_yield(void);
69WINPTHREAD_SCHED_API int sched_get_priority_min(int pol);
70WINPTHREAD_SCHED_API int sched_get_priority_max(int pol);
71WINPTHREAD_SCHED_API int sched_getscheduler(pid_t pid);
72WINPTHREAD_SCHED_API int sched_setscheduler(pid_t pid, int pol, const struct sched_param *param);
50WINPTHREAD_API int sched_yield(void);
51WINPTHREAD_API int sched_get_priority_min(int pol);
52WINPTHREAD_API int sched_get_priority_max(int pol);
53WINPTHREAD_API int sched_getscheduler(pid_t pid);
54WINPTHREAD_API int sched_setscheduler(pid_t pid, int pol, const struct sched_param *param);
7355
7456#ifdef __cplusplus
7557}
7658#endif
7759
78#endif
79
8060#ifndef sched_rr_get_interval
8161#define sched_rr_get_interval(_p, _i) \
8262 ( errno = ENOTSUP, (int) -1 )
lib/libc/include/any-windows-any/sec_api/stdlib_s.h+9-1
......@@ -12,8 +12,16 @@
1212extern "C" {
1313#endif
1414
15 _CRTIMP void * __cdecl bsearch_s(const void *_Key,const void *_Base,rsize_t _NumOfElements,rsize_t _SizeOfElements,int (__cdecl * _PtFuncCompare)(void *, const void *, const void *), void *_Context);
15#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
16#pragma push_macro("_dupenv_s")
17#undef _dupenv_s
18#endif
1619 _CRTIMP errno_t __cdecl _dupenv_s(char **_PBuffer,size_t *_PBufferSizeInBytes,const char *_VarName);
20#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
21#pragma pop_macro("_dupenv_s")
22#endif
23
24 _CRTIMP void * __cdecl bsearch_s(const void *_Key,const void *_Base,rsize_t _NumOfElements,rsize_t _SizeOfElements,int (__cdecl * _PtFuncCompare)(void *, const void *, const void *), void *_Context);
1725 _CRTIMP errno_t __cdecl getenv_s(size_t *_ReturnSize,char *_DstBuf,rsize_t _DstSize,const char *_VarName);
1826 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(errno_t, getenv_s, size_t *, _ReturnSize, char, _Dest, const char *, _VarName)
1927 _CRTIMP errno_t __cdecl _itoa_s(int _Value,char *_DstBuf,size_t _Size,int _Radix);
lib/libc/include/any-windows-any/semaphore.h+13-30
......@@ -23,60 +23,43 @@
2323#ifndef WIN_PTHREADS_SEMAPHORE_H
2424#define WIN_PTHREADS_SEMAPHORE_H
2525
26#include "pthread_compat.h"
27
2628#ifdef __cplusplus
2729extern "C" {
2830#endif
2931
30#if defined(IN_WINPTHREAD)
31# if defined(DLL_EXPORT) && !defined(WINPTHREAD_EXPORT_ALL_DEBUG)
32# define WINPTHREAD_SEMA_API __declspec(dllexport) /* building the DLL */
33# else
34# define WINPTHREAD_SEMA_API /* building the static library */
35# endif
36#else
37# if defined(WINPTHREADS_USE_DLLIMPORT)
38# define WINPTHREAD_SEMA_API __declspec(dllimport) /* user wants explicit `dllimport` */
39# else
40# define WINPTHREAD_SEMA_API /* the default; auto imported in case of DLL */
41# endif
42#endif
43
4432/* Set this to 0 to disable it */
4533#define USE_SEM_CriticalSection_SpinCount 100
4634
4735#define SEM_VALUE_MAX INT_MAX
4836
49#ifndef _MODE_T_
50#define _MODE_T_
51typedef unsigned short mode_t;
52#endif
53
5437typedef void *sem_t;
5538
5639#define SEM_FAILED NULL
5740
58WINPTHREAD_SEMA_API int sem_init(sem_t * sem, int pshared, unsigned int value);
41WINPTHREAD_API int sem_init(sem_t * sem, int pshared, unsigned int value);
5942
60WINPTHREAD_SEMA_API int sem_destroy(sem_t *sem);
43WINPTHREAD_API int sem_destroy(sem_t *sem);
6144
62WINPTHREAD_SEMA_API int sem_trywait(sem_t *sem);
45WINPTHREAD_API int sem_trywait(sem_t *sem);
6346
64WINPTHREAD_SEMA_API int sem_wait(sem_t *sem);
47WINPTHREAD_API int sem_wait(sem_t *sem);
6548
66WINPTHREAD_SEMA_API int sem_timedwait(sem_t * sem, const struct timespec *t);
49WINPTHREAD_API int sem_timedwait(sem_t * sem, const struct timespec *t);
6750
68WINPTHREAD_SEMA_API int sem_post(sem_t *sem);
51WINPTHREAD_API int sem_post(sem_t *sem);
6952
70WINPTHREAD_SEMA_API int sem_post_multiple(sem_t *sem, int count);
53WINPTHREAD_API int sem_post_multiple(sem_t *sem, int count);
7154
7255/* yes, it returns a semaphore (or SEM_FAILED) */
73WINPTHREAD_SEMA_API sem_t * sem_open(const char * name, int oflag, mode_t mode, unsigned int value);
56WINPTHREAD_API sem_t * sem_open(const char * name, int oflag, mode_t mode, unsigned int value);
7457
75WINPTHREAD_SEMA_API int sem_close(sem_t * sem);
58WINPTHREAD_API int sem_close(sem_t * sem);
7659
77WINPTHREAD_SEMA_API int sem_unlink(const char * name);
60WINPTHREAD_API int sem_unlink(const char * name);
7861
79WINPTHREAD_SEMA_API int sem_getvalue(sem_t * sem, int * sval);
62WINPTHREAD_API int sem_getvalue(sem_t * sem, int * sval);
8063
8164#ifdef __cplusplus
8265}
lib/libc/include/any-windows-any/sensorsapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/sensorsapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/sensorsapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/servprov.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/servprov.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/servprov.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/shldisp.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/shldisp.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/shldisp.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/shlwapi.h+2-2
......@@ -438,8 +438,8 @@ extern "C" {
438438 LWSTDAPI_(WINBOOL) PathMatchSpecW(LPCWSTR pszFile,LPCWSTR pszSpec);
439439 LWSTDAPI_(int) PathParseIconLocationA(LPSTR pszIconFile);
440440 LWSTDAPI_(int) PathParseIconLocationW(LPWSTR pszIconFile);
441 LWSTDAPI_(void) PathQuoteSpacesA(LPSTR lpsz);
442 LWSTDAPI_(void) PathQuoteSpacesW(LPWSTR lpsz);
441 LWSTDAPI_(WINBOOL) PathQuoteSpacesA(LPSTR lpsz);
442 LWSTDAPI_(WINBOOL) PathQuoteSpacesW(LPWSTR lpsz);
443443 LWSTDAPI_(WINBOOL) PathRelativePathToA(LPSTR pszPath,LPCSTR pszFrom,DWORD dwAttrFrom,LPCSTR pszTo,DWORD dwAttrTo);
444444 LWSTDAPI_(WINBOOL) PathRelativePathToW(LPWSTR pszPath,LPCWSTR pszFrom,DWORD dwAttrFrom,LPCWSTR pszTo,DWORD dwAttrTo);
445445 LWSTDAPI_(void) PathRemoveArgsA(LPSTR pszPath);
lib/libc/include/any-windows-any/shobjidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/shobjidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/shobjidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/shtypes.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/shtypes.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/shtypes.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/spatialaudioclient.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/spatialaudioclient.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/spatialaudioclient.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/spellcheck.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/spellcheck.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/spellcheck.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/stdio.h+101-26
......@@ -540,8 +540,15 @@ int vsnprintf (char *__stream, size_t __n, const char *__format, __builtin_va_li
540540 _CRTIMP int __cdecl _fileno(FILE *_File);
541541#ifdef _POSIX_
542542 int __cdecl fileno(FILE *_File) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
543#endif
544#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
545#pragma push_macro("_tempnam")
546#undef _tempnam
543547#endif
544548 _CRTIMP char *__cdecl _tempnam(const char *_DirName,const char *_FilePrefix);
549#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
550#pragma pop_macro("_tempnam")
551#endif
545552 _CRTIMP int __cdecl _flushall(void);
546553 FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
547554 FILE *fopen64(const char * __restrict__ filename,const char * __restrict__ mode);
......@@ -915,10 +922,10 @@ int vsprintf (char * __restrict__ __stream, const char * __restrict__ __format,
915922 int __cdecl __mingw_snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...);
916923/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
917924 int __cdecl __mingw_vsnwprintf (wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , va_list);
918/* __attribute__((__format__ (gnu_wprintf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
919 int __cdecl __mingw_swprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ , ...);
920/* __attribute__((__format__ (gnu_wprintf, 2, 0))) */ __MINGW_ATTRIB_NONNULL(2)
921 int __cdecl __mingw_vswprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ ,va_list);
925/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
926 int __cdecl __mingw_swprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , ...);
927/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
928 int __cdecl __mingw_vswprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ ,va_list);
922929
923930/* __attribute__((__format__ (ms_wscanf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
924931 int __cdecl __ms_swscanf(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,...);
......@@ -935,10 +942,10 @@ int vsprintf (char * __restrict__ __stream, const char * __restrict__ __format,
935942 int __cdecl __ms_vfwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);
936943/*__attribute__((__format__ (ms_wprintf, 1, 0))) */ __MINGW_ATTRIB_NONNULL(1)
937944 int __cdecl __ms_vwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);
938/* __attribute__((__format__ (ms_wprintf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
939 int __cdecl __ms_swprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ , ...);
940/* __attribute__((__format__ (ms_wprintf, 2, 0))) */ __MINGW_ATTRIB_NONNULL(2)
941 int __cdecl __ms_vswprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ ,va_list);
945/* __attribute__((__format__ (ms_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
946 int __cdecl __ms_swprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , ...);
947/* __attribute__((__format__ (ms_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
948 int __cdecl __ms_vswprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ ,va_list);
942949
943950#ifdef _UCRT
944951 int __cdecl __stdio_common_vswprintf(unsigned __int64 options, wchar_t *str, size_t len, const wchar_t *format, _locale_t locale, va_list valist);
......@@ -996,6 +1003,32 @@ __MINGW_ASM_CALL(__mingw_vfwprintf);
9961003int vwprintf (const wchar_t *__format, __builtin_va_list __local_argv)
9971004__MINGW_ASM_CALL(__mingw_vwprintf);
9981005
1006/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
1007int swprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, ...)
1008__MINGW_ASM_CALL(__mingw_swprintf);
1009
1010#if __MINGW_FORTIFY_VA_ARG
1011
1012__mingw_bos_extern_ovr
1013/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
1014int swprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, ...)
1015{
1016 __mingw_bos_ptr_chk_warn(__stream, __n * sizeof(wchar_t), 1);
1017 return __mingw_swprintf( __stream, __n, __format, __builtin_va_arg_pack() );
1018}
1019
1020#endif /* __MINGW_FORTIFY_VA_ARG */
1021
1022__mingw_bos_ovr
1023/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
1024int vswprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builtin_va_list __local_argv)
1025{
1026#if __MINGW_FORTIFY_LEVEL > 0
1027 __mingw_bos_ptr_chk_warn(__stream, __n * sizeof(wchar_t), 1);
1028#endif
1029 return __mingw_vswprintf( __stream, __n, __format, __local_argv );
1030}
1031
9991032#ifndef __NO_ISOCEXT /* externs in libmingwex.a */
10001033
10011034/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
......@@ -1023,6 +1056,7 @@ int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builti
10231056#endif
10241057 return __mingw_vsnwprintf( __stream, __n, __format, __local_argv );
10251058}
1059
10261060#endif /* __NO_ISOCEXT */
10271061
10281062#else /* !__USE_MINGW_ANSI_STDIO */
......@@ -1170,7 +1204,45 @@ int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builti
11701204
11711205#if __USE_MINGW_ANSI_STDIO == 0
11721206 __mingw_ovr
1173 int snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...)
1207 int __cdecl swprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,...)
1208 {
1209 __builtin_va_list __ap;
1210 int __ret;
1211 /*
1212 * __stdio_common_vswprintf() for case _Dest == NULL and _Count == 0 and
1213 * without _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR option, is
1214 * executed in "standard snprintf behavior" and returns number of (wide)
1215 * chars required to allocate. For all other cases it is executed in a way
1216 * that returns negative value on error. But C95+ compliant swprintf() for
1217 * case _Count == 0 returns negative value, so handle this case specially.
1218 */
1219 if (_Dest == NULL && _Count == 0)
1220 return -1;
1221 __builtin_va_start(__ap, _Format);
1222 __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Dest, _Count, _Format, NULL, __ap);
1223 __builtin_va_end(__ap);
1224 return __ret < 0 ? -1 : __ret;
1225 }
1226 __mingw_ovr
1227 int __cdecl vswprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,va_list _Args)
1228 {
1229 int __ret;
1230 /*
1231 * __stdio_common_vswprintf() for case _Dest == NULL and _Count == 0 and
1232 * without _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR option, is
1233 * executed in "standard snprintf behavior" and returns number of (wide)
1234 * chars required to allocate. For all other cases it is executed in a way
1235 * that returns negative value on error. But C95+ compliant vswprintf() for
1236 * case _Count == 0 returns negative value, so handle this case specially.
1237 */
1238 if (_Dest == NULL && _Count == 0)
1239 return -1;
1240 __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Dest, _Count, _Format, NULL, _Args);
1241 return __ret < 0 ? -1 : __ret;
1242 }
1243
1244 __mingw_ovr
1245 int __cdecl snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...)
11741246 {
11751247 __builtin_va_list __ap;
11761248 int __ret;
......@@ -1182,8 +1254,7 @@ int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builti
11821254 __mingw_ovr
11831255 int __cdecl vsnwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, va_list arg)
11841256 {
1185 int __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, s, n, format, NULL, arg);
1186 return __ret < 0 ? -1 : __ret;
1257 return __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, s, n, format, NULL, arg);
11871258 }
11881259#endif
11891260
......@@ -1222,26 +1293,16 @@ int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builti
12221293#if __USE_MINGW_ANSI_STDIO == 0
12231294 int __cdecl __ms_snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...);
12241295 int __cdecl __ms_vsnwprintf (wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , va_list);
1225 __mingw_ovr
1226 int snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...)
1227 {
1228 int r;
1229 va_list argp;
1230 __builtin_va_start (argp, format);
1231 r = _vsnwprintf (s, n, format, argp);
1232 __builtin_va_end (argp);
1233 return r;
1234 }
1235 __mingw_ovr
1236 int __cdecl vsnwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, va_list arg)
1237 {
1238 return _vsnwprintf(s,n,format,arg);
1239 }
1296 int __cdecl snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...) __MINGW_ASM_CALL(__ms_snwprintf);
1297 int __cdecl vsnwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, va_list arg) __MINGW_ASM_CALL(__ms_vsnwprintf);
12401298#endif
12411299
12421300#endif /* ! __NO_ISOCEXT */
12431301 _CRTIMP int __cdecl _swprintf(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,...);
12441302 _CRTIMP int __cdecl _vswprintf(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,va_list _Args);
1303
1304 int __cdecl swprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,...);
1305 int __cdecl vswprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,va_list _Args);
12451306#endif /* _UCRT */
12461307
12471308#ifndef RC_INVOKED
......@@ -1255,7 +1316,14 @@ int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builti
12551316#endif
12561317#endif
12571318
1319#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1320#pragma push_macro("_wtempnam")
1321#undef _wtempnam
1322#endif
12581323 _CRTIMP wchar_t *__cdecl _wtempnam(const wchar_t *_Directory,const wchar_t *_FilePrefix);
1324#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1325#pragma pop_macro("_wtempnam")
1326#endif
12591327 _CRTIMP int __cdecl _snwscanf(const wchar_t * __restrict__ _Src,size_t _MaxCount,const wchar_t * __restrict__ _Format,...);
12601328 _CRTIMP FILE *__cdecl _wfdopen(int _FileHandle ,const wchar_t *_Mode);
12611329 _CRTIMP FILE *__cdecl _wfopen(const wchar_t * __restrict__ _Filename,const wchar_t *__restrict__ _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
......@@ -1333,7 +1401,14 @@ int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builti
13331401#define P_tmpdir _P_tmpdir
13341402#define SYS_OPEN _SYS_OPEN
13351403
1404#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1405#pragma push_macro("tempnam")
1406#undef tempnam
1407#endif
13361408 char *__cdecl tempnam(const char *_Directory,const char *_FilePrefix) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
1409#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1410#pragma pop_macro("tempnam")
1411#endif
13371412 int __cdecl fcloseall(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
13381413 FILE *__cdecl fdopen(int _FileHandle,const char *_Format) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
13391414 int __cdecl fgetchar(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
lib/libc/include/any-windows-any/stdlib.h+63
......@@ -419,6 +419,36 @@ float __cdecl __MINGW_NOTHROW strtof(const char * __restrict__ _Str,char ** __re
419419
420420#ifndef _CRT_ALLOCATION_DEFINED
421421#define _CRT_ALLOCATION_DEFINED
422
423#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
424#pragma push_macro("calloc")
425#undef calloc
426#pragma push_macro("free")
427#undef free
428#pragma push_macro("malloc")
429#undef malloc
430#pragma push_macro("realloc")
431#undef realloc
432#pragma push_macro("_aligned_free")
433#undef _aligned_free
434#pragma push_macro("_aligned_malloc")
435#undef _aligned_malloc
436#pragma push_macro("_aligned_offset_malloc")
437#undef _aligned_offset_malloc
438#pragma push_macro("_aligned_realloc")
439#undef _aligned_realloc
440#pragma push_macro("_aligned_offset_realloc")
441#undef _aligned_offset_realloc
442#pragma push_macro("_recalloc")
443#undef _recalloc
444#pragma push_macro("_aligned_recalloc")
445#undef _aligned_recalloc
446#pragma push_macro("_aligned_offset_recalloc")
447#undef _aligned_offset_recalloc
448#pragma push_macro("_aligned_msize")
449#undef _aligned_msize
450#endif
451
422452 void *__cdecl calloc(size_t _NumOfElements,size_t _SizeOfElements);
423453 void __cdecl free(void *_Memory);
424454 void *__cdecl malloc(size_t _Size);
......@@ -434,6 +464,23 @@ float __cdecl __MINGW_NOTHROW strtof(const char * __restrict__ _Str,char ** __re
434464 _CRTIMP void *__cdecl _aligned_offset_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment,size_t _Offset);
435465 _CRTIMP size_t __cdecl _aligned_msize(void *_Memory,size_t _Alignment,size_t _Offset);
436466# endif
467
468#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
469#pragma pop_macro("calloc")
470#pragma pop_macro("free")
471#pragma pop_macro("malloc")
472#pragma pop_macro("realloc")
473#pragma pop_macro("_aligned_free")
474#pragma pop_macro("_aligned_malloc")
475#pragma pop_macro("_aligned_offset_malloc")
476#pragma pop_macro("_aligned_realloc")
477#pragma pop_macro("_aligned_offset_realloc")
478#pragma pop_macro("_recalloc")
479#pragma pop_macro("_aligned_recalloc")
480#pragma pop_macro("_aligned_offset_recalloc")
481#pragma pop_macro("_aligned_msize")
482#endif
483
437484#endif
438485
439486#ifndef _WSTDLIB_DEFINED
......@@ -497,7 +544,16 @@ float __cdecl __MINGW_NOTHROW strtof(const char * __restrict__ _Str,char ** __re
497544
498545#ifndef _POSIX_
499546#define _CVTBUFSIZE (309+40)
547
548#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
549#pragma push_macro("_fullpath")
550#undef _fullpath
551#endif
500552 _CRTIMP char *__cdecl _fullpath(char *_FullPath,const char *_Path,size_t _SizeInBytes);
553#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
554#pragma pop_macro("_fullpath")
555#endif
556
501557 _CRTIMP char *__cdecl _ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
502558 _CRTIMP char *__cdecl _fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
503559 _CRTIMP char *__cdecl _gcvt(double _Val,int _NumOfDigits,char *_DstBuf) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
......@@ -559,7 +615,14 @@ unsigned long __cdecl _lrotr(unsigned long,int);
559615
560616#ifndef _WSTDLIBP_DEFINED
561617#define _WSTDLIBP_DEFINED
618#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
619#pragma push_macro("_wfullpath")
620#undef _wfullpath
621#endif
562622 _CRTIMP wchar_t *__cdecl _wfullpath(wchar_t *_FullPath,const wchar_t *_Path,size_t _SizeInWords);
623#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
624#pragma pop_macro("_wfullpath")
625#endif
563626 _CRTIMP void __cdecl _wmakepath(wchar_t *_ResultPath,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);
564627#ifndef _CRT_WPERROR_DEFINED
565628#define _CRT_WPERROR_DEFINED
lib/libc/include/any-windows-any/string.h+28
......@@ -64,7 +64,14 @@ extern "C" {
6464 size_t __cdecl strlen(const char *_Str);
6565 size_t __cdecl strnlen(const char *_Str,size_t _MaxCount);
6666 void *__cdecl memmove(void *_Dst,const void *_Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
67#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
68#pragma push_macro("_strdup")
69#undef _strdup
70#endif
6771 _CRTIMP char *__cdecl _strdup(const char *_Src);
72#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
73#pragma pop_macro("_strdup")
74#endif
6875 _CONST_RETURN char *__cdecl strchr(const char *_Str,int _Val);
6976 _CRTIMP int __cdecl _stricmp(const char *_Str1,const char *_Str2);
7077 _CRTIMP int __cdecl _strcmpi(const char *_Str1,const char *_Str2);
......@@ -105,7 +112,14 @@ extern "C" {
105112 _CRTIMP size_t __cdecl _strxfrm_l(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale);
106113
107114#ifndef NO_OLDNAMES
115#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
116#pragma push_macro("strdup")
117#undef strdup
118#endif
108119 char *__cdecl strdup(const char *_Src) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
120#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
121#pragma pop_macro("strdup")
122#endif
109123 int __cdecl strcmpi(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
110124 int __cdecl stricmp(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
111125 char *__cdecl strlwr(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
......@@ -128,7 +142,14 @@ extern "C" {
128142#ifndef _WSTRING_DEFINED
129143#define _WSTRING_DEFINED
130144
145#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
146#pragma push_macro("_wcsdup")
147#undef _wcsdup
148#endif
131149 _CRTIMP wchar_t *__cdecl _wcsdup(const wchar_t *_Str);
150#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
151#pragma pop_macro("_wcsdup")
152#endif
132153 wchar_t *__cdecl wcscat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
133154 _CONST_RETURN wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch);
134155 int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2);
......@@ -177,7 +198,14 @@ extern "C" {
177198 _CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);
178199
179200#ifndef NO_OLDNAMES
201#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
202#pragma push_macro("wcsdup")
203#undef wcsdup
204#endif
180205 wchar_t *__cdecl wcsdup(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
206#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
207#pragma pop_macro("wcsdup")
208#endif
181209#define wcswcs wcsstr
182210 int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
183211 int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
lib/libc/include/any-windows-any/strmif.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/strmif.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/strmif.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/structuredquerycondition.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/structuredquerycondition.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/structuredquerycondition.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/swprintf.inl+5-29
......@@ -9,26 +9,6 @@
99
1010#include <vadefs.h>
1111
12__mingw_ovr
13/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
14int vswprintf (wchar_t *__stream, size_t __count, const wchar_t *__format, __builtin_va_list __local_argv)
15{
16 return vsnwprintf( __stream, __count, __format, __local_argv );
17}
18
19__mingw_ovr
20/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
21int swprintf (wchar_t *__stream, size_t __count, const wchar_t *__format, ...)
22{
23 int __retval;
24 __builtin_va_list __local_argv;
25
26 __builtin_va_start( __local_argv, __format );
27 __retval = vswprintf( __stream, __count, __format, __local_argv );
28 __builtin_va_end( __local_argv );
29 return __retval;
30}
31
3212#ifdef __cplusplus
3313
3414extern "C++" {
......@@ -37,17 +17,15 @@ __mingw_ovr
3717/* __attribute__((__format__ (gnu_wprintf, 2, 0))) */ __MINGW_ATTRIB_NONNULL(2)
3818int vswprintf (wchar_t *__stream, const wchar_t *__format, __builtin_va_list __local_argv)
3919{
40#if __USE_MINGW_ANSI_STDIO
41 return __mingw_vswprintf( __stream, __format, __local_argv );
42#else
4320 return _vswprintf( __stream, __format, __local_argv );
44#endif
4521}
4622
4723__mingw_ovr
4824/* __attribute__((__format__ (gnu_wprintf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
4925int swprintf (wchar_t *__stream, const wchar_t *__format, ...)
5026{
27#ifdef __clang__
28 /* clang does not support __builtin_va_arg_pack(), so forward swprintf() to vswprintf() */
5129 int __retval;
5230 __builtin_va_list __local_argv;
5331
......@@ -55,19 +33,17 @@ int swprintf (wchar_t *__stream, const wchar_t *__format, ...)
5533 __retval = vswprintf( __stream, __format, __local_argv );
5634 __builtin_va_end( __local_argv );
5735 return __retval;
36#else
37 return _swprintf( __stream, __format, __builtin_va_arg_pack() );
38#endif
5839}
5940
6041}
6142
6243#elif defined(_CRT_NON_CONFORMING_SWPRINTFS)
6344
64#if __USE_MINGW_ANSI_STDIO
65#define swprintf __mingw_swprintf
66#define vswprintf __mingw_vswprintf
67#else
6845#define swprintf _swprintf
6946#define vswprintf _vswprintf
70#endif
7147
7248#endif /* __cplusplus */
7349
lib/libc/include/any-windows-any/systemmediatransportcontrolsinterop.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/systemmediatransportcontrolsinterop.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/systemmediatransportcontrolsinterop.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/taskschd.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/taskschd.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/taskschd.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/tchar.h+49-34
......@@ -133,7 +133,7 @@ extern "C" {
133133#define _tenviron _wenviron
134134#define __targv __wargv
135135
136#define _tprintf wprintf
136#define _tprintf __ms_wprintf
137137#define _tprintf_l _wprintf_l
138138#define _tprintf_p _wprintf_p
139139#define _tprintf_p_l _wprintf_p_l
......@@ -145,11 +145,11 @@ extern "C" {
145145#define _vtcprintf_l _vcwprintf_l
146146#define _vtcprintf_p _vcwprintf_p
147147#define _vtcprintf_p_l _vcwprintf_p_l
148#define _ftprintf fwprintf
148#define _ftprintf __ms_fwprintf
149149#define _ftprintf_l _fwprintf_l
150150#define _ftprintf_p _fwprintf_p
151151#define _ftprintf_p_l _fwprintf_p_l
152#define _stprintf swprintf
152#define _stprintf _swprintf
153153#define _stprintf_l __swprintf_l
154154#define _stprintf_p _swprintf_p
155155#define _stprintf_p_l _swprintf_p_l
......@@ -159,15 +159,15 @@ extern "C" {
159159#define _sctprintf_p_l _scwprintf_p_l
160160#define _sntprintf _snwprintf
161161#define _sntprintf_l _snwprintf_l
162#define _vtprintf vwprintf
162#define _vtprintf __ms_vwprintf
163163#define _vtprintf_l _vwprintf_l
164164#define _vtprintf_p _vwprintf_p
165165#define _vtprintf_p_l _vwprintf_p_l
166#define _vftprintf vfwprintf
166#define _vftprintf __ms_vfwprintf
167167#define _vftprintf_l _vfwprintf_l
168168#define _vftprintf_p _vfwprintf_p
169169#define _vftprintf_p_l _vfwprintf_p_l
170#define _vstprintf vswprintf
170#define _vstprintf _vswprintf
171171#define _vstprintf_l _vswprintf_l
172172#define _vstprintf_p _vswprintf_p
173173#define _vstprintf_p_l _vswprintf_p_l
......@@ -178,13 +178,13 @@ extern "C" {
178178#define _vsntprintf _vsnwprintf
179179#define _vsntprintf_l _vsnwprintf_l
180180
181#define _tscanf wscanf
181#define _tscanf __ms_wscanf
182182#define _tscanf_l _wscanf_l
183183#define _tcscanf _cwscanf
184184#define _tcscanf_l _cwscanf_l
185#define _ftscanf fwscanf
185#define _ftscanf __ms_fwscanf
186186#define _ftscanf_l _fwscanf_l
187#define _stscanf swscanf
187#define _stscanf __ms_swscanf
188188#define _stscanf_l _swscanf_l
189189#define _sntscanf _snwscanf
190190#define _sntscanf_l _snwscanf_l
......@@ -404,6 +404,21 @@ extern "C" {
404404
405405#define _tsetlocale _wsetlocale
406406
407#if __MSVCRT_VERSION__ >= 0x800
408#define _fgettc_nolock _fgetwc_nolock
409#define _fputtc_nolock _fputwc_nolock
410#define _gettc_nolock _getwc_nolock
411#define _gettch_nolock _getwch_nolock
412#define _gettche_nolock _getwche_nolock
413#define _gettchar_nolock _getwchar_nolock
414#define _puttc_nolock _putwc_nolock
415#define _puttchar_nolock _putwchar_nolock
416#define _puttch_nolock _putwch_nolock
417#define _ungettc_nolock _ungetwc_nolock
418#define _ungettch_nolock _ungetwch_nolock
419#define _tgetdcwd_nolock _wgetdcwd_nolock
420#endif
421
407422#define _tcsclen wcslen
408423#define _tcscnlen wcsnlen
409424#define _tcsclen_l(_String,_Locale) wcslen(_String)
......@@ -457,6 +472,10 @@ extern "C" {
457472#define _istupper_l _iswupper_l
458473#define _istxdigit iswxdigit
459474#define _istxdigit_l _iswxdigit_l
475#define _istblank iswblank
476#if __MSVCRT_VERSION__ >= 0xC00
477#define _istblank_l _iswblank_l
478#endif /* msvcr120 */
460479
461480#define _totupper towupper
462481#define _totupper_l _towupper_l
......@@ -493,7 +512,7 @@ extern "C" {
493512
494513#endif /* __CYGWIN__ */
495514
496#else
515#else /* _UNICODE */
497516
498517#ifdef __cplusplus
499518}
......@@ -520,7 +539,7 @@ extern "C" {
520539#endif
521540#define __targv __argv
522541
523#define _tprintf printf
542#define _tprintf __ms_printf
524543#define _tprintf_l _printf_l
525544#define _tprintf_p _printf_p
526545#define _tprintf_p_l _printf_p_l
......@@ -532,11 +551,11 @@ extern "C" {
532551#define _vtcprintf_l _vcprintf_l
533552#define _vtcprintf_p _vcprintf_p
534553#define _vtcprintf_p_l _vcprintf_p_l
535#define _ftprintf fprintf
554#define _ftprintf __ms_fprintf
536555#define _ftprintf_l _fprintf_l
537556#define _ftprintf_p _fprintf_p
538557#define _ftprintf_p_l _fprintf_p_l
539#define _stprintf sprintf
558#define _stprintf __ms_sprintf
540559#define _stprintf_l _sprintf_l
541560#define _stprintf_p _sprintf_p
542561#define _stprintf_p_l _sprintf_p_l
......@@ -546,15 +565,15 @@ extern "C" {
546565#define _sctprintf_p_l _scprintf_p_l
547566#define _sntprintf _snprintf
548567#define _sntprintf_l _snprintf_l
549#define _vtprintf vprintf
568#define _vtprintf __ms_vprintf
550569#define _vtprintf_l _vprintf_l
551570#define _vtprintf_p _vprintf_p
552571#define _vtprintf_p_l _vprintf_p_l
553#define _vftprintf vfprintf
572#define _vftprintf __ms_vfprintf
554573#define _vftprintf_l _vfprintf_l
555574#define _vftprintf_p _vfprintf_p
556575#define _vftprintf_p_l _vfprintf_p_l
557#define _vstprintf vsprintf
576#define _vstprintf __ms_vsprintf
558577#define _vstprintf_l _vsprintf_l
559578#define _vstprintf_p _vsprintf_p
560579#define _vstprintf_p_l _vsprintf_p_l
......@@ -565,13 +584,13 @@ extern "C" {
565584#define _vsntprintf _vsnprintf
566585#define _vsntprintf_l _vsnprintf_l
567586
568#define _tscanf scanf
587#define _tscanf __ms_scanf
569588#define _tscanf_l _scanf_l
570589#define _tcscanf _cscanf
571590#define _tcscanf_l _cscanf_l
572#define _ftscanf fscanf
591#define _ftscanf __ms_fscanf
573592#define _ftscanf_l _fscanf_l
574#define _stscanf sscanf
593#define _stscanf __ms_sscanf
575594#define _stscanf_l _sscanf_l
576595#define _sntscanf _snscanf
577596#define _sntscanf_l _snscanf_l
......@@ -769,18 +788,6 @@ extern "C" {
769788#define _tsetlocale setlocale
770789
771790#if __MSVCRT_VERSION__ >= 0x800
772#define _fgettc_nolock _fgetwc_nolock
773#define _fputtc_nolock _fputwc_nolock
774#define _gettc_nolock _getwc_nolock
775#define _gettch_nolock _getwch_nolock
776#define _gettche_nolock _getwche_nolock
777#define _gettchar_nolock _getwchar_nolock
778#define _puttc_nolock _putwc_nolock
779#define _puttchar_nolock _putwchar_nolock
780#define _puttch_nolock _putwch_nolock
781#define _ungettc_nolock _ungetwc_nolock
782#define _ungettch_nolock _ungetwch_nolock
783#define _tgetdcwd_nolock _wgetdcwd_nolock
784791#define _fgettc_nolock _fgetc_nolock
785792#define _fputtc_nolock _fputc_nolock
786793#define _gettc_nolock _getc_nolock
......@@ -997,6 +1004,10 @@ extern "C" {
9971004#define _istspace_l _ismbcspace_l
9981005#define _istupper _ismbcupper
9991006#define _istupper_l _ismbcupper_l
1007#define _istblank _ismbcblank
1008#if __MSVCRT_VERSION__ >= 0xC00
1009#define _istblank_l _ismbcblank_l
1010#endif /* msvcr120 */
10001011
10011012#define _totupper _mbctoupper
10021013#define _totupper_l _mbctoupper_l
......@@ -1009,7 +1020,7 @@ extern "C" {
10091020
10101021#endif /* __CYGWIN__ */
10111022
1012#else
1023#else /* _MBCS */
10131024
10141025#ifndef __TCHAR_DEFINED
10151026#define __TCHAR_DEFINED
......@@ -1134,6 +1145,10 @@ extern "C" {
11341145#define _istspace_l _isspace_l
11351146#define _istupper isupper
11361147#define _istupper_l _isupper_l
1148#define _istblank isblank
1149#if __MSVCRT_VERSION__ >= 0xC00
1150#define _istblank_l _isblank_l
1151#endif /* msvcr120 */
11371152
11381153#define _totupper toupper
11391154#define _totupper_l _toupper_l
......@@ -1168,9 +1183,9 @@ extern "C" {
11681183#define _strnset_l(_Destination,_Value,_Count,_Locale) (_strnset(_Destination,_Value,_Count))
11691184#define _strset_l(_Destination,_Value,_Locale) (_strset(_Destination,_Value))
11701185#endif
1171#endif
1186#endif /* _MBCS */
11721187
1173#endif /* __CYGWIN__ */
1188#endif /* _UNICODE */
11741189
11751190#define _T(x) __T(x)
11761191#define _TEXT(x) __T(x)
lib/libc/include/any-windows-any/textstor.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/textstor.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/textstor.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/thumbcache.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/thumbcache.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/thumbcache.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/tlbref.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/tlbref.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/tlbref.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/tlogstg.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/tlogstg.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/tlogstg.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/tpcshrd.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/tpcshrd.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/tpcshrd.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/tsvirtualchannels.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/tsvirtualchannels.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/tsvirtualchannels.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/tuner.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/tuner.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/tuner.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/uianimation.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/uianimation.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/uianimation.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/uiautomationclient.h+91-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/uiautomationclient.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/uiautomationclient.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
......@@ -1344,6 +1344,96 @@ DEFINE_GUID(LIBID_UIAutomationClient, 0x944de083, 0x8fb8, 0x45cf, 0xbc,0xb7, 0xc
13441344#define UIA_AppBarControlTypeId (50040)
13451345
13461346#endif /* __UIA_ControlTypeIds_MODULE_DEFINED__ */
1347#ifndef __UIA_AnnotationTypes_MODULE_DEFINED__
1348#define __UIA_AnnotationTypes_MODULE_DEFINED__
1349#define AnnotationType_Unknown (60000)
1350
1351#define AnnotationType_SpellingError (60001)
1352
1353#define AnnotationType_GrammarError (60002)
1354
1355#define AnnotationType_Comment (60003)
1356
1357#define AnnotationType_FormulaError (60004)
1358
1359#define AnnotationType_TrackChanges (60005)
1360
1361#define AnnotationType_Header (60006)
1362
1363#define AnnotationType_Footer (60007)
1364
1365#define AnnotationType_Highlighted (60008)
1366
1367#define AnnotationType_Endnote (60009)
1368
1369#define AnnotationType_Footnote (60010)
1370
1371#define AnnotationType_InsertionChange (60011)
1372
1373#define AnnotationType_DeletionChange (60012)
1374
1375#define AnnotationType_MoveChange (60013)
1376
1377#define AnnotationType_FormatChange (60014)
1378
1379#define AnnotationType_UnsyncedChange (60015)
1380
1381#define AnnotationType_EditingLockedChange (60016)
1382
1383#define AnnotationType_ExternalChange (60017)
1384
1385#define AnnotationType_ConflictingChange (60018)
1386
1387#define AnnotationType_Author (60019)
1388
1389#define AnnotationType_AdvancedProofingIssue (60020)
1390
1391#define AnnotationType_DataValidationError (60021)
1392
1393#define AnnotationType_CircularReferenceError (60022)
1394
1395#define AnnotationType_Mathematics (60023)
1396
1397#define AnnotationType_Sensitive (60024)
1398
1399#endif /* __UIA_AnnotationTypes_MODULE_DEFINED__ */
1400#ifndef __UIA_StyleIds_MODULE_DEFINED__
1401#define __UIA_StyleIds_MODULE_DEFINED__
1402#define StyleId_Custom (70000)
1403
1404#define StyleId_Heading1 (70001)
1405
1406#define StyleId_Heading2 (70002)
1407
1408#define StyleId_Heading3 (70003)
1409
1410#define StyleId_Heading4 (70004)
1411
1412#define StyleId_Heading5 (70005)
1413
1414#define StyleId_Heading6 (70006)
1415
1416#define StyleId_Heading7 (70007)
1417
1418#define StyleId_Heading8 (70008)
1419
1420#define StyleId_Heading9 (70009)
1421
1422#define StyleId_Title (70010)
1423
1424#define StyleId_Subtitle (70011)
1425
1426#define StyleId_Normal (70012)
1427
1428#define StyleId_Emphasis (70013)
1429
1430#define StyleId_Quote (70014)
1431
1432#define StyleId_BulletedList (70015)
1433
1434#define StyleId_NumberedList (70016)
1435
1436#endif /* __UIA_StyleIds_MODULE_DEFINED__ */
13471437#ifndef __UIA_LandmarkTypeIds_MODULE_DEFINED__
13481438#define __UIA_LandmarkTypeIds_MODULE_DEFINED__
13491439#define UIA_CustomLandmarkTypeId (80000)
lib/libc/include/any-windows-any/uiautomationcore.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/uiautomationcore.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/uiautomationcore.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/uiviewsettingsinterop.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/uiviewsettingsinterop.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/uiviewsettingsinterop.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/unknwn.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/unknwn.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/unknwn.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/unknwnbase.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/unknwnbase.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/unknwnbase.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/urlhist.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/urlhist.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/urlhist.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/urlmon.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/urlmon.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/urlmon.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vdslun.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vdslun.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vdslun.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vidcap.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vidcap.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vidcap.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vmr9.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vmr9.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vmr9.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vsadmin.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vsadmin.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vsadmin.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vsbackup.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vsbackup.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vsbackup.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vsmgmt.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vsmgmt.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vsmgmt.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vsprov.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vsprov.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vsprov.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vss.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vss.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vss.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/vswriter.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/vswriter.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/vswriter.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wbemads.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wbemads.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wbemads.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wbemcli.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wbemcli.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wbemcli.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wbemdisp.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wbemdisp.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wbemdisp.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wbemprov.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wbemprov.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wbemprov.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wbemtran.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wbemtran.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wbemtran.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wchar.h+112-30
......@@ -213,8 +213,9 @@ _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);
213213 wint_t __cdecl towupper(wint_t _C);
214214 wint_t __cdecl towlower(wint_t _C);
215215 int __cdecl iswctype(wint_t _C,wctype_t _Type);
216#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x700 && _WIN32_WINNT >= 0x0600)
217 /* These are available since msvcr80.dll, and in msvcrt.dll since Vista. */
216#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x600 && _WIN32_WINNT >= 0x0600)
217 /* These are available since msvcr80.dll (__MSVCRT_VERSION__ >= 0x800), and in
218 * msvcrt.dll (__MSVCRT_VERSION__ == 0x600) since Vista (_WIN32_WINNT >= 0x0600). */
218219 _CRTIMP int __cdecl _iswalpha_l(wint_t _C,_locale_t _Locale);
219220 _CRTIMP int __cdecl _iswupper_l(wint_t _C,_locale_t _Locale);
220221 _CRTIMP int __cdecl _iswlower_l(wint_t _C,_locale_t _Locale);
......@@ -253,10 +254,23 @@ _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);
253254#ifndef _WDIRECT_DEFINED
254255#define _WDIRECT_DEFINED
255256
257#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
258#pragma push_macro("_wgetcwd")
259#undef _wgetcwd
260#pragma push_macro("_wgetdcwd")
261#undef _wgetdcwd
262#pragma push_macro("_wgetdcwd_nolock")
263#undef _wgetdcwd_nolock
264#endif
256265 _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
257266 _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
258267#if __MSVCRT_VERSION__ >= 0x800
259268 wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
269#endif
270#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
271#pragma pop_macro("_wgetcwd")
272#pragma pop_macro("_wgetdcwd")
273#pragma pop_macro("_wgetdcwd_nolock")
260274#endif
261275 _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
262276 _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
......@@ -336,7 +350,7 @@ _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);
336350#define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))
337351#define iswcntrl(_c) (iswctype(_c,_CONTROL))
338352#define iswascii(_c) ((unsigned)(_c) < 0x80)
339#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x700 && _WIN32_WINNT >= 0x0600)
353#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x600 && _WIN32_WINNT >= 0x0600)
340354# define _iswalpha_l(_c,_p) (_iswctype_l(_c,_ALPHA,_p))
341355# define _iswupper_l(_c,_p) (_iswctype_l(_c,_UPPER,_p))
342356# define _iswlower_l(_c,_p) (_iswctype_l(_c,_LOWER,_p))
......@@ -452,10 +466,10 @@ _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);
452466 int __cdecl __mingw_snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...);
453467/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
454468 int __cdecl __mingw_vsnwprintf (wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , va_list);
455/* __attribute__((__format__ (gnu_wprintf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
456 int __cdecl __mingw_swprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ , ...);
457/* __attribute__((__format__ (gnu_wprintf, 2, 0))) */ __MINGW_ATTRIB_NONNULL(2)
458 int __cdecl __mingw_vswprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ ,va_list);
469/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
470 int __cdecl __mingw_swprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , ...);
471/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
472 int __cdecl __mingw_vswprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ ,va_list);
459473
460474/* __attribute__((__format__ (ms_wscanf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
461475 int __cdecl __ms_swscanf(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,...);
......@@ -472,10 +486,10 @@ _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);
472486 int __cdecl __ms_vfwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);
473487/*__attribute__((__format__ (ms_wprintf, 1, 0))) */ __MINGW_ATTRIB_NONNULL(1)
474488 int __cdecl __ms_vwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);
475/* __attribute__((__format__ (ms_wprintf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
476 int __cdecl __ms_swprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ , ...);
477/* __attribute__((__format__ (ms_wprintf, 2, 0))) */ __MINGW_ATTRIB_NONNULL(2)
478 int __cdecl __ms_vswprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ ,va_list);
489/* __attribute__((__format__ (ms_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
490 int __cdecl __ms_swprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , ...);
491/* __attribute__((__format__ (ms_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
492 int __cdecl __ms_vswprintf(wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ ,va_list);
479493
480494#ifdef _UCRT
481495 int __cdecl __stdio_common_vswprintf(unsigned __int64 options, wchar_t *str, size_t len, const wchar_t *format, _locale_t locale, va_list valist);
......@@ -533,7 +547,16 @@ __MINGW_ASM_CALL(__mingw_vfwprintf);
533547int vwprintf (const wchar_t *__format, __builtin_va_list __local_argv)
534548__MINGW_ASM_CALL(__mingw_vwprintf);
535549
536/*#ifndef __NO_ISOCEXT */ /* externs in libmingwex.a */
550/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
551int swprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, ...)
552__MINGW_ASM_CALL(__mingw_swprintf);
553
554/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
555int vswprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builtin_va_list __local_argv)
556__MINGW_ASM_CALL(__mingw_vswprintf);
557
558#ifndef __NO_ISOCEXT /* externs in libmingwex.a */
559
537560/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
538561int snwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, ...)
539562__MINGW_ASM_CALL(__mingw_snwprintf);
......@@ -541,7 +564,9 @@ __MINGW_ASM_CALL(__mingw_snwprintf);
541564/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
542565int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builtin_va_list __local_argv)
543566__MINGW_ASM_CALL(__mingw_vsnwprintf);
544/* #endif */ /* __NO_ISOCEXT */
567
568#endif /* __NO_ISOCEXT */
569
545570#else /* !__USE_MINGW_ANSI_STDIO */
546571
547572#ifdef _UCRT
......@@ -616,6 +641,44 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
616641 {
617642 return __stdio_common_vfwprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, stdout, _Format, NULL, _ArgList);
618643 }
644
645 __mingw_ovr
646 int __cdecl swprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,...)
647 {
648 __builtin_va_list __ap;
649 int __ret;
650 /*
651 * __stdio_common_vswprintf() for case _Dest == NULL and _Count == 0 and
652 * without _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR option, is
653 * executed in "standard snprintf behavior" and returns number of (wide)
654 * chars required to allocate. For all other cases it is executed in a way
655 * that returns negative value on error. But C95+ compliant swprintf() for
656 * case _Count == 0 returns negative value, so handle this case specially.
657 */
658 if (_Dest == NULL && _Count == 0)
659 return -1;
660 __builtin_va_start(__ap, _Format);
661 __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Dest, _Count, _Format, NULL, __ap);
662 __builtin_va_end(__ap);
663 return __ret < 0 ? -1 : __ret;
664 }
665 __mingw_ovr
666 int __cdecl vswprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,va_list _Args)
667 {
668 int __ret;
669 /*
670 * __stdio_common_vswprintf() for case _Dest == NULL and _Count == 0 and
671 * without _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR option, is
672 * executed in "standard snprintf behavior" and returns number of (wide)
673 * chars required to allocate. For all other cases it is executed in a way
674 * that returns negative value on error. But C95+ compliant vswprintf() for
675 * case _Count == 0 returns negative value, so handle this case specially.
676 */
677 if (_Dest == NULL && _Count == 0)
678 return -1;
679 __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Dest, _Count, _Format, NULL, _Args);
680 return __ret < 0 ? -1 : __ret;
681 }
619682#else
620683
621684 int __cdecl fwscanf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
......@@ -652,6 +715,9 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
652715 int __cdecl wprintf(const wchar_t * __restrict__ _Format,...);
653716 int __cdecl vfwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);
654717 int __cdecl vwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);
718
719 int __cdecl swprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,...);
720 int __cdecl vswprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,va_list _Args);
655721#endif /* _UCRT */
656722#endif /* __USE_MINGW_ANSI_STDIO */
657723
......@@ -707,12 +773,12 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
707773 __builtin_va_start(__ap, format);
708774 __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, s, n, format, NULL, __ap);
709775 __builtin_va_end(__ap);
710 return __ret;
776 return __ret < 0 ? -1 : __ret;
711777 }
712778 __mingw_ovr
713779 int __cdecl vsnwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, va_list arg)
714780 {
715 int __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, s, n, format, NULL, arg);
781 int __ret = __stdio_common_vswprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, s, n, format, NULL, arg);
716782 return __ret < 0 ? -1 : __ret;
717783 }
718784#endif
......@@ -734,21 +800,8 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
734800# undef vsnwprintf
735801 int __cdecl __ms_snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...);
736802 int __cdecl __ms_vsnwprintf (wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , va_list);
737 __mingw_ovr
738 int snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...)
739 {
740 int r;
741 va_list argp;
742 __builtin_va_start (argp, format);
743 r = _vsnwprintf (s, n, format, argp);
744 __builtin_va_end (argp);
745 return r;
746 }
747 __mingw_ovr
748 int __cdecl vsnwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, va_list arg)
749 {
750 return _vsnwprintf(s,n,format,arg);
751 }
803 int __cdecl snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...) __MINGW_ASM_CALL(__ms_snwprintf);
804 int __cdecl vsnwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, va_list arg) __MINGW_ASM_CALL(__ms_vsnwprintf);
752805#pragma pop_macro ("vsnwprintf")
753806#pragma pop_macro ("snwprintf")
754807#endif
......@@ -1078,7 +1131,15 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
10781131#endif
10791132#endif
10801133
1134#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1135#pragma push_macro("_wtempnam")
1136#undef _wtempnam
1137#endif
10811138 _CRTIMP wchar_t *__cdecl _wtempnam(const wchar_t *_Directory,const wchar_t *_FilePrefix);
1139#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1140#pragma pop_macro("_wtempnam")
1141#endif
1142
10821143#ifndef _UCRT
10831144 _CRTIMP int __cdecl _vscwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);
10841145 _CRTIMP int __cdecl _vscwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);
......@@ -1184,7 +1245,14 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
11841245#ifndef _POSIX_
11851246#ifndef _WSTDLIBP_DEFINED
11861247#define _WSTDLIBP_DEFINED
1248#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1249#pragma push_macro("_wfullpath")
1250#undef _wfullpath
1251#endif
11871252 _CRTIMP wchar_t *__cdecl _wfullpath(wchar_t *_FullPath,const wchar_t *_Path,size_t _SizeInWords);
1253#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1254#pragma pop_macro("_wfullpath")
1255#endif
11881256 _CRTIMP void __cdecl _wmakepath(wchar_t *_ResultPath,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);
11891257#ifndef _CRT_WPERROR_DEFINED
11901258#define _CRT_WPERROR_DEFINED
......@@ -1198,7 +1266,14 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
11981266
11991267#ifndef _WSTRING_DEFINED
12001268#define _WSTRING_DEFINED
1269#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1270#pragma push_macro("_wcsdup")
1271#undef _wcsdup
1272#endif
12011273 _CRTIMP wchar_t *__cdecl _wcsdup(const wchar_t *_Str);
1274#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1275#pragma pop_macro("_wcsdup")
1276#endif
12021277 wchar_t *__cdecl wcscat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
12031278 _CONST_RETURN wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch);
12041279 int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2);
......@@ -1247,7 +1322,14 @@ __MINGW_ASM_CALL(__mingw_vsnwprintf);
12471322 _CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);
12481323
12491324#ifndef NO_OLDNAMES
1325#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1326#pragma push_macro("wcsdup")
1327#undef wcsdup
1328#endif
12501329 wchar_t *__cdecl wcsdup(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
1330#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC)
1331#pragma pop_macro("wcsdup")
1332#endif
12511333#define wcswcs wcsstr
12521334 int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
12531335 int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
lib/libc/include/any-windows-any/wdstptmgmt.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wdstptmgmt.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wdstptmgmt.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/weakreference.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/weakreference.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/weakreference.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wia.h+22-1029
......@@ -1,1035 +1,28 @@
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.
1/*
2 * Copyright (C) 2009 Damjan Jovanovic
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
517 */
6#ifndef __REQUIRED_RPCNDR_H_VERSION__
7#define __REQUIRED_RPCNDR_H_VERSION__ 475
8#endif
9
10#include "rpc.h"
11#include "rpcndr.h"
12
13#ifndef __RPCNDR_H_VERSION__
14#error This stub requires an updated version of <rpcndr.h>
15#endif
16
17#ifndef COM_NO_WINDOWS_H
18#include "windows.h"
19#include "ole2.h"
20#endif
21
22#ifndef __wia_h__
23#define __wia_h__
24
25#ifndef __IWiaDevMgr_FWD_DEFINED__
26#define __IWiaDevMgr_FWD_DEFINED__
27typedef struct IWiaDevMgr IWiaDevMgr;
28#endif
29
30#ifndef __IEnumWIA_DEV_INFO_FWD_DEFINED__
31#define __IEnumWIA_DEV_INFO_FWD_DEFINED__
32typedef struct IEnumWIA_DEV_INFO IEnumWIA_DEV_INFO;
33#endif
34
35#ifndef __IWiaEventCallback_FWD_DEFINED__
36#define __IWiaEventCallback_FWD_DEFINED__
37typedef struct IWiaEventCallback IWiaEventCallback;
38#endif
39
40#ifndef __IWiaDataCallback_FWD_DEFINED__
41#define __IWiaDataCallback_FWD_DEFINED__
42typedef struct IWiaDataCallback IWiaDataCallback;
43#endif
44
45#ifndef __IWiaDataTransfer_FWD_DEFINED__
46#define __IWiaDataTransfer_FWD_DEFINED__
47typedef struct IWiaDataTransfer IWiaDataTransfer;
48#endif
49
50#ifndef __IWiaItem_FWD_DEFINED__
51#define __IWiaItem_FWD_DEFINED__
52typedef struct IWiaItem IWiaItem;
53#endif
54
55#ifndef __IWiaPropertyStorage_FWD_DEFINED__
56#define __IWiaPropertyStorage_FWD_DEFINED__
57typedef struct IWiaPropertyStorage IWiaPropertyStorage;
58#endif
59
60#ifndef __IEnumWiaItem_FWD_DEFINED__
61#define __IEnumWiaItem_FWD_DEFINED__
62typedef struct IEnumWiaItem IEnumWiaItem;
63#endif
64
65#ifndef __IEnumWIA_DEV_CAPS_FWD_DEFINED__
66#define __IEnumWIA_DEV_CAPS_FWD_DEFINED__
67typedef struct IEnumWIA_DEV_CAPS IEnumWIA_DEV_CAPS;
68#endif
69
70#ifndef __IEnumWIA_FORMAT_INFO_FWD_DEFINED__
71#define __IEnumWIA_FORMAT_INFO_FWD_DEFINED__
72typedef struct IEnumWIA_FORMAT_INFO IEnumWIA_FORMAT_INFO;
73#endif
74
75#ifndef __IWiaLog_FWD_DEFINED__
76#define __IWiaLog_FWD_DEFINED__
77typedef struct IWiaLog IWiaLog;
78#endif
79
80#ifndef __IWiaLogEx_FWD_DEFINED__
81#define __IWiaLogEx_FWD_DEFINED__
82typedef struct IWiaLogEx IWiaLogEx;
83#endif
8418
85#ifndef __IWiaNotifyDevMgr_FWD_DEFINED__
86#define __IWiaNotifyDevMgr_FWD_DEFINED__
87typedef struct IWiaNotifyDevMgr IWiaNotifyDevMgr;
88#endif
89
90#ifndef __IWiaItemExtras_FWD_DEFINED__
91#define __IWiaItemExtras_FWD_DEFINED__
92typedef struct IWiaItemExtras IWiaItemExtras;
93#endif
94
95#ifndef __WiaDevMgr_FWD_DEFINED__
96#define __WiaDevMgr_FWD_DEFINED__
97
98#ifdef __cplusplus
99typedef class WiaDevMgr WiaDevMgr;
100#else
101typedef struct WiaDevMgr WiaDevMgr;
102#endif
103#endif
104
105#ifndef __WiaLog_FWD_DEFINED__
106#define __WiaLog_FWD_DEFINED__
10719
108#ifdef __cplusplus
109typedef class WiaLog WiaLog;
110#else
111typedef struct WiaLog WiaLog;
20#ifdef __WINESRC__
21#error Specify wia_lh.h or wia_xp.h explicitly in Wine
11222#endif
113#endif
114
115#include "unknwn.h"
116#include "oaidl.h"
117#include "propidl.h"
118
119#ifdef __cplusplus
120extern "C" {
121#endif
122
123#ifndef __MIDL_user_allocate_free_DEFINED__
124#define __MIDL_user_allocate_free_DEFINED__
125 void *__RPC_API MIDL_user_allocate(size_t);
126 void __RPC_API MIDL_user_free(void *);
127#endif
128
129 typedef struct _WIA_DITHER_PATTERN_DATA {
130 LONG lSize;
131 BSTR bstrPatternName;
132 LONG lPatternWidth;
133 LONG lPatternLength;
134 LONG cbPattern;
135 BYTE *pbPattern;
136 } WIA_DITHER_PATTERN_DATA;
137
138 typedef struct _WIA_DITHER_PATTERN_DATA *PWIA_DITHER_PATTERN_DATA;
13923
140 typedef struct _WIA_PROPID_TO_NAME {
141 PROPID propid;
142 LPOLESTR pszName;
143 } WIA_PROPID_TO_NAME;
144
145 typedef struct _WIA_PROPID_TO_NAME *PWIA_PROPID_TO_NAME;
146
147 typedef struct _WIA_FORMAT_INFO {
148 GUID guidFormatID;
149 LONG lTymed;
150 } WIA_FORMAT_INFO;
151
152 typedef struct _WIA_FORMAT_INFO *PWIA_FORMAT_INFO;
153
154#include "wiadef.h"
155
156 extern RPC_IF_HANDLE __MIDL_itf_wia_0000_v0_0_c_ifspec;
157 extern RPC_IF_HANDLE __MIDL_itf_wia_0000_v0_0_s_ifspec;
158#ifndef __IWiaDevMgr_INTERFACE_DEFINED__
159#define __IWiaDevMgr_INTERFACE_DEFINED__
160 EXTERN_C const IID IID_IWiaDevMgr;
161#if defined(__cplusplus) && !defined(CINTERFACE)
162 struct IWiaDevMgr : public IUnknown {
163 public:
164 virtual HRESULT WINAPI EnumDeviceInfo(LONG lFlag,IEnumWIA_DEV_INFO **ppIEnum) = 0;
165 virtual HRESULT WINAPI CreateDevice(BSTR bstrDeviceID,IWiaItem **ppWiaItemRoot) = 0;
166 virtual HRESULT WINAPI SelectDeviceDlg(HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem **ppItemRoot) = 0;
167 virtual HRESULT WINAPI SelectDeviceDlgID(HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID) = 0;
168 virtual HRESULT WINAPI GetImageDlg(HWND hwndParent,LONG lDeviceType,LONG lFlags,LONG lIntent,IWiaItem *pItemRoot,BSTR bstrFilename,GUID *pguidFormat) = 0;
169 virtual HRESULT WINAPI RegisterEventCallbackProgram(LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrCommandline,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) = 0;
170 virtual HRESULT WINAPI RegisterEventCallbackInterface(LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject) = 0;
171 virtual HRESULT WINAPI RegisterEventCallbackCLSID(LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) = 0;
172 virtual HRESULT WINAPI AddDeviceDlg(HWND hwndParent,LONG lFlags) = 0;
173 };
174#else
175 typedef struct IWiaDevMgrVtbl {
176 BEGIN_INTERFACE
177 HRESULT (WINAPI *QueryInterface)(IWiaDevMgr *This,REFIID riid,void **ppvObject);
178 ULONG (WINAPI *AddRef)(IWiaDevMgr *This);
179 ULONG (WINAPI *Release)(IWiaDevMgr *This);
180 HRESULT (WINAPI *EnumDeviceInfo)(IWiaDevMgr *This,LONG lFlag,IEnumWIA_DEV_INFO **ppIEnum);
181 HRESULT (WINAPI *CreateDevice)(IWiaDevMgr *This,BSTR bstrDeviceID,IWiaItem **ppWiaItemRoot);
182 HRESULT (WINAPI *SelectDeviceDlg)(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem **ppItemRoot);
183 HRESULT (WINAPI *SelectDeviceDlgID)(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID);
184 HRESULT (WINAPI *GetImageDlg)(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,LONG lIntent,IWiaItem *pItemRoot,BSTR bstrFilename,GUID *pguidFormat);
185 HRESULT (WINAPI *RegisterEventCallbackProgram)(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrCommandline,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
186 HRESULT (WINAPI *RegisterEventCallbackInterface)(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject);
187 HRESULT (WINAPI *RegisterEventCallbackCLSID)(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
188 HRESULT (WINAPI *AddDeviceDlg)(IWiaDevMgr *This,HWND hwndParent,LONG lFlags);
189 END_INTERFACE
190 } IWiaDevMgrVtbl;
191 struct IWiaDevMgr {
192 CONST_VTBL struct IWiaDevMgrVtbl *lpVtbl;
193 };
194#ifdef COBJMACROS
195#define IWiaDevMgr_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
196#define IWiaDevMgr_AddRef(This) (This)->lpVtbl->AddRef(This)
197#define IWiaDevMgr_Release(This) (This)->lpVtbl->Release(This)
198#define IWiaDevMgr_EnumDeviceInfo(This,lFlag,ppIEnum) (This)->lpVtbl->EnumDeviceInfo(This,lFlag,ppIEnum)
199#define IWiaDevMgr_CreateDevice(This,bstrDeviceID,ppWiaItemRoot) (This)->lpVtbl->CreateDevice(This,bstrDeviceID,ppWiaItemRoot)
200#define IWiaDevMgr_SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot) (This)->lpVtbl->SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot)
201#define IWiaDevMgr_SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID) (This)->lpVtbl->SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID)
202#define IWiaDevMgr_GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat) (This)->lpVtbl->GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat)
203#define IWiaDevMgr_RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon)
204#define IWiaDevMgr_RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject) (This)->lpVtbl->RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject)
205#define IWiaDevMgr_RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon)
206#define IWiaDevMgr_AddDeviceDlg(This,hwndParent,lFlags) (This)->lpVtbl->AddDeviceDlg(This,hwndParent,lFlags)
207#endif
208#endif
209 HRESULT WINAPI IWiaDevMgr_EnumDeviceInfo_Proxy(IWiaDevMgr *This,LONG lFlag,IEnumWIA_DEV_INFO **ppIEnum);
210 void __RPC_STUB IWiaDevMgr_EnumDeviceInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
211 HRESULT WINAPI IWiaDevMgr_LocalCreateDevice_Proxy(IWiaDevMgr *This,BSTR bstrDeviceID,IWiaItem **ppWiaItemRoot);
212 void __RPC_STUB IWiaDevMgr_LocalCreateDevice_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
213 HRESULT WINAPI IWiaDevMgr_LocalSelectDeviceDlg_Proxy(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem **ppItemRoot);
214 void __RPC_STUB IWiaDevMgr_LocalSelectDeviceDlg_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
215 HRESULT WINAPI IWiaDevMgr_LocalSelectDeviceDlgID_Proxy(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID);
216 void __RPC_STUB IWiaDevMgr_LocalSelectDeviceDlgID_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
217 HRESULT WINAPI IWiaDevMgr_LocalGetImageDlg_Proxy(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,LONG lIntent,IWiaItem *pItemRoot,BSTR bstrFilename,GUID *pguidFormat);
218 void __RPC_STUB IWiaDevMgr_LocalGetImageDlg_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
219 HRESULT WINAPI IWiaDevMgr_LocalRegisterEventCallbackProgram_Proxy(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrCommandline,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
220 void __RPC_STUB IWiaDevMgr_LocalRegisterEventCallbackProgram_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
221 HRESULT WINAPI IWiaDevMgr_LocalRegisterEventCallbackInterface_Proxy(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject);
222 void __RPC_STUB IWiaDevMgr_LocalRegisterEventCallbackInterface_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
223 HRESULT WINAPI IWiaDevMgr_LocalRegisterEventCallbackCLSID_Proxy(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
224 void __RPC_STUB IWiaDevMgr_LocalRegisterEventCallbackCLSID_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
225 HRESULT WINAPI IWiaDevMgr_AddDeviceDlg_Proxy(IWiaDevMgr *This,HWND hwndParent,LONG lFlags);
226 void __RPC_STUB IWiaDevMgr_AddDeviceDlg_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
227#endif
228
229#ifndef __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__
230#define __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__
231 EXTERN_C const IID IID_IEnumWIA_DEV_INFO;
232#if defined(__cplusplus) && !defined(CINTERFACE)
233 struct IEnumWIA_DEV_INFO : public IUnknown {
234 public:
235 virtual HRESULT WINAPI Next(ULONG celt,IWiaPropertyStorage **rgelt,ULONG *pceltFetched) = 0;
236 virtual HRESULT WINAPI Skip(ULONG celt) = 0;
237 virtual HRESULT WINAPI Reset(void) = 0;
238 virtual HRESULT WINAPI Clone(IEnumWIA_DEV_INFO **ppIEnum) = 0;
239 virtual HRESULT WINAPI GetCount(ULONG *celt) = 0;
240 };
241#else
242 typedef struct IEnumWIA_DEV_INFOVtbl {
243 BEGIN_INTERFACE
244 HRESULT (WINAPI *QueryInterface)(IEnumWIA_DEV_INFO *This,REFIID riid,void **ppvObject);
245 ULONG (WINAPI *AddRef)(IEnumWIA_DEV_INFO *This);
246 ULONG (WINAPI *Release)(IEnumWIA_DEV_INFO *This);
247 HRESULT (WINAPI *Next)(IEnumWIA_DEV_INFO *This,ULONG celt,IWiaPropertyStorage **rgelt,ULONG *pceltFetched);
248 HRESULT (WINAPI *Skip)(IEnumWIA_DEV_INFO *This,ULONG celt);
249 HRESULT (WINAPI *Reset)(IEnumWIA_DEV_INFO *This);
250 HRESULT (WINAPI *Clone)(IEnumWIA_DEV_INFO *This,IEnumWIA_DEV_INFO **ppIEnum);
251 HRESULT (WINAPI *GetCount)(IEnumWIA_DEV_INFO *This,ULONG *celt);
252 END_INTERFACE
253 } IEnumWIA_DEV_INFOVtbl;
254 struct IEnumWIA_DEV_INFO {
255 CONST_VTBL struct IEnumWIA_DEV_INFOVtbl *lpVtbl;
256 };
257#ifdef COBJMACROS
258#define IEnumWIA_DEV_INFO_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
259#define IEnumWIA_DEV_INFO_AddRef(This) (This)->lpVtbl->AddRef(This)
260#define IEnumWIA_DEV_INFO_Release(This) (This)->lpVtbl->Release(This)
261#define IEnumWIA_DEV_INFO_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
262#define IEnumWIA_DEV_INFO_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
263#define IEnumWIA_DEV_INFO_Reset(This) (This)->lpVtbl->Reset(This)
264#define IEnumWIA_DEV_INFO_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
265#define IEnumWIA_DEV_INFO_GetCount(This,celt) (This)->lpVtbl->GetCount(This,celt)
266#endif
267#endif
268 HRESULT WINAPI IEnumWIA_DEV_INFO_RemoteNext_Proxy(IEnumWIA_DEV_INFO *This,ULONG celt,IWiaPropertyStorage **rgelt,ULONG *pceltFetched);
269 void __RPC_STUB IEnumWIA_DEV_INFO_RemoteNext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
270 HRESULT WINAPI IEnumWIA_DEV_INFO_Skip_Proxy(IEnumWIA_DEV_INFO *This,ULONG celt);
271 void __RPC_STUB IEnumWIA_DEV_INFO_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
272 HRESULT WINAPI IEnumWIA_DEV_INFO_Reset_Proxy(IEnumWIA_DEV_INFO *This);
273 void __RPC_STUB IEnumWIA_DEV_INFO_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
274 HRESULT WINAPI IEnumWIA_DEV_INFO_Clone_Proxy(IEnumWIA_DEV_INFO *This,IEnumWIA_DEV_INFO **ppIEnum);
275 void __RPC_STUB IEnumWIA_DEV_INFO_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
276 HRESULT WINAPI IEnumWIA_DEV_INFO_GetCount_Proxy(IEnumWIA_DEV_INFO *This,ULONG *celt);
277 void __RPC_STUB IEnumWIA_DEV_INFO_GetCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
278#endif
279
280#ifndef __IWiaEventCallback_INTERFACE_DEFINED__
281#define __IWiaEventCallback_INTERFACE_DEFINED__
282 EXTERN_C const IID IID_IWiaEventCallback;
283#if defined(__cplusplus) && !defined(CINTERFACE)
284 struct IWiaEventCallback : public IUnknown {
285 public:
286 virtual HRESULT WINAPI ImageEventCallback(const GUID *pEventGUID,BSTR bstrEventDescription,BSTR bstrDeviceID,BSTR bstrDeviceDescription,DWORD dwDeviceType,BSTR bstrFullItemName,ULONG *pulEventType,ULONG ulReserved) = 0;
287 };
288#else
289 typedef struct IWiaEventCallbackVtbl {
290 BEGIN_INTERFACE
291 HRESULT (WINAPI *QueryInterface)(IWiaEventCallback *This,REFIID riid,void **ppvObject);
292 ULONG (WINAPI *AddRef)(IWiaEventCallback *This);
293 ULONG (WINAPI *Release)(IWiaEventCallback *This);
294 HRESULT (WINAPI *ImageEventCallback)(IWiaEventCallback *This,const GUID *pEventGUID,BSTR bstrEventDescription,BSTR bstrDeviceID,BSTR bstrDeviceDescription,DWORD dwDeviceType,BSTR bstrFullItemName,ULONG *pulEventType,ULONG ulReserved);
295 END_INTERFACE
296 } IWiaEventCallbackVtbl;
297 struct IWiaEventCallback {
298 CONST_VTBL struct IWiaEventCallbackVtbl *lpVtbl;
299 };
300#ifdef COBJMACROS
301#define IWiaEventCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
302#define IWiaEventCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
303#define IWiaEventCallback_Release(This) (This)->lpVtbl->Release(This)
304#define IWiaEventCallback_ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved) (This)->lpVtbl->ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved)
305#endif
306#endif
307 HRESULT WINAPI IWiaEventCallback_ImageEventCallback_Proxy(IWiaEventCallback *This,const GUID *pEventGUID,BSTR bstrEventDescription,BSTR bstrDeviceID,BSTR bstrDeviceDescription,DWORD dwDeviceType,BSTR bstrFullItemName,ULONG *pulEventType,ULONG ulReserved);
308 void __RPC_STUB IWiaEventCallback_ImageEventCallback_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
309#endif
310
311 typedef struct _WIA_DATA_CALLBACK_HEADER {
312 LONG lSize;
313 GUID guidFormatID;
314 LONG lBufferSize;
315 LONG lPageCount;
316 } WIA_DATA_CALLBACK_HEADER;
317
318 typedef struct _WIA_DATA_CALLBACK_HEADER *PWIA_DATA_CALLBACK_HEADER;
319
320 extern RPC_IF_HANDLE __MIDL_itf_wia_0125_v0_0_c_ifspec;
321 extern RPC_IF_HANDLE __MIDL_itf_wia_0125_v0_0_s_ifspec;
322#ifndef __IWiaDataCallback_INTERFACE_DEFINED__
323#define __IWiaDataCallback_INTERFACE_DEFINED__
324 EXTERN_C const IID IID_IWiaDataCallback;
325#if defined(__cplusplus) && !defined(CINTERFACE)
326 struct IWiaDataCallback : public IUnknown {
327 public:
328 virtual HRESULT WINAPI BandedDataCallback(LONG lMessage,LONG lStatus,LONG lPercentComplete,LONG lOffset,LONG lLength,LONG lReserved,LONG lResLength,BYTE *pbBuffer) = 0;
329 };
330#else
331 typedef struct IWiaDataCallbackVtbl {
332 BEGIN_INTERFACE
333 HRESULT (WINAPI *QueryInterface)(IWiaDataCallback *This,REFIID riid,void **ppvObject);
334 ULONG (WINAPI *AddRef)(IWiaDataCallback *This);
335 ULONG (WINAPI *Release)(IWiaDataCallback *This);
336 HRESULT (WINAPI *BandedDataCallback)(IWiaDataCallback *This,LONG lMessage,LONG lStatus,LONG lPercentComplete,LONG lOffset,LONG lLength,LONG lReserved,LONG lResLength,BYTE *pbBuffer);
337 END_INTERFACE
338 } IWiaDataCallbackVtbl;
339 struct IWiaDataCallback {
340 CONST_VTBL struct IWiaDataCallbackVtbl *lpVtbl;
341 };
342#ifdef COBJMACROS
343#define IWiaDataCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
344#define IWiaDataCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
345#define IWiaDataCallback_Release(This) (This)->lpVtbl->Release(This)
346#define IWiaDataCallback_BandedDataCallback(This,lMessage,lStatus,lPercentComplete,lOffset,lLength,lReserved,lResLength,pbBuffer) (This)->lpVtbl->BandedDataCallback(This,lMessage,lStatus,lPercentComplete,lOffset,lLength,lReserved,lResLength,pbBuffer)
347#endif
348#endif
349 HRESULT WINAPI IWiaDataCallback_RemoteBandedDataCallback_Proxy(IWiaDataCallback *This,LONG lMessage,LONG lStatus,LONG lPercentComplete,LONG lOffset,LONG lLength,LONG lReserved,LONG lResLength,BYTE *pbBuffer);
350 void __RPC_STUB IWiaDataCallback_RemoteBandedDataCallback_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
351#endif
352
353 typedef struct _WIA_DATA_TRANSFER_INFO {
354 ULONG ulSize;
355 ULONG ulSection;
356 ULONG ulBufferSize;
357 WINBOOL bDoubleBuffer;
358 ULONG ulReserved1;
359 ULONG ulReserved2;
360 ULONG ulReserved3;
361 } WIA_DATA_TRANSFER_INFO;
362
363 typedef struct _WIA_DATA_TRANSFER_INFO *PWIA_DATA_TRANSFER_INFO;
364
365 typedef struct _WIA_EXTENDED_TRANSFER_INFO {
366 ULONG ulSize;
367 ULONG ulMinBufferSize;
368 ULONG ulOptimalBufferSize;
369 ULONG ulMaxBufferSize;
370 ULONG ulNumBuffers;
371 } WIA_EXTENDED_TRANSFER_INFO;
372
373 typedef struct _WIA_EXTENDED_TRANSFER_INFO *PWIA_EXTENDED_TRANSFER_INFO;
374
375 extern RPC_IF_HANDLE __MIDL_itf_wia_0126_v0_0_c_ifspec;
376 extern RPC_IF_HANDLE __MIDL_itf_wia_0126_v0_0_s_ifspec;
377#ifndef __IWiaDataTransfer_INTERFACE_DEFINED__
378#define __IWiaDataTransfer_INTERFACE_DEFINED__
379 EXTERN_C const IID IID_IWiaDataTransfer;
380#if defined(__cplusplus) && !defined(CINTERFACE)
381 struct IWiaDataTransfer : public IUnknown {
382 public:
383 virtual HRESULT WINAPI idtGetData(LPSTGMEDIUM pMedium,IWiaDataCallback *pIWiaDataCallback) = 0;
384 virtual HRESULT WINAPI idtGetBandedData(PWIA_DATA_TRANSFER_INFO pWiaDataTransInfo,IWiaDataCallback *pIWiaDataCallback) = 0;
385 virtual HRESULT WINAPI idtQueryGetData(WIA_FORMAT_INFO *pfe) = 0;
386 virtual HRESULT WINAPI idtEnumWIA_FORMAT_INFO(IEnumWIA_FORMAT_INFO **ppEnum) = 0;
387 virtual HRESULT WINAPI idtGetExtendedTransferInfo(PWIA_EXTENDED_TRANSFER_INFO pExtendedTransferInfo) = 0;
388 };
389#else
390 typedef struct IWiaDataTransferVtbl {
391 BEGIN_INTERFACE
392 HRESULT (WINAPI *QueryInterface)(IWiaDataTransfer *This,REFIID riid,void **ppvObject);
393 ULONG (WINAPI *AddRef)(IWiaDataTransfer *This);
394 ULONG (WINAPI *Release)(IWiaDataTransfer *This);
395 HRESULT (WINAPI *idtGetData)(IWiaDataTransfer *This,LPSTGMEDIUM pMedium,IWiaDataCallback *pIWiaDataCallback);
396 HRESULT (WINAPI *idtGetBandedData)(IWiaDataTransfer *This,PWIA_DATA_TRANSFER_INFO pWiaDataTransInfo,IWiaDataCallback *pIWiaDataCallback);
397 HRESULT (WINAPI *idtQueryGetData)(IWiaDataTransfer *This,WIA_FORMAT_INFO *pfe);
398 HRESULT (WINAPI *idtEnumWIA_FORMAT_INFO)(IWiaDataTransfer *This,IEnumWIA_FORMAT_INFO **ppEnum);
399 HRESULT (WINAPI *idtGetExtendedTransferInfo)(IWiaDataTransfer *This,PWIA_EXTENDED_TRANSFER_INFO pExtendedTransferInfo);
400 END_INTERFACE
401 } IWiaDataTransferVtbl;
402 struct IWiaDataTransfer {
403 CONST_VTBL struct IWiaDataTransferVtbl *lpVtbl;
404 };
405#ifdef COBJMACROS
406#define IWiaDataTransfer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
407#define IWiaDataTransfer_AddRef(This) (This)->lpVtbl->AddRef(This)
408#define IWiaDataTransfer_Release(This) (This)->lpVtbl->Release(This)
409#define IWiaDataTransfer_idtGetData(This,pMedium,pIWiaDataCallback) (This)->lpVtbl->idtGetData(This,pMedium,pIWiaDataCallback)
410#define IWiaDataTransfer_idtGetBandedData(This,pWiaDataTransInfo,pIWiaDataCallback) (This)->lpVtbl->idtGetBandedData(This,pWiaDataTransInfo,pIWiaDataCallback)
411#define IWiaDataTransfer_idtQueryGetData(This,pfe) (This)->lpVtbl->idtQueryGetData(This,pfe)
412#define IWiaDataTransfer_idtEnumWIA_FORMAT_INFO(This,ppEnum) (This)->lpVtbl->idtEnumWIA_FORMAT_INFO(This,ppEnum)
413#define IWiaDataTransfer_idtGetExtendedTransferInfo(This,pExtendedTransferInfo) (This)->lpVtbl->idtGetExtendedTransferInfo(This,pExtendedTransferInfo)
414#endif
415#endif
416 HRESULT WINAPI IWiaDataTransfer_idtGetDataEx_Proxy(IWiaDataTransfer *This,LPSTGMEDIUM pMedium,IWiaDataCallback *pIWiaDataCallback);
417 void __RPC_STUB IWiaDataTransfer_idtGetDataEx_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
418 HRESULT WINAPI IWiaDataTransfer_idtGetBandedDataEx_Proxy(IWiaDataTransfer *This,PWIA_DATA_TRANSFER_INFO pWiaDataTransInfo,IWiaDataCallback *pIWiaDataCallback);
419 void __RPC_STUB IWiaDataTransfer_idtGetBandedDataEx_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
420 HRESULT WINAPI IWiaDataTransfer_idtQueryGetData_Proxy(IWiaDataTransfer *This,WIA_FORMAT_INFO *pfe);
421 void __RPC_STUB IWiaDataTransfer_idtQueryGetData_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
422 HRESULT WINAPI IWiaDataTransfer_idtEnumWIA_FORMAT_INFO_Proxy(IWiaDataTransfer *This,IEnumWIA_FORMAT_INFO **ppEnum);
423 void __RPC_STUB IWiaDataTransfer_idtEnumWIA_FORMAT_INFO_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
424 HRESULT WINAPI IWiaDataTransfer_idtGetExtendedTransferInfo_Proxy(IWiaDataTransfer *This,PWIA_EXTENDED_TRANSFER_INFO pExtendedTransferInfo);
425 void __RPC_STUB IWiaDataTransfer_idtGetExtendedTransferInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
426#endif
427
428#ifndef __IWiaItem_INTERFACE_DEFINED__
429#define __IWiaItem_INTERFACE_DEFINED__
430 EXTERN_C const IID IID_IWiaItem;
431#if defined(__cplusplus) && !defined(CINTERFACE)
432 struct IWiaItem : public IUnknown {
433 public:
434 virtual HRESULT WINAPI GetItemType(LONG *pItemType) = 0;
435 virtual HRESULT WINAPI AnalyzeItem(LONG lFlags) = 0;
436 virtual HRESULT WINAPI EnumChildItems(IEnumWiaItem **ppIEnumWiaItem) = 0;
437 virtual HRESULT WINAPI DeleteItem(LONG lFlags) = 0;
438 virtual HRESULT WINAPI CreateChildItem(LONG lFlags,BSTR bstrItemName,BSTR bstrFullItemName,IWiaItem **ppIWiaItem) = 0;
439 virtual HRESULT WINAPI EnumRegisterEventInfo(LONG lFlags,const GUID *pEventGUID,IEnumWIA_DEV_CAPS **ppIEnum) = 0;
440 virtual HRESULT WINAPI FindItemByName(LONG lFlags,BSTR bstrFullItemName,IWiaItem **ppIWiaItem) = 0;
441 virtual HRESULT WINAPI DeviceDlg(HWND hwndParent,LONG lFlags,LONG lIntent,LONG *plItemCount,IWiaItem ***ppIWiaItem) = 0;
442 virtual HRESULT WINAPI DeviceCommand(LONG lFlags,const GUID *pCmdGUID,IWiaItem **pIWiaItem) = 0;
443 virtual HRESULT WINAPI GetRootItem(IWiaItem **ppIWiaItem) = 0;
444 virtual HRESULT WINAPI EnumDeviceCapabilities(LONG lFlags,IEnumWIA_DEV_CAPS **ppIEnumWIA_DEV_CAPS) = 0;
445 virtual HRESULT WINAPI DumpItemData(BSTR *bstrData) = 0;
446 virtual HRESULT WINAPI DumpDrvItemData(BSTR *bstrData) = 0;
447 virtual HRESULT WINAPI DumpTreeItemData(BSTR *bstrData) = 0;
448 virtual HRESULT WINAPI Diagnostic(ULONG ulSize,BYTE *pBuffer) = 0;
449 };
450#else
451 typedef struct IWiaItemVtbl {
452 BEGIN_INTERFACE
453 HRESULT (WINAPI *QueryInterface)(IWiaItem *This,REFIID riid,void **ppvObject);
454 ULONG (WINAPI *AddRef)(IWiaItem *This);
455 ULONG (WINAPI *Release)(IWiaItem *This);
456 HRESULT (WINAPI *GetItemType)(IWiaItem *This,LONG *pItemType);
457 HRESULT (WINAPI *AnalyzeItem)(IWiaItem *This,LONG lFlags);
458 HRESULT (WINAPI *EnumChildItems)(IWiaItem *This,IEnumWiaItem **ppIEnumWiaItem);
459 HRESULT (WINAPI *DeleteItem)(IWiaItem *This,LONG lFlags);
460 HRESULT (WINAPI *CreateChildItem)(IWiaItem *This,LONG lFlags,BSTR bstrItemName,BSTR bstrFullItemName,IWiaItem **ppIWiaItem);
461 HRESULT (WINAPI *EnumRegisterEventInfo)(IWiaItem *This,LONG lFlags,const GUID *pEventGUID,IEnumWIA_DEV_CAPS **ppIEnum);
462 HRESULT (WINAPI *FindItemByName)(IWiaItem *This,LONG lFlags,BSTR bstrFullItemName,IWiaItem **ppIWiaItem);
463 HRESULT (WINAPI *DeviceDlg)(IWiaItem *This,HWND hwndParent,LONG lFlags,LONG lIntent,LONG *plItemCount,IWiaItem ***ppIWiaItem);
464 HRESULT (WINAPI *DeviceCommand)(IWiaItem *This,LONG lFlags,const GUID *pCmdGUID,IWiaItem **pIWiaItem);
465 HRESULT (WINAPI *GetRootItem)(IWiaItem *This,IWiaItem **ppIWiaItem);
466 HRESULT (WINAPI *EnumDeviceCapabilities)(IWiaItem *This,LONG lFlags,IEnumWIA_DEV_CAPS **ppIEnumWIA_DEV_CAPS);
467 HRESULT (WINAPI *DumpItemData)(IWiaItem *This,BSTR *bstrData);
468 HRESULT (WINAPI *DumpDrvItemData)(IWiaItem *This,BSTR *bstrData);
469 HRESULT (WINAPI *DumpTreeItemData)(IWiaItem *This,BSTR *bstrData);
470 HRESULT (WINAPI *Diagnostic)(IWiaItem *This,ULONG ulSize,BYTE *pBuffer);
471 END_INTERFACE
472 } IWiaItemVtbl;
473 struct IWiaItem {
474 CONST_VTBL struct IWiaItemVtbl *lpVtbl;
475 };
476#ifdef COBJMACROS
477#define IWiaItem_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
478#define IWiaItem_AddRef(This) (This)->lpVtbl->AddRef(This)
479#define IWiaItem_Release(This) (This)->lpVtbl->Release(This)
480#define IWiaItem_GetItemType(This,pItemType) (This)->lpVtbl->GetItemType(This,pItemType)
481#define IWiaItem_AnalyzeItem(This,lFlags) (This)->lpVtbl->AnalyzeItem(This,lFlags)
482#define IWiaItem_EnumChildItems(This,ppIEnumWiaItem) (This)->lpVtbl->EnumChildItems(This,ppIEnumWiaItem)
483#define IWiaItem_DeleteItem(This,lFlags) (This)->lpVtbl->DeleteItem(This,lFlags)
484#define IWiaItem_CreateChildItem(This,lFlags,bstrItemName,bstrFullItemName,ppIWiaItem) (This)->lpVtbl->CreateChildItem(This,lFlags,bstrItemName,bstrFullItemName,ppIWiaItem)
485#define IWiaItem_EnumRegisterEventInfo(This,lFlags,pEventGUID,ppIEnum) (This)->lpVtbl->EnumRegisterEventInfo(This,lFlags,pEventGUID,ppIEnum)
486#define IWiaItem_FindItemByName(This,lFlags,bstrFullItemName,ppIWiaItem) (This)->lpVtbl->FindItemByName(This,lFlags,bstrFullItemName,ppIWiaItem)
487#define IWiaItem_DeviceDlg(This,hwndParent,lFlags,lIntent,plItemCount,ppIWiaItem) (This)->lpVtbl->DeviceDlg(This,hwndParent,lFlags,lIntent,plItemCount,ppIWiaItem)
488#define IWiaItem_DeviceCommand(This,lFlags,pCmdGUID,pIWiaItem) (This)->lpVtbl->DeviceCommand(This,lFlags,pCmdGUID,pIWiaItem)
489#define IWiaItem_GetRootItem(This,ppIWiaItem) (This)->lpVtbl->GetRootItem(This,ppIWiaItem)
490#define IWiaItem_EnumDeviceCapabilities(This,lFlags,ppIEnumWIA_DEV_CAPS) (This)->lpVtbl->EnumDeviceCapabilities(This,lFlags,ppIEnumWIA_DEV_CAPS)
491#define IWiaItem_DumpItemData(This,bstrData) (This)->lpVtbl->DumpItemData(This,bstrData)
492#define IWiaItem_DumpDrvItemData(This,bstrData) (This)->lpVtbl->DumpDrvItemData(This,bstrData)
493#define IWiaItem_DumpTreeItemData(This,bstrData) (This)->lpVtbl->DumpTreeItemData(This,bstrData)
494#define IWiaItem_Diagnostic(This,ulSize,pBuffer) (This)->lpVtbl->Diagnostic(This,ulSize,pBuffer)
495#endif
496#endif
497 HRESULT WINAPI IWiaItem_GetItemType_Proxy(IWiaItem *This,LONG *pItemType);
498 void __RPC_STUB IWiaItem_GetItemType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
499 HRESULT WINAPI IWiaItem_AnalyzeItem_Proxy(IWiaItem *This,LONG lFlags);
500 void __RPC_STUB IWiaItem_AnalyzeItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
501 HRESULT WINAPI IWiaItem_EnumChildItems_Proxy(IWiaItem *This,IEnumWiaItem **ppIEnumWiaItem);
502 void __RPC_STUB IWiaItem_EnumChildItems_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
503 HRESULT WINAPI IWiaItem_DeleteItem_Proxy(IWiaItem *This,LONG lFlags);
504 void __RPC_STUB IWiaItem_DeleteItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
505 HRESULT WINAPI IWiaItem_CreateChildItem_Proxy(IWiaItem *This,LONG lFlags,BSTR bstrItemName,BSTR bstrFullItemName,IWiaItem **ppIWiaItem);
506 void __RPC_STUB IWiaItem_CreateChildItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
507 HRESULT WINAPI IWiaItem_EnumRegisterEventInfo_Proxy(IWiaItem *This,LONG lFlags,const GUID *pEventGUID,IEnumWIA_DEV_CAPS **ppIEnum);
508 void __RPC_STUB IWiaItem_EnumRegisterEventInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
509 HRESULT WINAPI IWiaItem_FindItemByName_Proxy(IWiaItem *This,LONG lFlags,BSTR bstrFullItemName,IWiaItem **ppIWiaItem);
510 void __RPC_STUB IWiaItem_FindItemByName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
511 HRESULT WINAPI IWiaItem_LocalDeviceDlg_Proxy(IWiaItem *This,HWND hwndParent,LONG lFlags,LONG lIntent,LONG *plItemCount,IWiaItem ***pIWiaItem);
512 void __RPC_STUB IWiaItem_LocalDeviceDlg_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
513 HRESULT WINAPI IWiaItem_DeviceCommand_Proxy(IWiaItem *This,LONG lFlags,const GUID *pCmdGUID,IWiaItem **pIWiaItem);
514 void __RPC_STUB IWiaItem_DeviceCommand_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
515 HRESULT WINAPI IWiaItem_GetRootItem_Proxy(IWiaItem *This,IWiaItem **ppIWiaItem);
516 void __RPC_STUB IWiaItem_GetRootItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
517 HRESULT WINAPI IWiaItem_EnumDeviceCapabilities_Proxy(IWiaItem *This,LONG lFlags,IEnumWIA_DEV_CAPS **ppIEnumWIA_DEV_CAPS);
518 void __RPC_STUB IWiaItem_EnumDeviceCapabilities_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
519 HRESULT WINAPI IWiaItem_DumpItemData_Proxy(IWiaItem *This,BSTR *bstrData);
520 void __RPC_STUB IWiaItem_DumpItemData_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
521 HRESULT WINAPI IWiaItem_DumpDrvItemData_Proxy(IWiaItem *This,BSTR *bstrData);
522 void __RPC_STUB IWiaItem_DumpDrvItemData_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
523 HRESULT WINAPI IWiaItem_DumpTreeItemData_Proxy(IWiaItem *This,BSTR *bstrData);
524 void __RPC_STUB IWiaItem_DumpTreeItemData_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
525 HRESULT WINAPI IWiaItem_Diagnostic_Proxy(IWiaItem *This,ULONG ulSize,BYTE *pBuffer);
526 void __RPC_STUB IWiaItem_Diagnostic_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
527#endif
528
529#ifndef __IWiaPropertyStorage_INTERFACE_DEFINED__
530#define __IWiaPropertyStorage_INTERFACE_DEFINED__
531 EXTERN_C const IID IID_IWiaPropertyStorage;
532#if defined(__cplusplus) && !defined(CINTERFACE)
533 struct IWiaPropertyStorage : public IUnknown {
534 public:
535 virtual HRESULT WINAPI ReadMultiple(ULONG cpspec,const PROPSPEC rgpspec[],PROPVARIANT rgpropvar[]) = 0;
536 virtual HRESULT WINAPI WriteMultiple(ULONG cpspec,const PROPSPEC rgpspec[],const PROPVARIANT rgpropvar[],PROPID propidNameFirst) = 0;
537 virtual HRESULT WINAPI DeleteMultiple(ULONG cpspec,const PROPSPEC rgpspec[]) = 0;
538 virtual HRESULT WINAPI ReadPropertyNames(ULONG cpropid,const PROPID rgpropid[],LPOLESTR rglpwstrName[]) = 0;
539 virtual HRESULT WINAPI WritePropertyNames(ULONG cpropid,const PROPID rgpropid[],const LPOLESTR rglpwstrName[]) = 0;
540 virtual HRESULT WINAPI DeletePropertyNames(ULONG cpropid,const PROPID rgpropid[]) = 0;
541 virtual HRESULT WINAPI Commit(DWORD grfCommitFlags) = 0;
542 virtual HRESULT WINAPI Revert(void) = 0;
543 virtual HRESULT WINAPI Enum(IEnumSTATPROPSTG **ppenum) = 0;
544 virtual HRESULT WINAPI SetTimes(const FILETIME *pctime,const FILETIME *patime,const FILETIME *pmtime) = 0;
545 virtual HRESULT WINAPI SetClass(REFCLSID clsid) = 0;
546 virtual HRESULT WINAPI Stat(STATPROPSETSTG *pstatpsstg) = 0;
547 virtual HRESULT WINAPI GetPropertyAttributes(ULONG cpspec,PROPSPEC rgpspec[],ULONG rgflags[],PROPVARIANT rgpropvar[]) = 0;
548 virtual HRESULT WINAPI GetCount(ULONG *pulNumProps) = 0;
549 virtual HRESULT WINAPI GetPropertyStream(GUID *pCompatibilityId,IStream **ppIStream) = 0;
550 virtual HRESULT WINAPI SetPropertyStream(GUID *pCompatibilityId,IStream *pIStream) = 0;
551 };
552#else
553 typedef struct IWiaPropertyStorageVtbl {
554 BEGIN_INTERFACE
555 HRESULT (WINAPI *QueryInterface)(IWiaPropertyStorage *This,REFIID riid,void **ppvObject);
556 ULONG (WINAPI *AddRef)(IWiaPropertyStorage *This);
557 ULONG (WINAPI *Release)(IWiaPropertyStorage *This);
558 HRESULT (WINAPI *ReadMultiple)(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC rgpspec[],PROPVARIANT rgpropvar[]);
559 HRESULT (WINAPI *WriteMultiple)(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC rgpspec[],const PROPVARIANT rgpropvar[],PROPID propidNameFirst);
560 HRESULT (WINAPI *DeleteMultiple)(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC rgpspec[]);
561 HRESULT (WINAPI *ReadPropertyNames)(IWiaPropertyStorage *This,ULONG cpropid,const PROPID rgpropid[],LPOLESTR rglpwstrName[]);
562 HRESULT (WINAPI *WritePropertyNames)(IWiaPropertyStorage *This,ULONG cpropid,const PROPID rgpropid[],const LPOLESTR rglpwstrName[]);
563 HRESULT (WINAPI *DeletePropertyNames)(IWiaPropertyStorage *This,ULONG cpropid,const PROPID rgpropid[]);
564 HRESULT (WINAPI *Commit)(IWiaPropertyStorage *This,DWORD grfCommitFlags);
565 HRESULT (WINAPI *Revert)(IWiaPropertyStorage *This);
566 HRESULT (WINAPI *Enum)(IWiaPropertyStorage *This,IEnumSTATPROPSTG **ppenum);
567 HRESULT (WINAPI *SetTimes)(IWiaPropertyStorage *This,const FILETIME *pctime,const FILETIME *patime,const FILETIME *pmtime);
568 HRESULT (WINAPI *SetClass)(IWiaPropertyStorage *This,REFCLSID clsid);
569 HRESULT (WINAPI *Stat)(IWiaPropertyStorage *This,STATPROPSETSTG *pstatpsstg);
570 HRESULT (WINAPI *GetPropertyAttributes)(IWiaPropertyStorage *This,ULONG cpspec,PROPSPEC rgpspec[],ULONG rgflags[],PROPVARIANT rgpropvar[]);
571 HRESULT (WINAPI *GetCount)(IWiaPropertyStorage *This,ULONG *pulNumProps);
572 HRESULT (WINAPI *GetPropertyStream)(IWiaPropertyStorage *This,GUID *pCompatibilityId,IStream **ppIStream);
573 HRESULT (WINAPI *SetPropertyStream)(IWiaPropertyStorage *This,GUID *pCompatibilityId,IStream *pIStream);
574 END_INTERFACE
575 } IWiaPropertyStorageVtbl;
576 struct IWiaPropertyStorage {
577 CONST_VTBL struct IWiaPropertyStorageVtbl *lpVtbl;
578 };
579#ifdef COBJMACROS
580#define IWiaPropertyStorage_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
581#define IWiaPropertyStorage_AddRef(This) (This)->lpVtbl->AddRef(This)
582#define IWiaPropertyStorage_Release(This) (This)->lpVtbl->Release(This)
583#define IWiaPropertyStorage_ReadMultiple(This,cpspec,rgpspec,rgpropvar) (This)->lpVtbl->ReadMultiple(This,cpspec,rgpspec,rgpropvar)
584#define IWiaPropertyStorage_WriteMultiple(This,cpspec,rgpspec,rgpropvar,propidNameFirst) (This)->lpVtbl->WriteMultiple(This,cpspec,rgpspec,rgpropvar,propidNameFirst)
585#define IWiaPropertyStorage_DeleteMultiple(This,cpspec,rgpspec) (This)->lpVtbl->DeleteMultiple(This,cpspec,rgpspec)
586#define IWiaPropertyStorage_ReadPropertyNames(This,cpropid,rgpropid,rglpwstrName) (This)->lpVtbl->ReadPropertyNames(This,cpropid,rgpropid,rglpwstrName)
587#define IWiaPropertyStorage_WritePropertyNames(This,cpropid,rgpropid,rglpwstrName) (This)->lpVtbl->WritePropertyNames(This,cpropid,rgpropid,rglpwstrName)
588#define IWiaPropertyStorage_DeletePropertyNames(This,cpropid,rgpropid) (This)->lpVtbl->DeletePropertyNames(This,cpropid,rgpropid)
589#define IWiaPropertyStorage_Commit(This,grfCommitFlags) (This)->lpVtbl->Commit(This,grfCommitFlags)
590#define IWiaPropertyStorage_Revert(This) (This)->lpVtbl->Revert(This)
591#define IWiaPropertyStorage_Enum(This,ppenum) (This)->lpVtbl->Enum(This,ppenum)
592#define IWiaPropertyStorage_SetTimes(This,pctime,patime,pmtime) (This)->lpVtbl->SetTimes(This,pctime,patime,pmtime)
593#define IWiaPropertyStorage_SetClass(This,clsid) (This)->lpVtbl->SetClass(This,clsid)
594#define IWiaPropertyStorage_Stat(This,pstatpsstg) (This)->lpVtbl->Stat(This,pstatpsstg)
595#define IWiaPropertyStorage_GetPropertyAttributes(This,cpspec,rgpspec,rgflags,rgpropvar) (This)->lpVtbl->GetPropertyAttributes(This,cpspec,rgpspec,rgflags,rgpropvar)
596#define IWiaPropertyStorage_GetCount(This,pulNumProps) (This)->lpVtbl->GetCount(This,pulNumProps)
597#define IWiaPropertyStorage_GetPropertyStream(This,pCompatibilityId,ppIStream) (This)->lpVtbl->GetPropertyStream(This,pCompatibilityId,ppIStream)
598#define IWiaPropertyStorage_SetPropertyStream(This,pCompatibilityId,pIStream) (This)->lpVtbl->SetPropertyStream(This,pCompatibilityId,pIStream)
599#endif
600#endif
601 HRESULT WINAPI IWiaPropertyStorage_ReadMultiple_Proxy(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC rgpspec[],PROPVARIANT rgpropvar[]);
602 void __RPC_STUB IWiaPropertyStorage_ReadMultiple_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
603 HRESULT WINAPI IWiaPropertyStorage_RemoteWriteMultiple_Proxy(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC *rgpspec,const PROPVARIANT *rgpropvar,PROPID propidNameFirst);
604 void __RPC_STUB IWiaPropertyStorage_RemoteWriteMultiple_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
605 HRESULT WINAPI IWiaPropertyStorage_DeleteMultiple_Proxy(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC rgpspec[]);
606 void __RPC_STUB IWiaPropertyStorage_DeleteMultiple_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
607 HRESULT WINAPI IWiaPropertyStorage_ReadPropertyNames_Proxy(IWiaPropertyStorage *This,ULONG cpropid,const PROPID rgpropid[],LPOLESTR rglpwstrName[]);
608 void __RPC_STUB IWiaPropertyStorage_ReadPropertyNames_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
609 HRESULT WINAPI IWiaPropertyStorage_WritePropertyNames_Proxy(IWiaPropertyStorage *This,ULONG cpropid,const PROPID rgpropid[],const LPOLESTR rglpwstrName[]);
610 void __RPC_STUB IWiaPropertyStorage_WritePropertyNames_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
611 HRESULT WINAPI IWiaPropertyStorage_DeletePropertyNames_Proxy(IWiaPropertyStorage *This,ULONG cpropid,const PROPID rgpropid[]);
612 void __RPC_STUB IWiaPropertyStorage_DeletePropertyNames_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
613 HRESULT WINAPI IWiaPropertyStorage_Commit_Proxy(IWiaPropertyStorage *This,DWORD grfCommitFlags);
614 void __RPC_STUB IWiaPropertyStorage_Commit_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
615 HRESULT WINAPI IWiaPropertyStorage_Revert_Proxy(IWiaPropertyStorage *This);
616 void __RPC_STUB IWiaPropertyStorage_Revert_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
617 HRESULT WINAPI IWiaPropertyStorage_Enum_Proxy(IWiaPropertyStorage *This,IEnumSTATPROPSTG **ppenum);
618 void __RPC_STUB IWiaPropertyStorage_Enum_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
619 HRESULT WINAPI IWiaPropertyStorage_SetTimes_Proxy(IWiaPropertyStorage *This,const FILETIME *pctime,const FILETIME *patime,const FILETIME *pmtime);
620 void __RPC_STUB IWiaPropertyStorage_SetTimes_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
621 HRESULT WINAPI IWiaPropertyStorage_SetClass_Proxy(IWiaPropertyStorage *This,REFCLSID clsid);
622 void __RPC_STUB IWiaPropertyStorage_SetClass_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
623 HRESULT WINAPI IWiaPropertyStorage_Stat_Proxy(IWiaPropertyStorage *This,STATPROPSETSTG *pstatpsstg);
624 void __RPC_STUB IWiaPropertyStorage_Stat_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
625 HRESULT WINAPI IWiaPropertyStorage_GetPropertyAttributes_Proxy(IWiaPropertyStorage *This,ULONG cpspec,PROPSPEC rgpspec[],ULONG rgflags[],PROPVARIANT rgpropvar[]);
626 void __RPC_STUB IWiaPropertyStorage_GetPropertyAttributes_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
627 HRESULT WINAPI IWiaPropertyStorage_GetCount_Proxy(IWiaPropertyStorage *This,ULONG *pulNumProps);
628 void __RPC_STUB IWiaPropertyStorage_GetCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
629 HRESULT WINAPI IWiaPropertyStorage_GetPropertyStream_Proxy(IWiaPropertyStorage *This,GUID *pCompatibilityId,IStream **ppIStream);
630 void __RPC_STUB IWiaPropertyStorage_GetPropertyStream_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
631 HRESULT WINAPI IWiaPropertyStorage_RemoteSetPropertyStream_Proxy(IWiaPropertyStorage *This,GUID *pCompatibilityId,IStream *pIStream);
632 void __RPC_STUB IWiaPropertyStorage_RemoteSetPropertyStream_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
633#endif
634
635#ifndef __IEnumWiaItem_INTERFACE_DEFINED__
636#define __IEnumWiaItem_INTERFACE_DEFINED__
637 EXTERN_C const IID IID_IEnumWiaItem;
638#if defined(__cplusplus) && !defined(CINTERFACE)
639 struct IEnumWiaItem : public IUnknown {
640 public:
641 virtual HRESULT WINAPI Next(ULONG celt,IWiaItem **ppIWiaItem,ULONG *pceltFetched) = 0;
642 virtual HRESULT WINAPI Skip(ULONG celt) = 0;
643 virtual HRESULT WINAPI Reset(void) = 0;
644 virtual HRESULT WINAPI Clone(IEnumWiaItem **ppIEnum) = 0;
645 virtual HRESULT WINAPI GetCount(ULONG *celt) = 0;
646 };
647#else
648 typedef struct IEnumWiaItemVtbl {
649 BEGIN_INTERFACE
650 HRESULT (WINAPI *QueryInterface)(IEnumWiaItem *This,REFIID riid,void **ppvObject);
651 ULONG (WINAPI *AddRef)(IEnumWiaItem *This);
652 ULONG (WINAPI *Release)(IEnumWiaItem *This);
653 HRESULT (WINAPI *Next)(IEnumWiaItem *This,ULONG celt,IWiaItem **ppIWiaItem,ULONG *pceltFetched);
654 HRESULT (WINAPI *Skip)(IEnumWiaItem *This,ULONG celt);
655 HRESULT (WINAPI *Reset)(IEnumWiaItem *This);
656 HRESULT (WINAPI *Clone)(IEnumWiaItem *This,IEnumWiaItem **ppIEnum);
657 HRESULT (WINAPI *GetCount)(IEnumWiaItem *This,ULONG *celt);
658 END_INTERFACE
659 } IEnumWiaItemVtbl;
660 struct IEnumWiaItem {
661 CONST_VTBL struct IEnumWiaItemVtbl *lpVtbl;
662 };
663#ifdef COBJMACROS
664#define IEnumWiaItem_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
665#define IEnumWiaItem_AddRef(This) (This)->lpVtbl->AddRef(This)
666#define IEnumWiaItem_Release(This) (This)->lpVtbl->Release(This)
667#define IEnumWiaItem_Next(This,celt,ppIWiaItem,pceltFetched) (This)->lpVtbl->Next(This,celt,ppIWiaItem,pceltFetched)
668#define IEnumWiaItem_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
669#define IEnumWiaItem_Reset(This) (This)->lpVtbl->Reset(This)
670#define IEnumWiaItem_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
671#define IEnumWiaItem_GetCount(This,celt) (This)->lpVtbl->GetCount(This,celt)
672#endif
673#endif
674 HRESULT WINAPI IEnumWiaItem_RemoteNext_Proxy(IEnumWiaItem *This,ULONG celt,IWiaItem **ppIWiaItem,ULONG *pceltFetched);
675 void __RPC_STUB IEnumWiaItem_RemoteNext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
676 HRESULT WINAPI IEnumWiaItem_Skip_Proxy(IEnumWiaItem *This,ULONG celt);
677 void __RPC_STUB IEnumWiaItem_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
678 HRESULT WINAPI IEnumWiaItem_Reset_Proxy(IEnumWiaItem *This);
679 void __RPC_STUB IEnumWiaItem_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
680 HRESULT WINAPI IEnumWiaItem_Clone_Proxy(IEnumWiaItem *This,IEnumWiaItem **ppIEnum);
681 void __RPC_STUB IEnumWiaItem_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
682 HRESULT WINAPI IEnumWiaItem_GetCount_Proxy(IEnumWiaItem *This,ULONG *celt);
683 void __RPC_STUB IEnumWiaItem_GetCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
684#endif
685
686 typedef struct _WIA_DEV_CAP {
687 GUID guid;
688 ULONG ulFlags;
689 BSTR bstrName;
690 BSTR bstrDescription;
691 BSTR bstrIcon;
692 BSTR bstrCommandline;
693 } WIA_DEV_CAP;
694
695 typedef struct _WIA_DEV_CAP *PWIA_DEV_CAP;
696 typedef struct _WIA_DEV_CAP WIA_EVENT_HANDLER;
697 typedef struct _WIA_DEV_CAP *PWIA_EVENT_HANDLER;
698
699 extern RPC_IF_HANDLE __MIDL_itf_wia_0130_v0_0_c_ifspec;
700 extern RPC_IF_HANDLE __MIDL_itf_wia_0130_v0_0_s_ifspec;
701#ifndef __IEnumWIA_DEV_CAPS_INTERFACE_DEFINED__
702#define __IEnumWIA_DEV_CAPS_INTERFACE_DEFINED__
703 EXTERN_C const IID IID_IEnumWIA_DEV_CAPS;
704#if defined(__cplusplus) && !defined(CINTERFACE)
705 struct IEnumWIA_DEV_CAPS : public IUnknown {
706 public:
707 virtual HRESULT WINAPI Next(ULONG celt,WIA_DEV_CAP *rgelt,ULONG *pceltFetched) = 0;
708 virtual HRESULT WINAPI Skip(ULONG celt) = 0;
709 virtual HRESULT WINAPI Reset(void) = 0;
710 virtual HRESULT WINAPI Clone(IEnumWIA_DEV_CAPS **ppIEnum) = 0;
711 virtual HRESULT WINAPI GetCount(ULONG *pcelt) = 0;
712 };
713#else
714 typedef struct IEnumWIA_DEV_CAPSVtbl {
715 BEGIN_INTERFACE
716 HRESULT (WINAPI *QueryInterface)(IEnumWIA_DEV_CAPS *This,REFIID riid,void **ppvObject);
717 ULONG (WINAPI *AddRef)(IEnumWIA_DEV_CAPS *This);
718 ULONG (WINAPI *Release)(IEnumWIA_DEV_CAPS *This);
719 HRESULT (WINAPI *Next)(IEnumWIA_DEV_CAPS *This,ULONG celt,WIA_DEV_CAP *rgelt,ULONG *pceltFetched);
720 HRESULT (WINAPI *Skip)(IEnumWIA_DEV_CAPS *This,ULONG celt);
721 HRESULT (WINAPI *Reset)(IEnumWIA_DEV_CAPS *This);
722 HRESULT (WINAPI *Clone)(IEnumWIA_DEV_CAPS *This,IEnumWIA_DEV_CAPS **ppIEnum);
723 HRESULT (WINAPI *GetCount)(IEnumWIA_DEV_CAPS *This,ULONG *pcelt);
724 END_INTERFACE
725 } IEnumWIA_DEV_CAPSVtbl;
726 struct IEnumWIA_DEV_CAPS {
727 CONST_VTBL struct IEnumWIA_DEV_CAPSVtbl *lpVtbl;
728 };
729#ifdef COBJMACROS
730#define IEnumWIA_DEV_CAPS_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
731#define IEnumWIA_DEV_CAPS_AddRef(This) (This)->lpVtbl->AddRef(This)
732#define IEnumWIA_DEV_CAPS_Release(This) (This)->lpVtbl->Release(This)
733#define IEnumWIA_DEV_CAPS_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
734#define IEnumWIA_DEV_CAPS_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
735#define IEnumWIA_DEV_CAPS_Reset(This) (This)->lpVtbl->Reset(This)
736#define IEnumWIA_DEV_CAPS_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
737#define IEnumWIA_DEV_CAPS_GetCount(This,pcelt) (This)->lpVtbl->GetCount(This,pcelt)
738#endif
739#endif
740 HRESULT WINAPI IEnumWIA_DEV_CAPS_RemoteNext_Proxy(IEnumWIA_DEV_CAPS *This,ULONG celt,WIA_DEV_CAP *rgelt,ULONG *pceltFetched);
741 void __RPC_STUB IEnumWIA_DEV_CAPS_RemoteNext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
742 HRESULT WINAPI IEnumWIA_DEV_CAPS_Skip_Proxy(IEnumWIA_DEV_CAPS *This,ULONG celt);
743 void __RPC_STUB IEnumWIA_DEV_CAPS_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
744 HRESULT WINAPI IEnumWIA_DEV_CAPS_Reset_Proxy(IEnumWIA_DEV_CAPS *This);
745 void __RPC_STUB IEnumWIA_DEV_CAPS_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
746 HRESULT WINAPI IEnumWIA_DEV_CAPS_Clone_Proxy(IEnumWIA_DEV_CAPS *This,IEnumWIA_DEV_CAPS **ppIEnum);
747 void __RPC_STUB IEnumWIA_DEV_CAPS_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
748 HRESULT WINAPI IEnumWIA_DEV_CAPS_GetCount_Proxy(IEnumWIA_DEV_CAPS *This,ULONG *pcelt);
749 void __RPC_STUB IEnumWIA_DEV_CAPS_GetCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
750#endif
751
752#ifndef __IEnumWIA_FORMAT_INFO_INTERFACE_DEFINED__
753#define __IEnumWIA_FORMAT_INFO_INTERFACE_DEFINED__
754 EXTERN_C const IID IID_IEnumWIA_FORMAT_INFO;
755#if defined(__cplusplus) && !defined(CINTERFACE)
756 struct IEnumWIA_FORMAT_INFO : public IUnknown {
757 public:
758 virtual HRESULT WINAPI Next(ULONG celt,WIA_FORMAT_INFO *rgelt,ULONG *pceltFetched) = 0;
759 virtual HRESULT WINAPI Skip(ULONG celt) = 0;
760 virtual HRESULT WINAPI Reset(void) = 0;
761 virtual HRESULT WINAPI Clone(IEnumWIA_FORMAT_INFO **ppIEnum) = 0;
762 virtual HRESULT WINAPI GetCount(ULONG *pcelt) = 0;
763 };
764#else
765 typedef struct IEnumWIA_FORMAT_INFOVtbl {
766 BEGIN_INTERFACE
767 HRESULT (WINAPI *QueryInterface)(IEnumWIA_FORMAT_INFO *This,REFIID riid,void **ppvObject);
768 ULONG (WINAPI *AddRef)(IEnumWIA_FORMAT_INFO *This);
769 ULONG (WINAPI *Release)(IEnumWIA_FORMAT_INFO *This);
770 HRESULT (WINAPI *Next)(IEnumWIA_FORMAT_INFO *This,ULONG celt,WIA_FORMAT_INFO *rgelt,ULONG *pceltFetched);
771 HRESULT (WINAPI *Skip)(IEnumWIA_FORMAT_INFO *This,ULONG celt);
772 HRESULT (WINAPI *Reset)(IEnumWIA_FORMAT_INFO *This);
773 HRESULT (WINAPI *Clone)(IEnumWIA_FORMAT_INFO *This,IEnumWIA_FORMAT_INFO **ppIEnum);
774 HRESULT (WINAPI *GetCount)(IEnumWIA_FORMAT_INFO *This,ULONG *pcelt);
775 END_INTERFACE
776 } IEnumWIA_FORMAT_INFOVtbl;
777 struct IEnumWIA_FORMAT_INFO {
778 CONST_VTBL struct IEnumWIA_FORMAT_INFOVtbl *lpVtbl;
779 };
780#ifdef COBJMACROS
781#define IEnumWIA_FORMAT_INFO_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
782#define IEnumWIA_FORMAT_INFO_AddRef(This) (This)->lpVtbl->AddRef(This)
783#define IEnumWIA_FORMAT_INFO_Release(This) (This)->lpVtbl->Release(This)
784#define IEnumWIA_FORMAT_INFO_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
785#define IEnumWIA_FORMAT_INFO_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
786#define IEnumWIA_FORMAT_INFO_Reset(This) (This)->lpVtbl->Reset(This)
787#define IEnumWIA_FORMAT_INFO_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
788#define IEnumWIA_FORMAT_INFO_GetCount(This,pcelt) (This)->lpVtbl->GetCount(This,pcelt)
789#endif
790#endif
791 HRESULT WINAPI IEnumWIA_FORMAT_INFO_RemoteNext_Proxy(IEnumWIA_FORMAT_INFO *This,ULONG celt,WIA_FORMAT_INFO *rgelt,ULONG *pceltFetched);
792 void __RPC_STUB IEnumWIA_FORMAT_INFO_RemoteNext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
793 HRESULT WINAPI IEnumWIA_FORMAT_INFO_Skip_Proxy(IEnumWIA_FORMAT_INFO *This,ULONG celt);
794 void __RPC_STUB IEnumWIA_FORMAT_INFO_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
795 HRESULT WINAPI IEnumWIA_FORMAT_INFO_Reset_Proxy(IEnumWIA_FORMAT_INFO *This);
796 void __RPC_STUB IEnumWIA_FORMAT_INFO_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
797 HRESULT WINAPI IEnumWIA_FORMAT_INFO_Clone_Proxy(IEnumWIA_FORMAT_INFO *This,IEnumWIA_FORMAT_INFO **ppIEnum);
798 void __RPC_STUB IEnumWIA_FORMAT_INFO_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
799 HRESULT WINAPI IEnumWIA_FORMAT_INFO_GetCount_Proxy(IEnumWIA_FORMAT_INFO *This,ULONG *pcelt);
800 void __RPC_STUB IEnumWIA_FORMAT_INFO_GetCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
801#endif
802
803#ifndef __IWiaLog_INTERFACE_DEFINED__
804#define __IWiaLog_INTERFACE_DEFINED__
805 EXTERN_C const IID IID_IWiaLog;
806#if defined(__cplusplus) && !defined(CINTERFACE)
807 struct IWiaLog : public IUnknown {
808 public:
809 virtual HRESULT WINAPI InitializeLog(LONG hInstance) = 0;
810 virtual HRESULT WINAPI hResult(HRESULT hResult) = 0;
811 virtual HRESULT WINAPI Log(LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText) = 0;
812 };
813#else
814 typedef struct IWiaLogVtbl {
815 BEGIN_INTERFACE
816 HRESULT (WINAPI *QueryInterface)(IWiaLog *This,REFIID riid,void **ppvObject);
817 ULONG (WINAPI *AddRef)(IWiaLog *This);
818 ULONG (WINAPI *Release)(IWiaLog *This);
819 HRESULT (WINAPI *InitializeLog)(IWiaLog *This,LONG hInstance);
820 HRESULT (WINAPI *hResult)(IWiaLog *This,HRESULT hResult);
821 HRESULT (WINAPI *Log)(IWiaLog *This,LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText);
822 END_INTERFACE
823 } IWiaLogVtbl;
824 struct IWiaLog {
825 CONST_VTBL struct IWiaLogVtbl *lpVtbl;
826 };
827#ifdef COBJMACROS
828#define IWiaLog_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
829#define IWiaLog_AddRef(This) (This)->lpVtbl->AddRef(This)
830#define IWiaLog_Release(This) (This)->lpVtbl->Release(This)
831#define IWiaLog_InitializeLog(This,hInstance) (This)->lpVtbl->InitializeLog(This,hInstance)
832#define IWiaLog_hResult(This,hResult) (This)->lpVtbl->hResult(This,hResult)
833#define IWiaLog_Log(This,lFlags,lResID,lDetail,bstrText) (This)->lpVtbl->Log(This,lFlags,lResID,lDetail,bstrText)
834#endif
835#endif
836 HRESULT WINAPI IWiaLog_InitializeLog_Proxy(IWiaLog *This,LONG hInstance);
837 void __RPC_STUB IWiaLog_InitializeLog_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
838 HRESULT WINAPI IWiaLog_hResult_Proxy(IWiaLog *This,HRESULT hResult);
839 void __RPC_STUB IWiaLog_hResult_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
840 HRESULT WINAPI IWiaLog_Log_Proxy(IWiaLog *This,LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText);
841 void __RPC_STUB IWiaLog_Log_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
842#endif
843
844#ifndef __IWiaLogEx_INTERFACE_DEFINED__
845#define __IWiaLogEx_INTERFACE_DEFINED__
846 EXTERN_C const IID IID_IWiaLogEx;
847#if defined(__cplusplus) && !defined(CINTERFACE)
848 struct IWiaLogEx : public IUnknown {
849 public:
850 virtual HRESULT WINAPI InitializeLogEx(BYTE *hInstance) = 0;
851 virtual HRESULT WINAPI hResult(HRESULT hResult) = 0;
852 virtual HRESULT WINAPI Log(LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText) = 0;
853 virtual HRESULT WINAPI hResultEx(LONG lMethodId,HRESULT hResult) = 0;
854 virtual HRESULT WINAPI LogEx(LONG lMethodId,LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText) = 0;
855 };
856#else
857 typedef struct IWiaLogExVtbl {
858 BEGIN_INTERFACE
859 HRESULT (WINAPI *QueryInterface)(IWiaLogEx *This,REFIID riid,void **ppvObject);
860 ULONG (WINAPI *AddRef)(IWiaLogEx *This);
861 ULONG (WINAPI *Release)(IWiaLogEx *This);
862 HRESULT (WINAPI *InitializeLogEx)(IWiaLogEx *This,BYTE *hInstance);
863 HRESULT (WINAPI *hResult)(IWiaLogEx *This,HRESULT hResult);
864 HRESULT (WINAPI *Log)(IWiaLogEx *This,LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText);
865 HRESULT (WINAPI *hResultEx)(IWiaLogEx *This,LONG lMethodId,HRESULT hResult);
866 HRESULT (WINAPI *LogEx)(IWiaLogEx *This,LONG lMethodId,LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText);
867 END_INTERFACE
868 } IWiaLogExVtbl;
869 struct IWiaLogEx {
870 CONST_VTBL struct IWiaLogExVtbl *lpVtbl;
871 };
872#ifdef COBJMACROS
873#define IWiaLogEx_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
874#define IWiaLogEx_AddRef(This) (This)->lpVtbl->AddRef(This)
875#define IWiaLogEx_Release(This) (This)->lpVtbl->Release(This)
876#define IWiaLogEx_InitializeLogEx(This,hInstance) (This)->lpVtbl->InitializeLogEx(This,hInstance)
877#define IWiaLogEx_hResult(This,hResult) (This)->lpVtbl->hResult(This,hResult)
878#define IWiaLogEx_Log(This,lFlags,lResID,lDetail,bstrText) (This)->lpVtbl->Log(This,lFlags,lResID,lDetail,bstrText)
879#define IWiaLogEx_hResultEx(This,lMethodId,hResult) (This)->lpVtbl->hResultEx(This,lMethodId,hResult)
880#define IWiaLogEx_LogEx(This,lMethodId,lFlags,lResID,lDetail,bstrText) (This)->lpVtbl->LogEx(This,lMethodId,lFlags,lResID,lDetail,bstrText)
881#endif
882#endif
883 HRESULT WINAPI IWiaLogEx_InitializeLogEx_Proxy(IWiaLogEx *This,BYTE *hInstance);
884 void __RPC_STUB IWiaLogEx_InitializeLogEx_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
885 HRESULT WINAPI IWiaLogEx_hResult_Proxy(IWiaLogEx *This,HRESULT hResult);
886 void __RPC_STUB IWiaLogEx_hResult_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
887 HRESULT WINAPI IWiaLogEx_Log_Proxy(IWiaLogEx *This,LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText);
888 void __RPC_STUB IWiaLogEx_Log_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
889 HRESULT WINAPI IWiaLogEx_hResultEx_Proxy(IWiaLogEx *This,LONG lMethodId,HRESULT hResult);
890 void __RPC_STUB IWiaLogEx_hResultEx_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
891 HRESULT WINAPI IWiaLogEx_LogEx_Proxy(IWiaLogEx *This,LONG lMethodId,LONG lFlags,LONG lResID,LONG lDetail,BSTR bstrText);
892 void __RPC_STUB IWiaLogEx_LogEx_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
893#endif
894
895#ifndef __IWiaNotifyDevMgr_INTERFACE_DEFINED__
896#define __IWiaNotifyDevMgr_INTERFACE_DEFINED__
897 EXTERN_C const IID IID_IWiaNotifyDevMgr;
898#if defined(__cplusplus) && !defined(CINTERFACE)
899 struct IWiaNotifyDevMgr : public IUnknown {
900 public:
901 virtual HRESULT WINAPI NewDeviceArrival(void) = 0;
902 };
903#else
904 typedef struct IWiaNotifyDevMgrVtbl {
905 BEGIN_INTERFACE
906 HRESULT (WINAPI *QueryInterface)(IWiaNotifyDevMgr *This,REFIID riid,void **ppvObject);
907 ULONG (WINAPI *AddRef)(IWiaNotifyDevMgr *This);
908 ULONG (WINAPI *Release)(IWiaNotifyDevMgr *This);
909 HRESULT (WINAPI *NewDeviceArrival)(IWiaNotifyDevMgr *This);
910 END_INTERFACE
911 } IWiaNotifyDevMgrVtbl;
912 struct IWiaNotifyDevMgr {
913 CONST_VTBL struct IWiaNotifyDevMgrVtbl *lpVtbl;
914 };
915#ifdef COBJMACROS
916#define IWiaNotifyDevMgr_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
917#define IWiaNotifyDevMgr_AddRef(This) (This)->lpVtbl->AddRef(This)
918#define IWiaNotifyDevMgr_Release(This) (This)->lpVtbl->Release(This)
919#define IWiaNotifyDevMgr_NewDeviceArrival(This) (This)->lpVtbl->NewDeviceArrival(This)
920#endif
921#endif
922 HRESULT WINAPI IWiaNotifyDevMgr_NewDeviceArrival_Proxy(IWiaNotifyDevMgr *This);
923 void __RPC_STUB IWiaNotifyDevMgr_NewDeviceArrival_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
924#endif
925
926#ifndef __IWiaItemExtras_INTERFACE_DEFINED__
927#define __IWiaItemExtras_INTERFACE_DEFINED__
928 EXTERN_C const IID IID_IWiaItemExtras;
929#if defined(__cplusplus) && !defined(CINTERFACE)
930 struct IWiaItemExtras : public IUnknown {
931 public:
932 virtual HRESULT WINAPI GetExtendedErrorInfo(BSTR *bstrErrorText) = 0;
933 virtual HRESULT WINAPI Escape(DWORD dwEscapeCode,BYTE *lpInData,DWORD cbInDataSize,BYTE *pOutData,DWORD dwOutDataSize,DWORD *pdwActualDataSize) = 0;
934 virtual HRESULT WINAPI CancelPendingIO(void) = 0;
935 };
936#else
937 typedef struct IWiaItemExtrasVtbl {
938 BEGIN_INTERFACE
939 HRESULT (WINAPI *QueryInterface)(IWiaItemExtras *This,REFIID riid,void **ppvObject);
940 ULONG (WINAPI *AddRef)(IWiaItemExtras *This);
941 ULONG (WINAPI *Release)(IWiaItemExtras *This);
942 HRESULT (WINAPI *GetExtendedErrorInfo)(IWiaItemExtras *This,BSTR *bstrErrorText);
943 HRESULT (WINAPI *Escape)(IWiaItemExtras *This,DWORD dwEscapeCode,BYTE *lpInData,DWORD cbInDataSize,BYTE *pOutData,DWORD dwOutDataSize,DWORD *pdwActualDataSize);
944 HRESULT (WINAPI *CancelPendingIO)(IWiaItemExtras *This);
945 END_INTERFACE
946 } IWiaItemExtrasVtbl;
947 struct IWiaItemExtras {
948 CONST_VTBL struct IWiaItemExtrasVtbl *lpVtbl;
949 };
950#ifdef COBJMACROS
951#define IWiaItemExtras_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
952#define IWiaItemExtras_AddRef(This) (This)->lpVtbl->AddRef(This)
953#define IWiaItemExtras_Release(This) (This)->lpVtbl->Release(This)
954#define IWiaItemExtras_GetExtendedErrorInfo(This,bstrErrorText) (This)->lpVtbl->GetExtendedErrorInfo(This,bstrErrorText)
955#define IWiaItemExtras_Escape(This,dwEscapeCode,lpInData,cbInDataSize,pOutData,dwOutDataSize,pdwActualDataSize) (This)->lpVtbl->Escape(This,dwEscapeCode,lpInData,cbInDataSize,pOutData,dwOutDataSize,pdwActualDataSize)
956#define IWiaItemExtras_CancelPendingIO(This) (This)->lpVtbl->CancelPendingIO(This)
957#endif
958#endif
959 HRESULT WINAPI IWiaItemExtras_GetExtendedErrorInfo_Proxy(IWiaItemExtras *This,BSTR *bstrErrorText);
960 void __RPC_STUB IWiaItemExtras_GetExtendedErrorInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
961 HRESULT WINAPI IWiaItemExtras_Escape_Proxy(IWiaItemExtras *This,DWORD dwEscapeCode,BYTE *lpInData,DWORD cbInDataSize,BYTE *pOutData,DWORD dwOutDataSize,DWORD *pdwActualDataSize);
962 void __RPC_STUB IWiaItemExtras_Escape_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
963 HRESULT WINAPI IWiaItemExtras_CancelPendingIO_Proxy(IWiaItemExtras *This);
964 void __RPC_STUB IWiaItemExtras_CancelPendingIO_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
965#endif
966
967#ifndef __WiaDevMgr_LIBRARY_DEFINED__
968#define __WiaDevMgr_LIBRARY_DEFINED__
969 EXTERN_C const IID LIBID_WiaDevMgr;
970 EXTERN_C const CLSID CLSID_WiaDevMgr;
971#ifdef __cplusplus
972 class WiaDevMgr;
973#endif
974 EXTERN_C const CLSID CLSID_WiaLog;
975#ifdef __cplusplus
976 class WiaLog;
977#endif
978#endif
979
980 ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);
981 unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char *,BSTR *);
982 unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char *,BSTR *);
983 void __RPC_API BSTR_UserFree(ULONG *,BSTR *);
984 ULONG __RPC_API HWND_UserSize(ULONG *,ULONG,HWND *);
985 unsigned char *__RPC_API HWND_UserMarshal(ULONG *,unsigned char *,HWND *);
986 unsigned char *__RPC_API HWND_UserUnmarshal(ULONG *,unsigned char *,HWND *);
987 void __RPC_API HWND_UserFree(ULONG *,HWND *);
988 ULONG __RPC_API LPSAFEARRAY_UserSize(ULONG *,ULONG,LPSAFEARRAY *);
989 unsigned char *__RPC_API LPSAFEARRAY_UserMarshal(ULONG *,unsigned char *,LPSAFEARRAY *);
990 unsigned char *__RPC_API LPSAFEARRAY_UserUnmarshal(ULONG *,unsigned char *,LPSAFEARRAY *);
991 void __RPC_API LPSAFEARRAY_UserFree(ULONG *,LPSAFEARRAY *);
992 ULONG __RPC_API STGMEDIUM_UserSize(ULONG *,ULONG,STGMEDIUM *);
993 unsigned char *__RPC_API STGMEDIUM_UserMarshal(ULONG *,unsigned char *,STGMEDIUM *);
994 unsigned char *__RPC_API STGMEDIUM_UserUnmarshal(ULONG *,unsigned char *,STGMEDIUM *);
995 void __RPC_API STGMEDIUM_UserFree(ULONG *,STGMEDIUM *);
996
997 HRESULT WINAPI IWiaDevMgr_CreateDevice_Proxy(IWiaDevMgr *This,BSTR bstrDeviceID,IWiaItem **ppWiaItemRoot);
998 HRESULT WINAPI IWiaDevMgr_CreateDevice_Stub(IWiaDevMgr *This,BSTR bstrDeviceID,IWiaItem **ppWiaItemRoot);
999 HRESULT WINAPI IWiaDevMgr_SelectDeviceDlg_Proxy(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem **ppItemRoot);
1000 HRESULT WINAPI IWiaDevMgr_SelectDeviceDlg_Stub(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem **ppItemRoot);
1001 HRESULT WINAPI IWiaDevMgr_SelectDeviceDlgID_Proxy(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID);
1002 HRESULT WINAPI IWiaDevMgr_SelectDeviceDlgID_Stub(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID);
1003 HRESULT WINAPI IWiaDevMgr_GetImageDlg_Proxy(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,LONG lIntent,IWiaItem *pItemRoot,BSTR bstrFilename,GUID *pguidFormat);
1004 HRESULT WINAPI IWiaDevMgr_GetImageDlg_Stub(IWiaDevMgr *This,HWND hwndParent,LONG lDeviceType,LONG lFlags,LONG lIntent,IWiaItem *pItemRoot,BSTR bstrFilename,GUID *pguidFormat);
1005 HRESULT WINAPI IWiaDevMgr_RegisterEventCallbackProgram_Proxy(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrCommandline,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
1006 HRESULT WINAPI IWiaDevMgr_RegisterEventCallbackProgram_Stub(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrCommandline,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
1007 HRESULT WINAPI IWiaDevMgr_RegisterEventCallbackInterface_Proxy(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject);
1008 HRESULT WINAPI IWiaDevMgr_RegisterEventCallbackInterface_Stub(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject);
1009 HRESULT WINAPI IWiaDevMgr_RegisterEventCallbackCLSID_Proxy(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
1010 HRESULT WINAPI IWiaDevMgr_RegisterEventCallbackCLSID_Stub(IWiaDevMgr *This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon);
1011 HRESULT WINAPI IEnumWIA_DEV_INFO_Next_Proxy(IEnumWIA_DEV_INFO *This,ULONG celt,IWiaPropertyStorage **rgelt,ULONG *pceltFetched);
1012 HRESULT WINAPI IEnumWIA_DEV_INFO_Next_Stub(IEnumWIA_DEV_INFO *This,ULONG celt,IWiaPropertyStorage **rgelt,ULONG *pceltFetched);
1013 HRESULT WINAPI IWiaDataCallback_BandedDataCallback_Proxy(IWiaDataCallback *This,LONG lMessage,LONG lStatus,LONG lPercentComplete,LONG lOffset,LONG lLength,LONG lReserved,LONG lResLength,BYTE *pbBuffer);
1014 HRESULT WINAPI IWiaDataCallback_BandedDataCallback_Stub(IWiaDataCallback *This,LONG lMessage,LONG lStatus,LONG lPercentComplete,LONG lOffset,LONG lLength,LONG lReserved,LONG lResLength,BYTE *pbBuffer);
1015 HRESULT WINAPI IWiaDataTransfer_idtGetData_Proxy(IWiaDataTransfer *This,LPSTGMEDIUM pMedium,IWiaDataCallback *pIWiaDataCallback);
1016 HRESULT WINAPI IWiaDataTransfer_idtGetData_Stub(IWiaDataTransfer *This,LPSTGMEDIUM pMedium,IWiaDataCallback *pIWiaDataCallback);
1017 HRESULT WINAPI IWiaDataTransfer_idtGetBandedData_Proxy(IWiaDataTransfer *This,PWIA_DATA_TRANSFER_INFO pWiaDataTransInfo,IWiaDataCallback *pIWiaDataCallback);
1018 HRESULT WINAPI IWiaDataTransfer_idtGetBandedData_Stub(IWiaDataTransfer *This,PWIA_DATA_TRANSFER_INFO pWiaDataTransInfo,IWiaDataCallback *pIWiaDataCallback);
1019 HRESULT WINAPI IWiaItem_DeviceDlg_Proxy(IWiaItem *This,HWND hwndParent,LONG lFlags,LONG lIntent,LONG *plItemCount,IWiaItem ***ppIWiaItem);
1020 HRESULT WINAPI IWiaItem_DeviceDlg_Stub(IWiaItem *This,HWND hwndParent,LONG lFlags,LONG lIntent,LONG *plItemCount,IWiaItem ***pIWiaItem);
1021 HRESULT WINAPI IWiaPropertyStorage_WriteMultiple_Proxy(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC rgpspec[],const PROPVARIANT rgpropvar[],PROPID propidNameFirst);
1022 HRESULT WINAPI IWiaPropertyStorage_WriteMultiple_Stub(IWiaPropertyStorage *This,ULONG cpspec,const PROPSPEC *rgpspec,const PROPVARIANT *rgpropvar,PROPID propidNameFirst);
1023 HRESULT WINAPI IWiaPropertyStorage_SetPropertyStream_Proxy(IWiaPropertyStorage *This,GUID *pCompatibilityId,IStream *pIStream);
1024 HRESULT WINAPI IWiaPropertyStorage_SetPropertyStream_Stub(IWiaPropertyStorage *This,GUID *pCompatibilityId,IStream *pIStream);
1025 HRESULT WINAPI IEnumWiaItem_Next_Proxy(IEnumWiaItem *This,ULONG celt,IWiaItem **ppIWiaItem,ULONG *pceltFetched);
1026 HRESULT WINAPI IEnumWiaItem_Next_Stub(IEnumWiaItem *This,ULONG celt,IWiaItem **ppIWiaItem,ULONG *pceltFetched);
1027 HRESULT WINAPI IEnumWIA_DEV_CAPS_Next_Proxy(IEnumWIA_DEV_CAPS *This,ULONG celt,WIA_DEV_CAP *rgelt,ULONG *pceltFetched);
1028 HRESULT WINAPI IEnumWIA_DEV_CAPS_Next_Stub(IEnumWIA_DEV_CAPS *This,ULONG celt,WIA_DEV_CAP *rgelt,ULONG *pceltFetched);
1029 HRESULT WINAPI IEnumWIA_FORMAT_INFO_Next_Proxy(IEnumWIA_FORMAT_INFO *This,ULONG celt,WIA_FORMAT_INFO *rgelt,ULONG *pceltFetched);
1030 HRESULT WINAPI IEnumWIA_FORMAT_INFO_Next_Stub(IEnumWIA_FORMAT_INFO *This,ULONG celt,WIA_FORMAT_INFO *rgelt,ULONG *pceltFetched);
1031
1032#ifdef __cplusplus
1033}
1034#endif
24#if (_WIN32_WINNT >= 0x0600)
25#include <wia_lh.h>
26#elif (_WIN32_WINNT >= 0x0501)
27#include <wia_xp.h>
103528#endif
lib/libc/include/any-windows-any/wia_lh.h created+1821
......@@ -0,0 +1,1821 @@
1/*** Autogenerated by WIDL 10.0-rc1 from include/wia_lh.idl - Do not edit ***/
2
3#ifdef _WIN32
4#ifndef __REQUIRED_RPCNDR_H_VERSION__
5#define __REQUIRED_RPCNDR_H_VERSION__ 475
6#endif
7#include <rpc.h>
8#include <rpcndr.h>
9#endif
10
11#ifndef COM_NO_WINDOWS_H
12#include <windows.h>
13#include <ole2.h>
14#endif
15
16#ifndef __wia_lh_h__
17#define __wia_lh_h__
18
19/* Forward declarations */
20
21#ifndef __IWiaDevMgr_FWD_DEFINED__
22#define __IWiaDevMgr_FWD_DEFINED__
23typedef interface IWiaDevMgr IWiaDevMgr;
24#ifdef __cplusplus
25interface IWiaDevMgr;
26#endif /* __cplusplus */
27#endif
28
29#ifndef __IEnumWIA_DEV_INFO_FWD_DEFINED__
30#define __IEnumWIA_DEV_INFO_FWD_DEFINED__
31typedef interface IEnumWIA_DEV_INFO IEnumWIA_DEV_INFO;
32#ifdef __cplusplus
33interface IEnumWIA_DEV_INFO;
34#endif /* __cplusplus */
35#endif
36
37#ifndef __IWiaPropertyStorage_FWD_DEFINED__
38#define __IWiaPropertyStorage_FWD_DEFINED__
39typedef interface IWiaPropertyStorage IWiaPropertyStorage;
40#ifdef __cplusplus
41interface IWiaPropertyStorage;
42#endif /* __cplusplus */
43#endif
44
45#ifndef __IWiaItem_FWD_DEFINED__
46#define __IWiaItem_FWD_DEFINED__
47typedef interface IWiaItem IWiaItem;
48#ifdef __cplusplus
49interface IWiaItem;
50#endif /* __cplusplus */
51#endif
52
53#ifndef __IWiaEventCallback_FWD_DEFINED__
54#define __IWiaEventCallback_FWD_DEFINED__
55typedef interface IWiaEventCallback IWiaEventCallback;
56#ifdef __cplusplus
57interface IWiaEventCallback;
58#endif /* __cplusplus */
59#endif
60
61#ifndef __IEnumWIA_DEV_CAPS_FWD_DEFINED__
62#define __IEnumWIA_DEV_CAPS_FWD_DEFINED__
63typedef interface IEnumWIA_DEV_CAPS IEnumWIA_DEV_CAPS;
64#ifdef __cplusplus
65interface IEnumWIA_DEV_CAPS;
66#endif /* __cplusplus */
67#endif
68
69#ifndef __IWiaTransferCallback_FWD_DEFINED__
70#define __IWiaTransferCallback_FWD_DEFINED__
71typedef interface IWiaTransferCallback IWiaTransferCallback;
72#ifdef __cplusplus
73interface IWiaTransferCallback;
74#endif /* __cplusplus */
75#endif
76
77#ifndef __IWiaPreview_FWD_DEFINED__
78#define __IWiaPreview_FWD_DEFINED__
79typedef interface IWiaPreview IWiaPreview;
80#ifdef __cplusplus
81interface IWiaPreview;
82#endif /* __cplusplus */
83#endif
84
85#ifndef __IEnumWiaItem2_FWD_DEFINED__
86#define __IEnumWiaItem2_FWD_DEFINED__
87typedef interface IEnumWiaItem2 IEnumWiaItem2;
88#ifdef __cplusplus
89interface IEnumWiaItem2;
90#endif /* __cplusplus */
91#endif
92
93#ifndef __IWiaItem2_FWD_DEFINED__
94#define __IWiaItem2_FWD_DEFINED__
95typedef interface IWiaItem2 IWiaItem2;
96#ifdef __cplusplus
97interface IWiaItem2;
98#endif /* __cplusplus */
99#endif
100
101#ifndef __IWiaDevMgr2_FWD_DEFINED__
102#define __IWiaDevMgr2_FWD_DEFINED__
103typedef interface IWiaDevMgr2 IWiaDevMgr2;
104#ifdef __cplusplus
105interface IWiaDevMgr2;
106#endif /* __cplusplus */
107#endif
108
109#ifndef __WiaDevMgr2_FWD_DEFINED__
110#define __WiaDevMgr2_FWD_DEFINED__
111#ifdef __cplusplus
112typedef class WiaDevMgr2 WiaDevMgr2;
113#else
114typedef struct WiaDevMgr2 WiaDevMgr2;
115#endif /* defined __cplusplus */
116#endif /* defined __WiaDevMgr2_FWD_DEFINED__ */
117
118/* Headers for imported files */
119
120#include <unknwn.h>
121#include <oaidl.h>
122#include <propidl.h>
123
124#ifdef __cplusplus
125extern "C" {
126#endif
127
128typedef struct _WIA_DITHER_PATTERN_DATA {
129 LONG lSize;
130 BSTR bstrPatternName;
131 LONG lPatternWidth;
132 LONG lPatternLength;
133 LONG cbPattern;
134 BYTE *pbPattern;
135} WIA_DITHER_PATTERN_DATA;
136typedef struct _WIA_DITHER_PATTERN_DATA *PWIA_DITHER_PATTERN_DATA;
137typedef struct _WIA_PROPID_TO_NAME {
138 PROPID propid;
139 LPOLESTR pszName;
140} WIA_PROPID_TO_NAME;
141typedef struct _WIA_PROPID_TO_NAME *PWIA_PROPID_TO_NAME;
142typedef struct _WIA_FORMAT_INFO {
143 GUID guidFormatID;
144 LONG lTymed;
145} WIA_FORMAT_INFO;
146typedef struct _WIA_FORMAT_INFO *PWIA_FORMAT_INFO;
147#include <wiadef.h>
148#ifndef __IEnumWIA_DEV_INFO_FWD_DEFINED__
149#define __IEnumWIA_DEV_INFO_FWD_DEFINED__
150typedef interface IEnumWIA_DEV_INFO IEnumWIA_DEV_INFO;
151#ifdef __cplusplus
152interface IEnumWIA_DEV_INFO;
153#endif /* __cplusplus */
154#endif
155
156#ifndef __IWiaPropertyStorage_FWD_DEFINED__
157#define __IWiaPropertyStorage_FWD_DEFINED__
158typedef interface IWiaPropertyStorage IWiaPropertyStorage;
159#ifdef __cplusplus
160interface IWiaPropertyStorage;
161#endif /* __cplusplus */
162#endif
163
164#ifndef __IWiaItem_FWD_DEFINED__
165#define __IWiaItem_FWD_DEFINED__
166typedef interface IWiaItem IWiaItem;
167#ifdef __cplusplus
168interface IWiaItem;
169#endif /* __cplusplus */
170#endif
171
172#ifndef __IWiaEventCallback_FWD_DEFINED__
173#define __IWiaEventCallback_FWD_DEFINED__
174typedef interface IWiaEventCallback IWiaEventCallback;
175#ifdef __cplusplus
176interface IWiaEventCallback;
177#endif /* __cplusplus */
178#endif
179
180#ifndef __IEnumWIA_DEV_CAPS_FWD_DEFINED__
181#define __IEnumWIA_DEV_CAPS_FWD_DEFINED__
182typedef interface IEnumWIA_DEV_CAPS IEnumWIA_DEV_CAPS;
183#ifdef __cplusplus
184interface IEnumWIA_DEV_CAPS;
185#endif /* __cplusplus */
186#endif
187
188#ifndef __IWiaTransferCallback_FWD_DEFINED__
189#define __IWiaTransferCallback_FWD_DEFINED__
190typedef interface IWiaTransferCallback IWiaTransferCallback;
191#ifdef __cplusplus
192interface IWiaTransferCallback;
193#endif /* __cplusplus */
194#endif
195
196#ifndef __IWiaPreview_FWD_DEFINED__
197#define __IWiaPreview_FWD_DEFINED__
198typedef interface IWiaPreview IWiaPreview;
199#ifdef __cplusplus
200interface IWiaPreview;
201#endif /* __cplusplus */
202#endif
203
204#ifndef __IEnumWiaItem2_FWD_DEFINED__
205#define __IEnumWiaItem2_FWD_DEFINED__
206typedef interface IEnumWiaItem2 IEnumWiaItem2;
207#ifdef __cplusplus
208interface IEnumWiaItem2;
209#endif /* __cplusplus */
210#endif
211
212#ifndef __IWiaItem2_FWD_DEFINED__
213#define __IWiaItem2_FWD_DEFINED__
214typedef interface IWiaItem2 IWiaItem2;
215#ifdef __cplusplus
216interface IWiaItem2;
217#endif /* __cplusplus */
218#endif
219
220#ifndef __IWiaDevMgr2_FWD_DEFINED__
221#define __IWiaDevMgr2_FWD_DEFINED__
222typedef interface IWiaDevMgr2 IWiaDevMgr2;
223#ifdef __cplusplus
224interface IWiaDevMgr2;
225#endif /* __cplusplus */
226#endif
227
228DEFINE_GUID(CLSID_WiaDevMgr, 0xa1f4e726,0x8cf1,0x11d1,0xbf,0x92,0x00,0x60,0x08,0x1e,0xd8,0x11);
229/*****************************************************************************
230 * IWiaDevMgr interface
231 */
232#ifndef __IWiaDevMgr_INTERFACE_DEFINED__
233#define __IWiaDevMgr_INTERFACE_DEFINED__
234
235DEFINE_GUID(IID_IWiaDevMgr, 0x5eb2502a, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11);
236#if defined(__cplusplus) && !defined(CINTERFACE)
237MIDL_INTERFACE("5eb2502a-8cf1-11d1-bf92-0060081ed811")
238IWiaDevMgr : public IUnknown
239{
240 virtual HRESULT STDMETHODCALLTYPE EnumDeviceInfo(
241 LONG lFlag,
242 IEnumWIA_DEV_INFO **ppIEnum) = 0;
243
244 virtual HRESULT STDMETHODCALLTYPE CreateDevice(
245 BSTR bstrDeviceID,
246 IWiaItem **ppWiaItemRoot) = 0;
247
248 virtual HRESULT STDMETHODCALLTYPE SelectDeviceDlg(
249 HWND hwndParent,
250 LONG lDeviceType,
251 LONG lFlags,
252 BSTR *pbstrDeviceID,
253 IWiaItem **ppItemRoot) = 0;
254
255 virtual HRESULT STDMETHODCALLTYPE SelectDeviceDlgID(
256 HWND hwndParent,
257 LONG lDeviceType,
258 LONG lFlags,
259 BSTR *pbstrDeviceID) = 0;
260
261 virtual HRESULT STDMETHODCALLTYPE GetImageDlg(
262 HWND hwndParent,
263 LONG lDeviceType,
264 LONG lFlags,
265 LONG lIntent,
266 IWiaItem *pItemRoot,
267 BSTR bstrFilename,
268 GUID *pguidFormat) = 0;
269
270 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackProgram(
271 LONG lFlags,
272 BSTR bstrDeviceID,
273 const GUID *pEventGUID,
274 BSTR bstrCommandline,
275 BSTR bstrName,
276 BSTR bstrDescription,
277 BSTR bstrIcon) = 0;
278
279 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackInterface(
280 LONG lFlags,
281 BSTR bstrDeviceID,
282 const GUID *pEventGUID,
283 IWiaEventCallback *pIWiaEventCallback,
284 IUnknown **pEventObject) = 0;
285
286 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackCLSID(
287 LONG lFlags,
288 BSTR bstrDeviceID,
289 const GUID *pEventGUID,
290 const GUID *pClsID,
291 BSTR bstrName,
292 BSTR bstrDescription,
293 BSTR bstrIcon) = 0;
294
295 virtual HRESULT STDMETHODCALLTYPE AddDeviceDlg(
296 HWND hwndParent,
297 LONG lFlags) = 0;
298
299};
300#ifdef __CRT_UUID_DECL
301__CRT_UUID_DECL(IWiaDevMgr, 0x5eb2502a, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11)
302#endif
303#else
304typedef struct IWiaDevMgrVtbl {
305 BEGIN_INTERFACE
306
307 /*** IUnknown methods ***/
308 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
309 IWiaDevMgr *This,
310 REFIID riid,
311 void **ppvObject);
312
313 ULONG (STDMETHODCALLTYPE *AddRef)(
314 IWiaDevMgr *This);
315
316 ULONG (STDMETHODCALLTYPE *Release)(
317 IWiaDevMgr *This);
318
319 /*** IWiaDevMgr methods ***/
320 HRESULT (STDMETHODCALLTYPE *EnumDeviceInfo)(
321 IWiaDevMgr *This,
322 LONG lFlag,
323 IEnumWIA_DEV_INFO **ppIEnum);
324
325 HRESULT (STDMETHODCALLTYPE *CreateDevice)(
326 IWiaDevMgr *This,
327 BSTR bstrDeviceID,
328 IWiaItem **ppWiaItemRoot);
329
330 HRESULT (STDMETHODCALLTYPE *SelectDeviceDlg)(
331 IWiaDevMgr *This,
332 HWND hwndParent,
333 LONG lDeviceType,
334 LONG lFlags,
335 BSTR *pbstrDeviceID,
336 IWiaItem **ppItemRoot);
337
338 HRESULT (STDMETHODCALLTYPE *SelectDeviceDlgID)(
339 IWiaDevMgr *This,
340 HWND hwndParent,
341 LONG lDeviceType,
342 LONG lFlags,
343 BSTR *pbstrDeviceID);
344
345 HRESULT (STDMETHODCALLTYPE *GetImageDlg)(
346 IWiaDevMgr *This,
347 HWND hwndParent,
348 LONG lDeviceType,
349 LONG lFlags,
350 LONG lIntent,
351 IWiaItem *pItemRoot,
352 BSTR bstrFilename,
353 GUID *pguidFormat);
354
355 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackProgram)(
356 IWiaDevMgr *This,
357 LONG lFlags,
358 BSTR bstrDeviceID,
359 const GUID *pEventGUID,
360 BSTR bstrCommandline,
361 BSTR bstrName,
362 BSTR bstrDescription,
363 BSTR bstrIcon);
364
365 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackInterface)(
366 IWiaDevMgr *This,
367 LONG lFlags,
368 BSTR bstrDeviceID,
369 const GUID *pEventGUID,
370 IWiaEventCallback *pIWiaEventCallback,
371 IUnknown **pEventObject);
372
373 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackCLSID)(
374 IWiaDevMgr *This,
375 LONG lFlags,
376 BSTR bstrDeviceID,
377 const GUID *pEventGUID,
378 const GUID *pClsID,
379 BSTR bstrName,
380 BSTR bstrDescription,
381 BSTR bstrIcon);
382
383 HRESULT (STDMETHODCALLTYPE *AddDeviceDlg)(
384 IWiaDevMgr *This,
385 HWND hwndParent,
386 LONG lFlags);
387
388 END_INTERFACE
389} IWiaDevMgrVtbl;
390
391interface IWiaDevMgr {
392 CONST_VTBL IWiaDevMgrVtbl* lpVtbl;
393};
394
395#ifdef COBJMACROS
396#ifndef WIDL_C_INLINE_WRAPPERS
397/*** IUnknown methods ***/
398#define IWiaDevMgr_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
399#define IWiaDevMgr_AddRef(This) (This)->lpVtbl->AddRef(This)
400#define IWiaDevMgr_Release(This) (This)->lpVtbl->Release(This)
401/*** IWiaDevMgr methods ***/
402#define IWiaDevMgr_EnumDeviceInfo(This,lFlag,ppIEnum) (This)->lpVtbl->EnumDeviceInfo(This,lFlag,ppIEnum)
403#define IWiaDevMgr_CreateDevice(This,bstrDeviceID,ppWiaItemRoot) (This)->lpVtbl->CreateDevice(This,bstrDeviceID,ppWiaItemRoot)
404#define IWiaDevMgr_SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot) (This)->lpVtbl->SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot)
405#define IWiaDevMgr_SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID) (This)->lpVtbl->SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID)
406#define IWiaDevMgr_GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat) (This)->lpVtbl->GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat)
407#define IWiaDevMgr_RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon)
408#define IWiaDevMgr_RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject) (This)->lpVtbl->RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject)
409#define IWiaDevMgr_RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon)
410#define IWiaDevMgr_AddDeviceDlg(This,hwndParent,lFlags) (This)->lpVtbl->AddDeviceDlg(This,hwndParent,lFlags)
411#else
412/*** IUnknown methods ***/
413static inline HRESULT IWiaDevMgr_QueryInterface(IWiaDevMgr* This,REFIID riid,void **ppvObject) {
414 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
415}
416static inline ULONG IWiaDevMgr_AddRef(IWiaDevMgr* This) {
417 return This->lpVtbl->AddRef(This);
418}
419static inline ULONG IWiaDevMgr_Release(IWiaDevMgr* This) {
420 return This->lpVtbl->Release(This);
421}
422/*** IWiaDevMgr methods ***/
423static inline HRESULT IWiaDevMgr_EnumDeviceInfo(IWiaDevMgr* This,LONG lFlag,IEnumWIA_DEV_INFO **ppIEnum) {
424 return This->lpVtbl->EnumDeviceInfo(This,lFlag,ppIEnum);
425}
426static inline HRESULT IWiaDevMgr_CreateDevice(IWiaDevMgr* This,BSTR bstrDeviceID,IWiaItem **ppWiaItemRoot) {
427 return This->lpVtbl->CreateDevice(This,bstrDeviceID,ppWiaItemRoot);
428}
429static inline HRESULT IWiaDevMgr_SelectDeviceDlg(IWiaDevMgr* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem **ppItemRoot) {
430 return This->lpVtbl->SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot);
431}
432static inline HRESULT IWiaDevMgr_SelectDeviceDlgID(IWiaDevMgr* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID) {
433 return This->lpVtbl->SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID);
434}
435static inline HRESULT IWiaDevMgr_GetImageDlg(IWiaDevMgr* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,LONG lIntent,IWiaItem *pItemRoot,BSTR bstrFilename,GUID *pguidFormat) {
436 return This->lpVtbl->GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat);
437}
438static inline HRESULT IWiaDevMgr_RegisterEventCallbackProgram(IWiaDevMgr* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrCommandline,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) {
439 return This->lpVtbl->RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon);
440}
441static inline HRESULT IWiaDevMgr_RegisterEventCallbackInterface(IWiaDevMgr* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject) {
442 return This->lpVtbl->RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject);
443}
444static inline HRESULT IWiaDevMgr_RegisterEventCallbackCLSID(IWiaDevMgr* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) {
445 return This->lpVtbl->RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon);
446}
447static inline HRESULT IWiaDevMgr_AddDeviceDlg(IWiaDevMgr* This,HWND hwndParent,LONG lFlags) {
448 return This->lpVtbl->AddDeviceDlg(This,hwndParent,lFlags);
449}
450#endif
451#endif
452
453#endif
454
455
456#endif /* __IWiaDevMgr_INTERFACE_DEFINED__ */
457
458/*****************************************************************************
459 * IEnumWIA_DEV_INFO interface
460 */
461#ifndef __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__
462#define __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__
463
464DEFINE_GUID(IID_IEnumWIA_DEV_INFO, 0x5e38b83c, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11);
465#if defined(__cplusplus) && !defined(CINTERFACE)
466MIDL_INTERFACE("5e38b83c-8cf1-11d1-bf92-0060081ed811")
467IEnumWIA_DEV_INFO : public IUnknown
468{
469 virtual HRESULT STDMETHODCALLTYPE Next(
470 ULONG celt,
471 IWiaPropertyStorage **rgelt,
472 ULONG *pceltFetched) = 0;
473
474 virtual HRESULT STDMETHODCALLTYPE Skip(
475 ULONG celt) = 0;
476
477 virtual HRESULT STDMETHODCALLTYPE Reset(
478 ) = 0;
479
480 virtual HRESULT STDMETHODCALLTYPE Clone(
481 IEnumWIA_DEV_INFO **ppIEnum) = 0;
482
483 virtual HRESULT STDMETHODCALLTYPE GetCount(
484 ULONG *celt) = 0;
485
486};
487#ifdef __CRT_UUID_DECL
488__CRT_UUID_DECL(IEnumWIA_DEV_INFO, 0x5e38b83c, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11)
489#endif
490#else
491typedef struct IEnumWIA_DEV_INFOVtbl {
492 BEGIN_INTERFACE
493
494 /*** IUnknown methods ***/
495 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
496 IEnumWIA_DEV_INFO *This,
497 REFIID riid,
498 void **ppvObject);
499
500 ULONG (STDMETHODCALLTYPE *AddRef)(
501 IEnumWIA_DEV_INFO *This);
502
503 ULONG (STDMETHODCALLTYPE *Release)(
504 IEnumWIA_DEV_INFO *This);
505
506 /*** IEnumWIA_DEV_INFO methods ***/
507 HRESULT (STDMETHODCALLTYPE *Next)(
508 IEnumWIA_DEV_INFO *This,
509 ULONG celt,
510 IWiaPropertyStorage **rgelt,
511 ULONG *pceltFetched);
512
513 HRESULT (STDMETHODCALLTYPE *Skip)(
514 IEnumWIA_DEV_INFO *This,
515 ULONG celt);
516
517 HRESULT (STDMETHODCALLTYPE *Reset)(
518 IEnumWIA_DEV_INFO *This);
519
520 HRESULT (STDMETHODCALLTYPE *Clone)(
521 IEnumWIA_DEV_INFO *This,
522 IEnumWIA_DEV_INFO **ppIEnum);
523
524 HRESULT (STDMETHODCALLTYPE *GetCount)(
525 IEnumWIA_DEV_INFO *This,
526 ULONG *celt);
527
528 END_INTERFACE
529} IEnumWIA_DEV_INFOVtbl;
530
531interface IEnumWIA_DEV_INFO {
532 CONST_VTBL IEnumWIA_DEV_INFOVtbl* lpVtbl;
533};
534
535#ifdef COBJMACROS
536#ifndef WIDL_C_INLINE_WRAPPERS
537/*** IUnknown methods ***/
538#define IEnumWIA_DEV_INFO_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
539#define IEnumWIA_DEV_INFO_AddRef(This) (This)->lpVtbl->AddRef(This)
540#define IEnumWIA_DEV_INFO_Release(This) (This)->lpVtbl->Release(This)
541/*** IEnumWIA_DEV_INFO methods ***/
542#define IEnumWIA_DEV_INFO_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
543#define IEnumWIA_DEV_INFO_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
544#define IEnumWIA_DEV_INFO_Reset(This) (This)->lpVtbl->Reset(This)
545#define IEnumWIA_DEV_INFO_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
546#define IEnumWIA_DEV_INFO_GetCount(This,celt) (This)->lpVtbl->GetCount(This,celt)
547#else
548/*** IUnknown methods ***/
549static inline HRESULT IEnumWIA_DEV_INFO_QueryInterface(IEnumWIA_DEV_INFO* This,REFIID riid,void **ppvObject) {
550 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
551}
552static inline ULONG IEnumWIA_DEV_INFO_AddRef(IEnumWIA_DEV_INFO* This) {
553 return This->lpVtbl->AddRef(This);
554}
555static inline ULONG IEnumWIA_DEV_INFO_Release(IEnumWIA_DEV_INFO* This) {
556 return This->lpVtbl->Release(This);
557}
558/*** IEnumWIA_DEV_INFO methods ***/
559static inline HRESULT IEnumWIA_DEV_INFO_Next(IEnumWIA_DEV_INFO* This,ULONG celt,IWiaPropertyStorage **rgelt,ULONG *pceltFetched) {
560 return This->lpVtbl->Next(This,celt,rgelt,pceltFetched);
561}
562static inline HRESULT IEnumWIA_DEV_INFO_Skip(IEnumWIA_DEV_INFO* This,ULONG celt) {
563 return This->lpVtbl->Skip(This,celt);
564}
565static inline HRESULT IEnumWIA_DEV_INFO_Reset(IEnumWIA_DEV_INFO* This) {
566 return This->lpVtbl->Reset(This);
567}
568static inline HRESULT IEnumWIA_DEV_INFO_Clone(IEnumWIA_DEV_INFO* This,IEnumWIA_DEV_INFO **ppIEnum) {
569 return This->lpVtbl->Clone(This,ppIEnum);
570}
571static inline HRESULT IEnumWIA_DEV_INFO_GetCount(IEnumWIA_DEV_INFO* This,ULONG *celt) {
572 return This->lpVtbl->GetCount(This,celt);
573}
574#endif
575#endif
576
577#endif
578
579
580#endif /* __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__ */
581
582/*****************************************************************************
583 * IWiaPropertyStorage interface
584 */
585#ifndef __IWiaPropertyStorage_INTERFACE_DEFINED__
586#define __IWiaPropertyStorage_INTERFACE_DEFINED__
587
588DEFINE_GUID(IID_IWiaPropertyStorage, 0x98b5e8a0, 0x29cc, 0x491a, 0xaa,0xc0, 0xe6,0xdb,0x4f,0xdc,0xce,0xb6);
589#if defined(__cplusplus) && !defined(CINTERFACE)
590MIDL_INTERFACE("98b5e8a0-29cc-491a-aac0-e6db4fdcceb6")
591IWiaPropertyStorage : public IUnknown
592{
593};
594#ifdef __CRT_UUID_DECL
595__CRT_UUID_DECL(IWiaPropertyStorage, 0x98b5e8a0, 0x29cc, 0x491a, 0xaa,0xc0, 0xe6,0xdb,0x4f,0xdc,0xce,0xb6)
596#endif
597#else
598typedef struct IWiaPropertyStorageVtbl {
599 BEGIN_INTERFACE
600
601 /*** IUnknown methods ***/
602 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
603 IWiaPropertyStorage *This,
604 REFIID riid,
605 void **ppvObject);
606
607 ULONG (STDMETHODCALLTYPE *AddRef)(
608 IWiaPropertyStorage *This);
609
610 ULONG (STDMETHODCALLTYPE *Release)(
611 IWiaPropertyStorage *This);
612
613 END_INTERFACE
614} IWiaPropertyStorageVtbl;
615
616interface IWiaPropertyStorage {
617 CONST_VTBL IWiaPropertyStorageVtbl* lpVtbl;
618};
619
620#ifdef COBJMACROS
621#ifndef WIDL_C_INLINE_WRAPPERS
622/*** IUnknown methods ***/
623#define IWiaPropertyStorage_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
624#define IWiaPropertyStorage_AddRef(This) (This)->lpVtbl->AddRef(This)
625#define IWiaPropertyStorage_Release(This) (This)->lpVtbl->Release(This)
626#else
627/*** IUnknown methods ***/
628static inline HRESULT IWiaPropertyStorage_QueryInterface(IWiaPropertyStorage* This,REFIID riid,void **ppvObject) {
629 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
630}
631static inline ULONG IWiaPropertyStorage_AddRef(IWiaPropertyStorage* This) {
632 return This->lpVtbl->AddRef(This);
633}
634static inline ULONG IWiaPropertyStorage_Release(IWiaPropertyStorage* This) {
635 return This->lpVtbl->Release(This);
636}
637#endif
638#endif
639
640#endif
641
642
643#endif /* __IWiaPropertyStorage_INTERFACE_DEFINED__ */
644
645/*****************************************************************************
646 * IWiaItem interface
647 */
648#ifndef __IWiaItem_INTERFACE_DEFINED__
649#define __IWiaItem_INTERFACE_DEFINED__
650
651DEFINE_GUID(IID_IWiaItem, 0x4db1ad10, 0x3391, 0x11d2, 0x9a,0x33, 0x00,0xc0,0x4f,0xa3,0x61,0x45);
652#if defined(__cplusplus) && !defined(CINTERFACE)
653MIDL_INTERFACE("4db1ad10-3391-11d2-9a33-00c04fa36145")
654IWiaItem : public IUnknown
655{
656};
657#ifdef __CRT_UUID_DECL
658__CRT_UUID_DECL(IWiaItem, 0x4db1ad10, 0x3391, 0x11d2, 0x9a,0x33, 0x00,0xc0,0x4f,0xa3,0x61,0x45)
659#endif
660#else
661typedef struct IWiaItemVtbl {
662 BEGIN_INTERFACE
663
664 /*** IUnknown methods ***/
665 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
666 IWiaItem *This,
667 REFIID riid,
668 void **ppvObject);
669
670 ULONG (STDMETHODCALLTYPE *AddRef)(
671 IWiaItem *This);
672
673 ULONG (STDMETHODCALLTYPE *Release)(
674 IWiaItem *This);
675
676 END_INTERFACE
677} IWiaItemVtbl;
678
679interface IWiaItem {
680 CONST_VTBL IWiaItemVtbl* lpVtbl;
681};
682
683#ifdef COBJMACROS
684#ifndef WIDL_C_INLINE_WRAPPERS
685/*** IUnknown methods ***/
686#define IWiaItem_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
687#define IWiaItem_AddRef(This) (This)->lpVtbl->AddRef(This)
688#define IWiaItem_Release(This) (This)->lpVtbl->Release(This)
689#else
690/*** IUnknown methods ***/
691static inline HRESULT IWiaItem_QueryInterface(IWiaItem* This,REFIID riid,void **ppvObject) {
692 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
693}
694static inline ULONG IWiaItem_AddRef(IWiaItem* This) {
695 return This->lpVtbl->AddRef(This);
696}
697static inline ULONG IWiaItem_Release(IWiaItem* This) {
698 return This->lpVtbl->Release(This);
699}
700#endif
701#endif
702
703#endif
704
705
706#endif /* __IWiaItem_INTERFACE_DEFINED__ */
707
708/*****************************************************************************
709 * IWiaEventCallback interface
710 */
711#ifndef __IWiaEventCallback_INTERFACE_DEFINED__
712#define __IWiaEventCallback_INTERFACE_DEFINED__
713
714DEFINE_GUID(IID_IWiaEventCallback, 0xae6287b0, 0x0084, 0x11d2, 0x97,0x3b, 0x00,0xa0,0xc9,0x06,0x8f,0x2e);
715#if defined(__cplusplus) && !defined(CINTERFACE)
716MIDL_INTERFACE("ae6287b0-0084-11d2-973b-00a0c9068f2e")
717IWiaEventCallback : public IUnknown
718{
719 virtual HRESULT STDMETHODCALLTYPE ImageEventCallback(
720 const GUID *pEventGUID,
721 BSTR bstrEventDescription,
722 BSTR bstrDeviceID,
723 BSTR bstrDeviceDescription,
724 DWORD dwDeviceType,
725 BSTR bstrFullItemName,
726 ULONG *pulEventType,
727 ULONG ulReserved) = 0;
728
729};
730#ifdef __CRT_UUID_DECL
731__CRT_UUID_DECL(IWiaEventCallback, 0xae6287b0, 0x0084, 0x11d2, 0x97,0x3b, 0x00,0xa0,0xc9,0x06,0x8f,0x2e)
732#endif
733#else
734typedef struct IWiaEventCallbackVtbl {
735 BEGIN_INTERFACE
736
737 /*** IUnknown methods ***/
738 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
739 IWiaEventCallback *This,
740 REFIID riid,
741 void **ppvObject);
742
743 ULONG (STDMETHODCALLTYPE *AddRef)(
744 IWiaEventCallback *This);
745
746 ULONG (STDMETHODCALLTYPE *Release)(
747 IWiaEventCallback *This);
748
749 /*** IWiaEventCallback methods ***/
750 HRESULT (STDMETHODCALLTYPE *ImageEventCallback)(
751 IWiaEventCallback *This,
752 const GUID *pEventGUID,
753 BSTR bstrEventDescription,
754 BSTR bstrDeviceID,
755 BSTR bstrDeviceDescription,
756 DWORD dwDeviceType,
757 BSTR bstrFullItemName,
758 ULONG *pulEventType,
759 ULONG ulReserved);
760
761 END_INTERFACE
762} IWiaEventCallbackVtbl;
763
764interface IWiaEventCallback {
765 CONST_VTBL IWiaEventCallbackVtbl* lpVtbl;
766};
767
768#ifdef COBJMACROS
769#ifndef WIDL_C_INLINE_WRAPPERS
770/*** IUnknown methods ***/
771#define IWiaEventCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
772#define IWiaEventCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
773#define IWiaEventCallback_Release(This) (This)->lpVtbl->Release(This)
774/*** IWiaEventCallback methods ***/
775#define IWiaEventCallback_ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved) (This)->lpVtbl->ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved)
776#else
777/*** IUnknown methods ***/
778static inline HRESULT IWiaEventCallback_QueryInterface(IWiaEventCallback* This,REFIID riid,void **ppvObject) {
779 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
780}
781static inline ULONG IWiaEventCallback_AddRef(IWiaEventCallback* This) {
782 return This->lpVtbl->AddRef(This);
783}
784static inline ULONG IWiaEventCallback_Release(IWiaEventCallback* This) {
785 return This->lpVtbl->Release(This);
786}
787/*** IWiaEventCallback methods ***/
788static inline HRESULT IWiaEventCallback_ImageEventCallback(IWiaEventCallback* This,const GUID *pEventGUID,BSTR bstrEventDescription,BSTR bstrDeviceID,BSTR bstrDeviceDescription,DWORD dwDeviceType,BSTR bstrFullItemName,ULONG *pulEventType,ULONG ulReserved) {
789 return This->lpVtbl->ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved);
790}
791#endif
792#endif
793
794#endif
795
796
797#endif /* __IWiaEventCallback_INTERFACE_DEFINED__ */
798
799typedef struct _WIA_DEV_CAP {
800 GUID guid;
801 ULONG ulFlags;
802 BSTR bstrName;
803 BSTR bstrDescription;
804 BSTR bstrIcon;
805 BSTR bstrCommandline;
806} WIA_DEV_CAP;
807typedef struct _WIA_DEV_CAP *PWIA_DEV_CAP;
808typedef struct _WIA_DEV_CAP WIA_EVENT_HANDLER;
809typedef struct _WIA_DEV_CAP *PWIA_EVENT_HANDLER;
810/*****************************************************************************
811 * IEnumWIA_DEV_CAPS interface
812 */
813#ifndef __IEnumWIA_DEV_CAPS_INTERFACE_DEFINED__
814#define __IEnumWIA_DEV_CAPS_INTERFACE_DEFINED__
815
816DEFINE_GUID(IID_IEnumWIA_DEV_CAPS, 0x1fcc4287, 0xaca6, 0x11d2, 0xa0,0x93, 0x00,0xc0,0x4f,0x72,0xdc,0x3c);
817#if defined(__cplusplus) && !defined(CINTERFACE)
818MIDL_INTERFACE("1fcc4287-aca6-11d2-a093-00c04f72dc3c")
819IEnumWIA_DEV_CAPS : public IUnknown
820{
821 virtual HRESULT STDMETHODCALLTYPE Next(
822 ULONG celt,
823 WIA_DEV_CAP *rgelt,
824 ULONG *pceltFetched) = 0;
825
826 virtual HRESULT STDMETHODCALLTYPE Skip(
827 ULONG celt) = 0;
828
829 virtual HRESULT STDMETHODCALLTYPE Reset(
830 ) = 0;
831
832 virtual HRESULT STDMETHODCALLTYPE Clone(
833 IEnumWIA_DEV_CAPS **ppIEnum) = 0;
834
835 virtual HRESULT STDMETHODCALLTYPE GetCount(
836 ULONG *pcelt) = 0;
837
838};
839#ifdef __CRT_UUID_DECL
840__CRT_UUID_DECL(IEnumWIA_DEV_CAPS, 0x1fcc4287, 0xaca6, 0x11d2, 0xa0,0x93, 0x00,0xc0,0x4f,0x72,0xdc,0x3c)
841#endif
842#else
843typedef struct IEnumWIA_DEV_CAPSVtbl {
844 BEGIN_INTERFACE
845
846 /*** IUnknown methods ***/
847 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
848 IEnumWIA_DEV_CAPS *This,
849 REFIID riid,
850 void **ppvObject);
851
852 ULONG (STDMETHODCALLTYPE *AddRef)(
853 IEnumWIA_DEV_CAPS *This);
854
855 ULONG (STDMETHODCALLTYPE *Release)(
856 IEnumWIA_DEV_CAPS *This);
857
858 /*** IEnumWIA_DEV_CAPS methods ***/
859 HRESULT (STDMETHODCALLTYPE *Next)(
860 IEnumWIA_DEV_CAPS *This,
861 ULONG celt,
862 WIA_DEV_CAP *rgelt,
863 ULONG *pceltFetched);
864
865 HRESULT (STDMETHODCALLTYPE *Skip)(
866 IEnumWIA_DEV_CAPS *This,
867 ULONG celt);
868
869 HRESULT (STDMETHODCALLTYPE *Reset)(
870 IEnumWIA_DEV_CAPS *This);
871
872 HRESULT (STDMETHODCALLTYPE *Clone)(
873 IEnumWIA_DEV_CAPS *This,
874 IEnumWIA_DEV_CAPS **ppIEnum);
875
876 HRESULT (STDMETHODCALLTYPE *GetCount)(
877 IEnumWIA_DEV_CAPS *This,
878 ULONG *pcelt);
879
880 END_INTERFACE
881} IEnumWIA_DEV_CAPSVtbl;
882
883interface IEnumWIA_DEV_CAPS {
884 CONST_VTBL IEnumWIA_DEV_CAPSVtbl* lpVtbl;
885};
886
887#ifdef COBJMACROS
888#ifndef WIDL_C_INLINE_WRAPPERS
889/*** IUnknown methods ***/
890#define IEnumWIA_DEV_CAPS_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
891#define IEnumWIA_DEV_CAPS_AddRef(This) (This)->lpVtbl->AddRef(This)
892#define IEnumWIA_DEV_CAPS_Release(This) (This)->lpVtbl->Release(This)
893/*** IEnumWIA_DEV_CAPS methods ***/
894#define IEnumWIA_DEV_CAPS_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
895#define IEnumWIA_DEV_CAPS_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
896#define IEnumWIA_DEV_CAPS_Reset(This) (This)->lpVtbl->Reset(This)
897#define IEnumWIA_DEV_CAPS_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
898#define IEnumWIA_DEV_CAPS_GetCount(This,pcelt) (This)->lpVtbl->GetCount(This,pcelt)
899#else
900/*** IUnknown methods ***/
901static inline HRESULT IEnumWIA_DEV_CAPS_QueryInterface(IEnumWIA_DEV_CAPS* This,REFIID riid,void **ppvObject) {
902 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
903}
904static inline ULONG IEnumWIA_DEV_CAPS_AddRef(IEnumWIA_DEV_CAPS* This) {
905 return This->lpVtbl->AddRef(This);
906}
907static inline ULONG IEnumWIA_DEV_CAPS_Release(IEnumWIA_DEV_CAPS* This) {
908 return This->lpVtbl->Release(This);
909}
910/*** IEnumWIA_DEV_CAPS methods ***/
911static inline HRESULT IEnumWIA_DEV_CAPS_Next(IEnumWIA_DEV_CAPS* This,ULONG celt,WIA_DEV_CAP *rgelt,ULONG *pceltFetched) {
912 return This->lpVtbl->Next(This,celt,rgelt,pceltFetched);
913}
914static inline HRESULT IEnumWIA_DEV_CAPS_Skip(IEnumWIA_DEV_CAPS* This,ULONG celt) {
915 return This->lpVtbl->Skip(This,celt);
916}
917static inline HRESULT IEnumWIA_DEV_CAPS_Reset(IEnumWIA_DEV_CAPS* This) {
918 return This->lpVtbl->Reset(This);
919}
920static inline HRESULT IEnumWIA_DEV_CAPS_Clone(IEnumWIA_DEV_CAPS* This,IEnumWIA_DEV_CAPS **ppIEnum) {
921 return This->lpVtbl->Clone(This,ppIEnum);
922}
923static inline HRESULT IEnumWIA_DEV_CAPS_GetCount(IEnumWIA_DEV_CAPS* This,ULONG *pcelt) {
924 return This->lpVtbl->GetCount(This,pcelt);
925}
926#endif
927#endif
928
929#endif
930
931
932#endif /* __IEnumWIA_DEV_CAPS_INTERFACE_DEFINED__ */
933
934typedef struct _WiaTransferParams {
935 LONG lMessage;
936 LONG lPercentComplete;
937 ULONG64 ulTransferredBytes;
938 HRESULT hrErrorStatus;
939} WiaTransferParams;
940/*****************************************************************************
941 * IWiaTransferCallback interface
942 */
943#ifndef __IWiaTransferCallback_INTERFACE_DEFINED__
944#define __IWiaTransferCallback_INTERFACE_DEFINED__
945
946DEFINE_GUID(IID_IWiaTransferCallback, 0x27d4eaaf, 0x28a6, 0x4ca5, 0x9a,0xab, 0xe6,0x78,0x16,0x8b,0x95,0x27);
947#if defined(__cplusplus) && !defined(CINTERFACE)
948MIDL_INTERFACE("27d4eaaf-28a6-4ca5-9aab-e678168b9527")
949IWiaTransferCallback : public IUnknown
950{
951 virtual HRESULT STDMETHODCALLTYPE TransferCallback(
952 LONG lFlags,
953 WiaTransferParams *pWiaTransferParams) = 0;
954
955 virtual HRESULT STDMETHODCALLTYPE GetNextStream(
956 LONG lFlags,
957 BSTR bstrItemName,
958 BSTR bstrFullItemName,
959 IStream **ppDestination) = 0;
960
961};
962#ifdef __CRT_UUID_DECL
963__CRT_UUID_DECL(IWiaTransferCallback, 0x27d4eaaf, 0x28a6, 0x4ca5, 0x9a,0xab, 0xe6,0x78,0x16,0x8b,0x95,0x27)
964#endif
965#else
966typedef struct IWiaTransferCallbackVtbl {
967 BEGIN_INTERFACE
968
969 /*** IUnknown methods ***/
970 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
971 IWiaTransferCallback *This,
972 REFIID riid,
973 void **ppvObject);
974
975 ULONG (STDMETHODCALLTYPE *AddRef)(
976 IWiaTransferCallback *This);
977
978 ULONG (STDMETHODCALLTYPE *Release)(
979 IWiaTransferCallback *This);
980
981 /*** IWiaTransferCallback methods ***/
982 HRESULT (STDMETHODCALLTYPE *TransferCallback)(
983 IWiaTransferCallback *This,
984 LONG lFlags,
985 WiaTransferParams *pWiaTransferParams);
986
987 HRESULT (STDMETHODCALLTYPE *GetNextStream)(
988 IWiaTransferCallback *This,
989 LONG lFlags,
990 BSTR bstrItemName,
991 BSTR bstrFullItemName,
992 IStream **ppDestination);
993
994 END_INTERFACE
995} IWiaTransferCallbackVtbl;
996
997interface IWiaTransferCallback {
998 CONST_VTBL IWiaTransferCallbackVtbl* lpVtbl;
999};
1000
1001#ifdef COBJMACROS
1002#ifndef WIDL_C_INLINE_WRAPPERS
1003/*** IUnknown methods ***/
1004#define IWiaTransferCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
1005#define IWiaTransferCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
1006#define IWiaTransferCallback_Release(This) (This)->lpVtbl->Release(This)
1007/*** IWiaTransferCallback methods ***/
1008#define IWiaTransferCallback_TransferCallback(This,lFlags,pWiaTransferParams) (This)->lpVtbl->TransferCallback(This,lFlags,pWiaTransferParams)
1009#define IWiaTransferCallback_GetNextStream(This,lFlags,bstrItemName,bstrFullItemName,ppDestination) (This)->lpVtbl->GetNextStream(This,lFlags,bstrItemName,bstrFullItemName,ppDestination)
1010#else
1011/*** IUnknown methods ***/
1012static inline HRESULT IWiaTransferCallback_QueryInterface(IWiaTransferCallback* This,REFIID riid,void **ppvObject) {
1013 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
1014}
1015static inline ULONG IWiaTransferCallback_AddRef(IWiaTransferCallback* This) {
1016 return This->lpVtbl->AddRef(This);
1017}
1018static inline ULONG IWiaTransferCallback_Release(IWiaTransferCallback* This) {
1019 return This->lpVtbl->Release(This);
1020}
1021/*** IWiaTransferCallback methods ***/
1022static inline HRESULT IWiaTransferCallback_TransferCallback(IWiaTransferCallback* This,LONG lFlags,WiaTransferParams *pWiaTransferParams) {
1023 return This->lpVtbl->TransferCallback(This,lFlags,pWiaTransferParams);
1024}
1025static inline HRESULT IWiaTransferCallback_GetNextStream(IWiaTransferCallback* This,LONG lFlags,BSTR bstrItemName,BSTR bstrFullItemName,IStream **ppDestination) {
1026 return This->lpVtbl->GetNextStream(This,lFlags,bstrItemName,bstrFullItemName,ppDestination);
1027}
1028#endif
1029#endif
1030
1031#endif
1032
1033
1034#endif /* __IWiaTransferCallback_INTERFACE_DEFINED__ */
1035
1036/*****************************************************************************
1037 * IWiaPreview interface
1038 */
1039#ifndef __IWiaPreview_INTERFACE_DEFINED__
1040#define __IWiaPreview_INTERFACE_DEFINED__
1041
1042DEFINE_GUID(IID_IWiaPreview, 0x95c2b4fd, 0x33f2, 0x4d86, 0xad,0x40, 0x94,0x31,0xf0,0xdf,0x08,0xf7);
1043#if defined(__cplusplus) && !defined(CINTERFACE)
1044MIDL_INTERFACE("95c2b4fd-33f2-4d86-ad40-9431f0df08f7")
1045IWiaPreview : public IUnknown
1046{
1047 virtual HRESULT STDMETHODCALLTYPE GetNewPreview(
1048 LONG lFlags,
1049 IWiaItem2 *pWiaItem2,
1050 IWiaTransferCallback *pWiaTransferCallback) = 0;
1051
1052 virtual HRESULT STDMETHODCALLTYPE UpdatePreview(
1053 LONG lFlags,
1054 IWiaItem2 *pChildWiaItem2,
1055 IWiaTransferCallback *pWiaTransferCallback) = 0;
1056
1057 virtual HRESULT STDMETHODCALLTYPE DetectRegions(
1058 LONG lFlags) = 0;
1059
1060 virtual HRESULT STDMETHODCALLTYPE Clear(
1061 ) = 0;
1062
1063};
1064#ifdef __CRT_UUID_DECL
1065__CRT_UUID_DECL(IWiaPreview, 0x95c2b4fd, 0x33f2, 0x4d86, 0xad,0x40, 0x94,0x31,0xf0,0xdf,0x08,0xf7)
1066#endif
1067#else
1068typedef struct IWiaPreviewVtbl {
1069 BEGIN_INTERFACE
1070
1071 /*** IUnknown methods ***/
1072 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1073 IWiaPreview *This,
1074 REFIID riid,
1075 void **ppvObject);
1076
1077 ULONG (STDMETHODCALLTYPE *AddRef)(
1078 IWiaPreview *This);
1079
1080 ULONG (STDMETHODCALLTYPE *Release)(
1081 IWiaPreview *This);
1082
1083 /*** IWiaPreview methods ***/
1084 HRESULT (STDMETHODCALLTYPE *GetNewPreview)(
1085 IWiaPreview *This,
1086 LONG lFlags,
1087 IWiaItem2 *pWiaItem2,
1088 IWiaTransferCallback *pWiaTransferCallback);
1089
1090 HRESULT (STDMETHODCALLTYPE *UpdatePreview)(
1091 IWiaPreview *This,
1092 LONG lFlags,
1093 IWiaItem2 *pChildWiaItem2,
1094 IWiaTransferCallback *pWiaTransferCallback);
1095
1096 HRESULT (STDMETHODCALLTYPE *DetectRegions)(
1097 IWiaPreview *This,
1098 LONG lFlags);
1099
1100 HRESULT (STDMETHODCALLTYPE *Clear)(
1101 IWiaPreview *This);
1102
1103 END_INTERFACE
1104} IWiaPreviewVtbl;
1105
1106interface IWiaPreview {
1107 CONST_VTBL IWiaPreviewVtbl* lpVtbl;
1108};
1109
1110#ifdef COBJMACROS
1111#ifndef WIDL_C_INLINE_WRAPPERS
1112/*** IUnknown methods ***/
1113#define IWiaPreview_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
1114#define IWiaPreview_AddRef(This) (This)->lpVtbl->AddRef(This)
1115#define IWiaPreview_Release(This) (This)->lpVtbl->Release(This)
1116/*** IWiaPreview methods ***/
1117#define IWiaPreview_GetNewPreview(This,lFlags,pWiaItem2,pWiaTransferCallback) (This)->lpVtbl->GetNewPreview(This,lFlags,pWiaItem2,pWiaTransferCallback)
1118#define IWiaPreview_UpdatePreview(This,lFlags,pChildWiaItem2,pWiaTransferCallback) (This)->lpVtbl->UpdatePreview(This,lFlags,pChildWiaItem2,pWiaTransferCallback)
1119#define IWiaPreview_DetectRegions(This,lFlags) (This)->lpVtbl->DetectRegions(This,lFlags)
1120#define IWiaPreview_Clear(This) (This)->lpVtbl->Clear(This)
1121#else
1122/*** IUnknown methods ***/
1123static inline HRESULT IWiaPreview_QueryInterface(IWiaPreview* This,REFIID riid,void **ppvObject) {
1124 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
1125}
1126static inline ULONG IWiaPreview_AddRef(IWiaPreview* This) {
1127 return This->lpVtbl->AddRef(This);
1128}
1129static inline ULONG IWiaPreview_Release(IWiaPreview* This) {
1130 return This->lpVtbl->Release(This);
1131}
1132/*** IWiaPreview methods ***/
1133static inline HRESULT IWiaPreview_GetNewPreview(IWiaPreview* This,LONG lFlags,IWiaItem2 *pWiaItem2,IWiaTransferCallback *pWiaTransferCallback) {
1134 return This->lpVtbl->GetNewPreview(This,lFlags,pWiaItem2,pWiaTransferCallback);
1135}
1136static inline HRESULT IWiaPreview_UpdatePreview(IWiaPreview* This,LONG lFlags,IWiaItem2 *pChildWiaItem2,IWiaTransferCallback *pWiaTransferCallback) {
1137 return This->lpVtbl->UpdatePreview(This,lFlags,pChildWiaItem2,pWiaTransferCallback);
1138}
1139static inline HRESULT IWiaPreview_DetectRegions(IWiaPreview* This,LONG lFlags) {
1140 return This->lpVtbl->DetectRegions(This,lFlags);
1141}
1142static inline HRESULT IWiaPreview_Clear(IWiaPreview* This) {
1143 return This->lpVtbl->Clear(This);
1144}
1145#endif
1146#endif
1147
1148#endif
1149
1150
1151#endif /* __IWiaPreview_INTERFACE_DEFINED__ */
1152
1153/*****************************************************************************
1154 * IEnumWiaItem2 interface
1155 */
1156#ifndef __IEnumWiaItem2_INTERFACE_DEFINED__
1157#define __IEnumWiaItem2_INTERFACE_DEFINED__
1158
1159DEFINE_GUID(IID_IEnumWiaItem2, 0x59970af4, 0xcd0d, 0x44d9, 0xab,0x24, 0x52,0x29,0x56,0x30,0xe5,0x82);
1160#if defined(__cplusplus) && !defined(CINTERFACE)
1161MIDL_INTERFACE("59970af4-cd0d-44d9-ab24-52295630e582")
1162IEnumWiaItem2 : public IUnknown
1163{
1164 virtual HRESULT STDMETHODCALLTYPE Next(
1165 ULONG cElt,
1166 IWiaItem2 **ppIWiaItem2,
1167 ULONG *pcEltFetched) = 0;
1168
1169 virtual HRESULT STDMETHODCALLTYPE Skip(
1170 ULONG cElt) = 0;
1171
1172 virtual HRESULT STDMETHODCALLTYPE Reset(
1173 ) = 0;
1174
1175 virtual HRESULT STDMETHODCALLTYPE Clone(
1176 IEnumWiaItem2 **ppIEnum) = 0;
1177
1178 virtual HRESULT STDMETHODCALLTYPE GetCount(
1179 ULONG *cElt) = 0;
1180
1181};
1182#ifdef __CRT_UUID_DECL
1183__CRT_UUID_DECL(IEnumWiaItem2, 0x59970af4, 0xcd0d, 0x44d9, 0xab,0x24, 0x52,0x29,0x56,0x30,0xe5,0x82)
1184#endif
1185#else
1186typedef struct IEnumWiaItem2Vtbl {
1187 BEGIN_INTERFACE
1188
1189 /*** IUnknown methods ***/
1190 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1191 IEnumWiaItem2 *This,
1192 REFIID riid,
1193 void **ppvObject);
1194
1195 ULONG (STDMETHODCALLTYPE *AddRef)(
1196 IEnumWiaItem2 *This);
1197
1198 ULONG (STDMETHODCALLTYPE *Release)(
1199 IEnumWiaItem2 *This);
1200
1201 /*** IEnumWiaItem2 methods ***/
1202 HRESULT (STDMETHODCALLTYPE *Next)(
1203 IEnumWiaItem2 *This,
1204 ULONG cElt,
1205 IWiaItem2 **ppIWiaItem2,
1206 ULONG *pcEltFetched);
1207
1208 HRESULT (STDMETHODCALLTYPE *Skip)(
1209 IEnumWiaItem2 *This,
1210 ULONG cElt);
1211
1212 HRESULT (STDMETHODCALLTYPE *Reset)(
1213 IEnumWiaItem2 *This);
1214
1215 HRESULT (STDMETHODCALLTYPE *Clone)(
1216 IEnumWiaItem2 *This,
1217 IEnumWiaItem2 **ppIEnum);
1218
1219 HRESULT (STDMETHODCALLTYPE *GetCount)(
1220 IEnumWiaItem2 *This,
1221 ULONG *cElt);
1222
1223 END_INTERFACE
1224} IEnumWiaItem2Vtbl;
1225
1226interface IEnumWiaItem2 {
1227 CONST_VTBL IEnumWiaItem2Vtbl* lpVtbl;
1228};
1229
1230#ifdef COBJMACROS
1231#ifndef WIDL_C_INLINE_WRAPPERS
1232/*** IUnknown methods ***/
1233#define IEnumWiaItem2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
1234#define IEnumWiaItem2_AddRef(This) (This)->lpVtbl->AddRef(This)
1235#define IEnumWiaItem2_Release(This) (This)->lpVtbl->Release(This)
1236/*** IEnumWiaItem2 methods ***/
1237#define IEnumWiaItem2_Next(This,cElt,ppIWiaItem2,pcEltFetched) (This)->lpVtbl->Next(This,cElt,ppIWiaItem2,pcEltFetched)
1238#define IEnumWiaItem2_Skip(This,cElt) (This)->lpVtbl->Skip(This,cElt)
1239#define IEnumWiaItem2_Reset(This) (This)->lpVtbl->Reset(This)
1240#define IEnumWiaItem2_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
1241#define IEnumWiaItem2_GetCount(This,cElt) (This)->lpVtbl->GetCount(This,cElt)
1242#else
1243/*** IUnknown methods ***/
1244static inline HRESULT IEnumWiaItem2_QueryInterface(IEnumWiaItem2* This,REFIID riid,void **ppvObject) {
1245 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
1246}
1247static inline ULONG IEnumWiaItem2_AddRef(IEnumWiaItem2* This) {
1248 return This->lpVtbl->AddRef(This);
1249}
1250static inline ULONG IEnumWiaItem2_Release(IEnumWiaItem2* This) {
1251 return This->lpVtbl->Release(This);
1252}
1253/*** IEnumWiaItem2 methods ***/
1254static inline HRESULT IEnumWiaItem2_Next(IEnumWiaItem2* This,ULONG cElt,IWiaItem2 **ppIWiaItem2,ULONG *pcEltFetched) {
1255 return This->lpVtbl->Next(This,cElt,ppIWiaItem2,pcEltFetched);
1256}
1257static inline HRESULT IEnumWiaItem2_Skip(IEnumWiaItem2* This,ULONG cElt) {
1258 return This->lpVtbl->Skip(This,cElt);
1259}
1260static inline HRESULT IEnumWiaItem2_Reset(IEnumWiaItem2* This) {
1261 return This->lpVtbl->Reset(This);
1262}
1263static inline HRESULT IEnumWiaItem2_Clone(IEnumWiaItem2* This,IEnumWiaItem2 **ppIEnum) {
1264 return This->lpVtbl->Clone(This,ppIEnum);
1265}
1266static inline HRESULT IEnumWiaItem2_GetCount(IEnumWiaItem2* This,ULONG *cElt) {
1267 return This->lpVtbl->GetCount(This,cElt);
1268}
1269#endif
1270#endif
1271
1272#endif
1273
1274
1275#endif /* __IEnumWiaItem2_INTERFACE_DEFINED__ */
1276
1277/*****************************************************************************
1278 * IWiaItem2 interface
1279 */
1280#ifndef __IWiaItem2_INTERFACE_DEFINED__
1281#define __IWiaItem2_INTERFACE_DEFINED__
1282
1283DEFINE_GUID(IID_IWiaItem2, 0x6cba0075, 0x1287, 0x407d, 0x9b,0x77, 0xcf,0x0e,0x03,0x04,0x35,0xcc);
1284#if defined(__cplusplus) && !defined(CINTERFACE)
1285MIDL_INTERFACE("6cba0075-1287-407d-9b77-cf0e030435cc")
1286IWiaItem2 : public IUnknown
1287{
1288 virtual HRESULT STDMETHODCALLTYPE CreateChildItem(
1289 LONG lItemFlags,
1290 LONG lCreationFlags,
1291 BSTR bstrItemName,
1292 IWiaItem2 **ppIWiaItem2) = 0;
1293
1294 virtual HRESULT STDMETHODCALLTYPE DeleteItem(
1295 LONG lFlags) = 0;
1296
1297 virtual HRESULT STDMETHODCALLTYPE EnumChildItems(
1298 const GUID *pCategoryGUID,
1299 IEnumWiaItem2 **ppIEnumWiaItem2) = 0;
1300
1301 virtual HRESULT STDMETHODCALLTYPE FindItemByName(
1302 LONG lFlags,
1303 BSTR bstrFullItemName,
1304 IWiaItem2 **ppIWiaItem2) = 0;
1305
1306 virtual HRESULT STDMETHODCALLTYPE GetItemCategory(
1307 GUID *pItemCategoryGUID) = 0;
1308
1309 virtual HRESULT STDMETHODCALLTYPE GetItemType(
1310 LONG *pItemType) = 0;
1311
1312 virtual HRESULT STDMETHODCALLTYPE DeviceDlg(
1313 LONG lFlags,
1314 HWND hwndParent,
1315 BSTR bstrFolderName,
1316 BSTR bstrFilename,
1317 LONG *plNumFiles,
1318 BSTR **ppbstrFilePaths,
1319 IWiaItem2 **ppItem) = 0;
1320
1321 virtual HRESULT STDMETHODCALLTYPE DeviceCommand(
1322 LONG lFlags,
1323 const GUID *pCmdGUID,
1324 IWiaItem2 **ppIWiaItem2) = 0;
1325
1326 virtual HRESULT STDMETHODCALLTYPE EnumDeviceCapabilities(
1327 LONG lFlags,
1328 IEnumWIA_DEV_CAPS **ppIEnumWIA_DEV_CAPS) = 0;
1329
1330 virtual HRESULT STDMETHODCALLTYPE CheckExtension(
1331 LONG lFlags,
1332 BSTR bstrName,
1333 REFIID riidExtensionInterface,
1334 WINBOOL *pbExtensionExists) = 0;
1335
1336 virtual HRESULT STDMETHODCALLTYPE GetExtension(
1337 LONG lFlags,
1338 BSTR bstrName,
1339 REFIID riidExtensionInterface,
1340 void **ppOut) = 0;
1341
1342 virtual HRESULT STDMETHODCALLTYPE GetParentItem(
1343 IWiaItem2 **ppIWiaItem2) = 0;
1344
1345 virtual HRESULT STDMETHODCALLTYPE GetRootItem(
1346 IWiaItem2 **ppIWiaItem2) = 0;
1347
1348 virtual HRESULT STDMETHODCALLTYPE GetPreviewComponent(
1349 LONG lFlags,
1350 IWiaPreview **ppWiaPreview) = 0;
1351
1352 virtual HRESULT STDMETHODCALLTYPE EnumRegisterEventInfo(
1353 LONG lFlags,
1354 const GUID *pEventGUID,
1355 IEnumWIA_DEV_CAPS **ppIEnum) = 0;
1356
1357 virtual HRESULT STDMETHODCALLTYPE Diagnostic(
1358 ULONG ulSize,
1359 BYTE *pBuffer) = 0;
1360
1361};
1362#ifdef __CRT_UUID_DECL
1363__CRT_UUID_DECL(IWiaItem2, 0x6cba0075, 0x1287, 0x407d, 0x9b,0x77, 0xcf,0x0e,0x03,0x04,0x35,0xcc)
1364#endif
1365#else
1366typedef struct IWiaItem2Vtbl {
1367 BEGIN_INTERFACE
1368
1369 /*** IUnknown methods ***/
1370 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1371 IWiaItem2 *This,
1372 REFIID riid,
1373 void **ppvObject);
1374
1375 ULONG (STDMETHODCALLTYPE *AddRef)(
1376 IWiaItem2 *This);
1377
1378 ULONG (STDMETHODCALLTYPE *Release)(
1379 IWiaItem2 *This);
1380
1381 /*** IWiaItem2 methods ***/
1382 HRESULT (STDMETHODCALLTYPE *CreateChildItem)(
1383 IWiaItem2 *This,
1384 LONG lItemFlags,
1385 LONG lCreationFlags,
1386 BSTR bstrItemName,
1387 IWiaItem2 **ppIWiaItem2);
1388
1389 HRESULT (STDMETHODCALLTYPE *DeleteItem)(
1390 IWiaItem2 *This,
1391 LONG lFlags);
1392
1393 HRESULT (STDMETHODCALLTYPE *EnumChildItems)(
1394 IWiaItem2 *This,
1395 const GUID *pCategoryGUID,
1396 IEnumWiaItem2 **ppIEnumWiaItem2);
1397
1398 HRESULT (STDMETHODCALLTYPE *FindItemByName)(
1399 IWiaItem2 *This,
1400 LONG lFlags,
1401 BSTR bstrFullItemName,
1402 IWiaItem2 **ppIWiaItem2);
1403
1404 HRESULT (STDMETHODCALLTYPE *GetItemCategory)(
1405 IWiaItem2 *This,
1406 GUID *pItemCategoryGUID);
1407
1408 HRESULT (STDMETHODCALLTYPE *GetItemType)(
1409 IWiaItem2 *This,
1410 LONG *pItemType);
1411
1412 HRESULT (STDMETHODCALLTYPE *DeviceDlg)(
1413 IWiaItem2 *This,
1414 LONG lFlags,
1415 HWND hwndParent,
1416 BSTR bstrFolderName,
1417 BSTR bstrFilename,
1418 LONG *plNumFiles,
1419 BSTR **ppbstrFilePaths,
1420 IWiaItem2 **ppItem);
1421
1422 HRESULT (STDMETHODCALLTYPE *DeviceCommand)(
1423 IWiaItem2 *This,
1424 LONG lFlags,
1425 const GUID *pCmdGUID,
1426 IWiaItem2 **ppIWiaItem2);
1427
1428 HRESULT (STDMETHODCALLTYPE *EnumDeviceCapabilities)(
1429 IWiaItem2 *This,
1430 LONG lFlags,
1431 IEnumWIA_DEV_CAPS **ppIEnumWIA_DEV_CAPS);
1432
1433 HRESULT (STDMETHODCALLTYPE *CheckExtension)(
1434 IWiaItem2 *This,
1435 LONG lFlags,
1436 BSTR bstrName,
1437 REFIID riidExtensionInterface,
1438 WINBOOL *pbExtensionExists);
1439
1440 HRESULT (STDMETHODCALLTYPE *GetExtension)(
1441 IWiaItem2 *This,
1442 LONG lFlags,
1443 BSTR bstrName,
1444 REFIID riidExtensionInterface,
1445 void **ppOut);
1446
1447 HRESULT (STDMETHODCALLTYPE *GetParentItem)(
1448 IWiaItem2 *This,
1449 IWiaItem2 **ppIWiaItem2);
1450
1451 HRESULT (STDMETHODCALLTYPE *GetRootItem)(
1452 IWiaItem2 *This,
1453 IWiaItem2 **ppIWiaItem2);
1454
1455 HRESULT (STDMETHODCALLTYPE *GetPreviewComponent)(
1456 IWiaItem2 *This,
1457 LONG lFlags,
1458 IWiaPreview **ppWiaPreview);
1459
1460 HRESULT (STDMETHODCALLTYPE *EnumRegisterEventInfo)(
1461 IWiaItem2 *This,
1462 LONG lFlags,
1463 const GUID *pEventGUID,
1464 IEnumWIA_DEV_CAPS **ppIEnum);
1465
1466 HRESULT (STDMETHODCALLTYPE *Diagnostic)(
1467 IWiaItem2 *This,
1468 ULONG ulSize,
1469 BYTE *pBuffer);
1470
1471 END_INTERFACE
1472} IWiaItem2Vtbl;
1473
1474interface IWiaItem2 {
1475 CONST_VTBL IWiaItem2Vtbl* lpVtbl;
1476};
1477
1478#ifdef COBJMACROS
1479#ifndef WIDL_C_INLINE_WRAPPERS
1480/*** IUnknown methods ***/
1481#define IWiaItem2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
1482#define IWiaItem2_AddRef(This) (This)->lpVtbl->AddRef(This)
1483#define IWiaItem2_Release(This) (This)->lpVtbl->Release(This)
1484/*** IWiaItem2 methods ***/
1485#define IWiaItem2_CreateChildItem(This,lItemFlags,lCreationFlags,bstrItemName,ppIWiaItem2) (This)->lpVtbl->CreateChildItem(This,lItemFlags,lCreationFlags,bstrItemName,ppIWiaItem2)
1486#define IWiaItem2_DeleteItem(This,lFlags) (This)->lpVtbl->DeleteItem(This,lFlags)
1487#define IWiaItem2_EnumChildItems(This,pCategoryGUID,ppIEnumWiaItem2) (This)->lpVtbl->EnumChildItems(This,pCategoryGUID,ppIEnumWiaItem2)
1488#define IWiaItem2_FindItemByName(This,lFlags,bstrFullItemName,ppIWiaItem2) (This)->lpVtbl->FindItemByName(This,lFlags,bstrFullItemName,ppIWiaItem2)
1489#define IWiaItem2_GetItemCategory(This,pItemCategoryGUID) (This)->lpVtbl->GetItemCategory(This,pItemCategoryGUID)
1490#define IWiaItem2_GetItemType(This,pItemType) (This)->lpVtbl->GetItemType(This,pItemType)
1491#define IWiaItem2_DeviceDlg(This,lFlags,hwndParent,bstrFolderName,bstrFilename,plNumFiles,ppbstrFilePaths,ppItem) (This)->lpVtbl->DeviceDlg(This,lFlags,hwndParent,bstrFolderName,bstrFilename,plNumFiles,ppbstrFilePaths,ppItem)
1492#define IWiaItem2_DeviceCommand(This,lFlags,pCmdGUID,ppIWiaItem2) (This)->lpVtbl->DeviceCommand(This,lFlags,pCmdGUID,ppIWiaItem2)
1493#define IWiaItem2_EnumDeviceCapabilities(This,lFlags,ppIEnumWIA_DEV_CAPS) (This)->lpVtbl->EnumDeviceCapabilities(This,lFlags,ppIEnumWIA_DEV_CAPS)
1494#define IWiaItem2_CheckExtension(This,lFlags,bstrName,riidExtensionInterface,pbExtensionExists) (This)->lpVtbl->CheckExtension(This,lFlags,bstrName,riidExtensionInterface,pbExtensionExists)
1495#define IWiaItem2_GetExtension(This,lFlags,bstrName,riidExtensionInterface,ppOut) (This)->lpVtbl->GetExtension(This,lFlags,bstrName,riidExtensionInterface,ppOut)
1496#define IWiaItem2_GetParentItem(This,ppIWiaItem2) (This)->lpVtbl->GetParentItem(This,ppIWiaItem2)
1497#define IWiaItem2_GetRootItem(This,ppIWiaItem2) (This)->lpVtbl->GetRootItem(This,ppIWiaItem2)
1498#define IWiaItem2_GetPreviewComponent(This,lFlags,ppWiaPreview) (This)->lpVtbl->GetPreviewComponent(This,lFlags,ppWiaPreview)
1499#define IWiaItem2_EnumRegisterEventInfo(This,lFlags,pEventGUID,ppIEnum) (This)->lpVtbl->EnumRegisterEventInfo(This,lFlags,pEventGUID,ppIEnum)
1500#define IWiaItem2_Diagnostic(This,ulSize,pBuffer) (This)->lpVtbl->Diagnostic(This,ulSize,pBuffer)
1501#else
1502/*** IUnknown methods ***/
1503static inline HRESULT IWiaItem2_QueryInterface(IWiaItem2* This,REFIID riid,void **ppvObject) {
1504 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
1505}
1506static inline ULONG IWiaItem2_AddRef(IWiaItem2* This) {
1507 return This->lpVtbl->AddRef(This);
1508}
1509static inline ULONG IWiaItem2_Release(IWiaItem2* This) {
1510 return This->lpVtbl->Release(This);
1511}
1512/*** IWiaItem2 methods ***/
1513static inline HRESULT IWiaItem2_CreateChildItem(IWiaItem2* This,LONG lItemFlags,LONG lCreationFlags,BSTR bstrItemName,IWiaItem2 **ppIWiaItem2) {
1514 return This->lpVtbl->CreateChildItem(This,lItemFlags,lCreationFlags,bstrItemName,ppIWiaItem2);
1515}
1516static inline HRESULT IWiaItem2_DeleteItem(IWiaItem2* This,LONG lFlags) {
1517 return This->lpVtbl->DeleteItem(This,lFlags);
1518}
1519static inline HRESULT IWiaItem2_EnumChildItems(IWiaItem2* This,const GUID *pCategoryGUID,IEnumWiaItem2 **ppIEnumWiaItem2) {
1520 return This->lpVtbl->EnumChildItems(This,pCategoryGUID,ppIEnumWiaItem2);
1521}
1522static inline HRESULT IWiaItem2_FindItemByName(IWiaItem2* This,LONG lFlags,BSTR bstrFullItemName,IWiaItem2 **ppIWiaItem2) {
1523 return This->lpVtbl->FindItemByName(This,lFlags,bstrFullItemName,ppIWiaItem2);
1524}
1525static inline HRESULT IWiaItem2_GetItemCategory(IWiaItem2* This,GUID *pItemCategoryGUID) {
1526 return This->lpVtbl->GetItemCategory(This,pItemCategoryGUID);
1527}
1528static inline HRESULT IWiaItem2_GetItemType(IWiaItem2* This,LONG *pItemType) {
1529 return This->lpVtbl->GetItemType(This,pItemType);
1530}
1531static inline HRESULT IWiaItem2_DeviceDlg(IWiaItem2* This,LONG lFlags,HWND hwndParent,BSTR bstrFolderName,BSTR bstrFilename,LONG *plNumFiles,BSTR **ppbstrFilePaths,IWiaItem2 **ppItem) {
1532 return This->lpVtbl->DeviceDlg(This,lFlags,hwndParent,bstrFolderName,bstrFilename,plNumFiles,ppbstrFilePaths,ppItem);
1533}
1534static inline HRESULT IWiaItem2_DeviceCommand(IWiaItem2* This,LONG lFlags,const GUID *pCmdGUID,IWiaItem2 **ppIWiaItem2) {
1535 return This->lpVtbl->DeviceCommand(This,lFlags,pCmdGUID,ppIWiaItem2);
1536}
1537static inline HRESULT IWiaItem2_EnumDeviceCapabilities(IWiaItem2* This,LONG lFlags,IEnumWIA_DEV_CAPS **ppIEnumWIA_DEV_CAPS) {
1538 return This->lpVtbl->EnumDeviceCapabilities(This,lFlags,ppIEnumWIA_DEV_CAPS);
1539}
1540static inline HRESULT IWiaItem2_CheckExtension(IWiaItem2* This,LONG lFlags,BSTR bstrName,REFIID riidExtensionInterface,WINBOOL *pbExtensionExists) {
1541 return This->lpVtbl->CheckExtension(This,lFlags,bstrName,riidExtensionInterface,pbExtensionExists);
1542}
1543static inline HRESULT IWiaItem2_GetExtension(IWiaItem2* This,LONG lFlags,BSTR bstrName,REFIID riidExtensionInterface,void **ppOut) {
1544 return This->lpVtbl->GetExtension(This,lFlags,bstrName,riidExtensionInterface,ppOut);
1545}
1546static inline HRESULT IWiaItem2_GetParentItem(IWiaItem2* This,IWiaItem2 **ppIWiaItem2) {
1547 return This->lpVtbl->GetParentItem(This,ppIWiaItem2);
1548}
1549static inline HRESULT IWiaItem2_GetRootItem(IWiaItem2* This,IWiaItem2 **ppIWiaItem2) {
1550 return This->lpVtbl->GetRootItem(This,ppIWiaItem2);
1551}
1552static inline HRESULT IWiaItem2_GetPreviewComponent(IWiaItem2* This,LONG lFlags,IWiaPreview **ppWiaPreview) {
1553 return This->lpVtbl->GetPreviewComponent(This,lFlags,ppWiaPreview);
1554}
1555static inline HRESULT IWiaItem2_EnumRegisterEventInfo(IWiaItem2* This,LONG lFlags,const GUID *pEventGUID,IEnumWIA_DEV_CAPS **ppIEnum) {
1556 return This->lpVtbl->EnumRegisterEventInfo(This,lFlags,pEventGUID,ppIEnum);
1557}
1558static inline HRESULT IWiaItem2_Diagnostic(IWiaItem2* This,ULONG ulSize,BYTE *pBuffer) {
1559 return This->lpVtbl->Diagnostic(This,ulSize,pBuffer);
1560}
1561#endif
1562#endif
1563
1564#endif
1565
1566
1567#endif /* __IWiaItem2_INTERFACE_DEFINED__ */
1568
1569/*****************************************************************************
1570 * IWiaDevMgr2 interface
1571 */
1572#ifndef __IWiaDevMgr2_INTERFACE_DEFINED__
1573#define __IWiaDevMgr2_INTERFACE_DEFINED__
1574
1575DEFINE_GUID(IID_IWiaDevMgr2, 0x79c07cf1, 0xcbdd, 0x41ee, 0x8e,0xc3, 0xf0,0x00,0x80,0xca,0xda,0x7a);
1576#if defined(__cplusplus) && !defined(CINTERFACE)
1577MIDL_INTERFACE("79c07cf1-cbdd-41ee-8ec3-f00080cada7a")
1578IWiaDevMgr2 : public IUnknown
1579{
1580 virtual HRESULT STDMETHODCALLTYPE EnumDeviceInfo(
1581 LONG lFlags,
1582 IEnumWIA_DEV_INFO **ppIEnum) = 0;
1583
1584 virtual HRESULT STDMETHODCALLTYPE CreateDevice(
1585 LONG lFlags,
1586 BSTR bstrDeviceID,
1587 IWiaItem2 **ppWiaItem2Root) = 0;
1588
1589 virtual HRESULT STDMETHODCALLTYPE SelectDeviceDlg(
1590 HWND hwndParent,
1591 LONG lDeviceType,
1592 LONG lFlags,
1593 BSTR *pbstrDeviceID,
1594 IWiaItem2 **ppItemRoot) = 0;
1595
1596 virtual HRESULT STDMETHODCALLTYPE SelectDeviceDlgID(
1597 HWND hwndParent,
1598 LONG lDeviceType,
1599 LONG lFlags,
1600 BSTR *pbstrDeviceID) = 0;
1601
1602 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackInterface(
1603 LONG lFlags,
1604 BSTR bstrDeviceID,
1605 const GUID *pEventGUID,
1606 IWiaEventCallback *pIWiaEventCallback,
1607 IUnknown **pEventObject) = 0;
1608
1609 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackProgram(
1610 LONG lFlags,
1611 BSTR bstrDeviceID,
1612 const GUID *pEventGUID,
1613 BSTR bstrFullAppName,
1614 BSTR bstrCommandLineArg,
1615 BSTR bstrName,
1616 BSTR bstrDescription,
1617 BSTR bstrIcon) = 0;
1618
1619 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackCLSID(
1620 LONG lFlags,
1621 BSTR bstrDeviceID,
1622 const GUID *pEventGUID,
1623 const GUID *pClsID,
1624 BSTR bstrName,
1625 BSTR bstrDescription,
1626 BSTR bstrIcon) = 0;
1627
1628 virtual HRESULT STDMETHODCALLTYPE GetImageDlg(
1629 LONG lFlags,
1630 BSTR bstrDeviceID,
1631 HWND hwndParent,
1632 BSTR bstrFolderName,
1633 BSTR bstrFilename,
1634 LONG *plNumFiles,
1635 BSTR **ppbstrFilePaths,
1636 IWiaItem2 **ppItem) = 0;
1637
1638};
1639#ifdef __CRT_UUID_DECL
1640__CRT_UUID_DECL(IWiaDevMgr2, 0x79c07cf1, 0xcbdd, 0x41ee, 0x8e,0xc3, 0xf0,0x00,0x80,0xca,0xda,0x7a)
1641#endif
1642#else
1643typedef struct IWiaDevMgr2Vtbl {
1644 BEGIN_INTERFACE
1645
1646 /*** IUnknown methods ***/
1647 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1648 IWiaDevMgr2 *This,
1649 REFIID riid,
1650 void **ppvObject);
1651
1652 ULONG (STDMETHODCALLTYPE *AddRef)(
1653 IWiaDevMgr2 *This);
1654
1655 ULONG (STDMETHODCALLTYPE *Release)(
1656 IWiaDevMgr2 *This);
1657
1658 /*** IWiaDevMgr2 methods ***/
1659 HRESULT (STDMETHODCALLTYPE *EnumDeviceInfo)(
1660 IWiaDevMgr2 *This,
1661 LONG lFlags,
1662 IEnumWIA_DEV_INFO **ppIEnum);
1663
1664 HRESULT (STDMETHODCALLTYPE *CreateDevice)(
1665 IWiaDevMgr2 *This,
1666 LONG lFlags,
1667 BSTR bstrDeviceID,
1668 IWiaItem2 **ppWiaItem2Root);
1669
1670 HRESULT (STDMETHODCALLTYPE *SelectDeviceDlg)(
1671 IWiaDevMgr2 *This,
1672 HWND hwndParent,
1673 LONG lDeviceType,
1674 LONG lFlags,
1675 BSTR *pbstrDeviceID,
1676 IWiaItem2 **ppItemRoot);
1677
1678 HRESULT (STDMETHODCALLTYPE *SelectDeviceDlgID)(
1679 IWiaDevMgr2 *This,
1680 HWND hwndParent,
1681 LONG lDeviceType,
1682 LONG lFlags,
1683 BSTR *pbstrDeviceID);
1684
1685 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackInterface)(
1686 IWiaDevMgr2 *This,
1687 LONG lFlags,
1688 BSTR bstrDeviceID,
1689 const GUID *pEventGUID,
1690 IWiaEventCallback *pIWiaEventCallback,
1691 IUnknown **pEventObject);
1692
1693 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackProgram)(
1694 IWiaDevMgr2 *This,
1695 LONG lFlags,
1696 BSTR bstrDeviceID,
1697 const GUID *pEventGUID,
1698 BSTR bstrFullAppName,
1699 BSTR bstrCommandLineArg,
1700 BSTR bstrName,
1701 BSTR bstrDescription,
1702 BSTR bstrIcon);
1703
1704 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackCLSID)(
1705 IWiaDevMgr2 *This,
1706 LONG lFlags,
1707 BSTR bstrDeviceID,
1708 const GUID *pEventGUID,
1709 const GUID *pClsID,
1710 BSTR bstrName,
1711 BSTR bstrDescription,
1712 BSTR bstrIcon);
1713
1714 HRESULT (STDMETHODCALLTYPE *GetImageDlg)(
1715 IWiaDevMgr2 *This,
1716 LONG lFlags,
1717 BSTR bstrDeviceID,
1718 HWND hwndParent,
1719 BSTR bstrFolderName,
1720 BSTR bstrFilename,
1721 LONG *plNumFiles,
1722 BSTR **ppbstrFilePaths,
1723 IWiaItem2 **ppItem);
1724
1725 END_INTERFACE
1726} IWiaDevMgr2Vtbl;
1727
1728interface IWiaDevMgr2 {
1729 CONST_VTBL IWiaDevMgr2Vtbl* lpVtbl;
1730};
1731
1732#ifdef COBJMACROS
1733#ifndef WIDL_C_INLINE_WRAPPERS
1734/*** IUnknown methods ***/
1735#define IWiaDevMgr2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
1736#define IWiaDevMgr2_AddRef(This) (This)->lpVtbl->AddRef(This)
1737#define IWiaDevMgr2_Release(This) (This)->lpVtbl->Release(This)
1738/*** IWiaDevMgr2 methods ***/
1739#define IWiaDevMgr2_EnumDeviceInfo(This,lFlags,ppIEnum) (This)->lpVtbl->EnumDeviceInfo(This,lFlags,ppIEnum)
1740#define IWiaDevMgr2_CreateDevice(This,lFlags,bstrDeviceID,ppWiaItem2Root) (This)->lpVtbl->CreateDevice(This,lFlags,bstrDeviceID,ppWiaItem2Root)
1741#define IWiaDevMgr2_SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot) (This)->lpVtbl->SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot)
1742#define IWiaDevMgr2_SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID) (This)->lpVtbl->SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID)
1743#define IWiaDevMgr2_RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject) (This)->lpVtbl->RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject)
1744#define IWiaDevMgr2_RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrFullAppName,bstrCommandLineArg,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrFullAppName,bstrCommandLineArg,bstrName,bstrDescription,bstrIcon)
1745#define IWiaDevMgr2_RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon)
1746#define IWiaDevMgr2_GetImageDlg(This,lFlags,bstrDeviceID,hwndParent,bstrFolderName,bstrFilename,plNumFiles,ppbstrFilePaths,ppItem) (This)->lpVtbl->GetImageDlg(This,lFlags,bstrDeviceID,hwndParent,bstrFolderName,bstrFilename,plNumFiles,ppbstrFilePaths,ppItem)
1747#else
1748/*** IUnknown methods ***/
1749static inline HRESULT IWiaDevMgr2_QueryInterface(IWiaDevMgr2* This,REFIID riid,void **ppvObject) {
1750 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
1751}
1752static inline ULONG IWiaDevMgr2_AddRef(IWiaDevMgr2* This) {
1753 return This->lpVtbl->AddRef(This);
1754}
1755static inline ULONG IWiaDevMgr2_Release(IWiaDevMgr2* This) {
1756 return This->lpVtbl->Release(This);
1757}
1758/*** IWiaDevMgr2 methods ***/
1759static inline HRESULT IWiaDevMgr2_EnumDeviceInfo(IWiaDevMgr2* This,LONG lFlags,IEnumWIA_DEV_INFO **ppIEnum) {
1760 return This->lpVtbl->EnumDeviceInfo(This,lFlags,ppIEnum);
1761}
1762static inline HRESULT IWiaDevMgr2_CreateDevice(IWiaDevMgr2* This,LONG lFlags,BSTR bstrDeviceID,IWiaItem2 **ppWiaItem2Root) {
1763 return This->lpVtbl->CreateDevice(This,lFlags,bstrDeviceID,ppWiaItem2Root);
1764}
1765static inline HRESULT IWiaDevMgr2_SelectDeviceDlg(IWiaDevMgr2* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem2 **ppItemRoot) {
1766 return This->lpVtbl->SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot);
1767}
1768static inline HRESULT IWiaDevMgr2_SelectDeviceDlgID(IWiaDevMgr2* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID) {
1769 return This->lpVtbl->SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID);
1770}
1771static inline HRESULT IWiaDevMgr2_RegisterEventCallbackInterface(IWiaDevMgr2* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject) {
1772 return This->lpVtbl->RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject);
1773}
1774static inline HRESULT IWiaDevMgr2_RegisterEventCallbackProgram(IWiaDevMgr2* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrFullAppName,BSTR bstrCommandLineArg,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) {
1775 return This->lpVtbl->RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrFullAppName,bstrCommandLineArg,bstrName,bstrDescription,bstrIcon);
1776}
1777static inline HRESULT IWiaDevMgr2_RegisterEventCallbackCLSID(IWiaDevMgr2* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) {
1778 return This->lpVtbl->RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon);
1779}
1780static inline HRESULT IWiaDevMgr2_GetImageDlg(IWiaDevMgr2* This,LONG lFlags,BSTR bstrDeviceID,HWND hwndParent,BSTR bstrFolderName,BSTR bstrFilename,LONG *plNumFiles,BSTR **ppbstrFilePaths,IWiaItem2 **ppItem) {
1781 return This->lpVtbl->GetImageDlg(This,lFlags,bstrDeviceID,hwndParent,bstrFolderName,bstrFilename,plNumFiles,ppbstrFilePaths,ppItem);
1782}
1783#endif
1784#endif
1785
1786#endif
1787
1788
1789#endif /* __IWiaDevMgr2_INTERFACE_DEFINED__ */
1790
1791/*****************************************************************************
1792 * WiaDevMgr2 coclass
1793 */
1794
1795DEFINE_GUID(CLSID_WiaDevMgr2, 0xb6c292bc, 0x7c88, 0x41ee, 0x8b,0x54, 0x8e,0xc9,0x26,0x17,0xe5,0x99);
1796
1797#ifdef __cplusplus
1798class DECLSPEC_UUID("b6c292bc-7c88-41ee-8b54-8ec92617e599") WiaDevMgr2;
1799#ifdef __CRT_UUID_DECL
1800__CRT_UUID_DECL(WiaDevMgr2, 0xb6c292bc, 0x7c88, 0x41ee, 0x8b,0x54, 0x8e,0xc9,0x26,0x17,0xe5,0x99)
1801#endif
1802#endif
1803
1804/* Begin additional prototypes for all interfaces */
1805
1806ULONG __RPC_USER BSTR_UserSize (ULONG *, ULONG, BSTR *);
1807unsigned char * __RPC_USER BSTR_UserMarshal (ULONG *, unsigned char *, BSTR *);
1808unsigned char * __RPC_USER BSTR_UserUnmarshal(ULONG *, unsigned char *, BSTR *);
1809void __RPC_USER BSTR_UserFree (ULONG *, BSTR *);
1810ULONG __RPC_USER HWND_UserSize (ULONG *, ULONG, HWND *);
1811unsigned char * __RPC_USER HWND_UserMarshal (ULONG *, unsigned char *, HWND *);
1812unsigned char * __RPC_USER HWND_UserUnmarshal(ULONG *, unsigned char *, HWND *);
1813void __RPC_USER HWND_UserFree (ULONG *, HWND *);
1814
1815/* End additional prototypes */
1816
1817#ifdef __cplusplus
1818}
1819#endif
1820
1821#endif /* __wia_lh_h__ */
lib/libc/include/any-windows-any/wia_xp.h created+692
......@@ -0,0 +1,692 @@
1/*** Autogenerated by WIDL 10.0-rc1 from include/wia_xp.idl - Do not edit ***/
2
3#ifdef _WIN32
4#ifndef __REQUIRED_RPCNDR_H_VERSION__
5#define __REQUIRED_RPCNDR_H_VERSION__ 475
6#endif
7#include <rpc.h>
8#include <rpcndr.h>
9#endif
10
11#ifndef COM_NO_WINDOWS_H
12#include <windows.h>
13#include <ole2.h>
14#endif
15
16#ifndef __wia_xp_h__
17#define __wia_xp_h__
18
19/* Forward declarations */
20
21#ifndef __IWiaDevMgr_FWD_DEFINED__
22#define __IWiaDevMgr_FWD_DEFINED__
23typedef interface IWiaDevMgr IWiaDevMgr;
24#ifdef __cplusplus
25interface IWiaDevMgr;
26#endif /* __cplusplus */
27#endif
28
29#ifndef __IEnumWIA_DEV_INFO_FWD_DEFINED__
30#define __IEnumWIA_DEV_INFO_FWD_DEFINED__
31typedef interface IEnumWIA_DEV_INFO IEnumWIA_DEV_INFO;
32#ifdef __cplusplus
33interface IEnumWIA_DEV_INFO;
34#endif /* __cplusplus */
35#endif
36
37#ifndef __IWiaPropertyStorage_FWD_DEFINED__
38#define __IWiaPropertyStorage_FWD_DEFINED__
39typedef interface IWiaPropertyStorage IWiaPropertyStorage;
40#ifdef __cplusplus
41interface IWiaPropertyStorage;
42#endif /* __cplusplus */
43#endif
44
45#ifndef __IWiaItem_FWD_DEFINED__
46#define __IWiaItem_FWD_DEFINED__
47typedef interface IWiaItem IWiaItem;
48#ifdef __cplusplus
49interface IWiaItem;
50#endif /* __cplusplus */
51#endif
52
53#ifndef __IWiaEventCallback_FWD_DEFINED__
54#define __IWiaEventCallback_FWD_DEFINED__
55typedef interface IWiaEventCallback IWiaEventCallback;
56#ifdef __cplusplus
57interface IWiaEventCallback;
58#endif /* __cplusplus */
59#endif
60
61/* Headers for imported files */
62
63#include <unknwn.h>
64#include <oaidl.h>
65#include <propidl.h>
66
67#ifdef __cplusplus
68extern "C" {
69#endif
70
71#include <wiadef.h>
72#ifndef __IEnumWIA_DEV_INFO_FWD_DEFINED__
73#define __IEnumWIA_DEV_INFO_FWD_DEFINED__
74typedef interface IEnumWIA_DEV_INFO IEnumWIA_DEV_INFO;
75#ifdef __cplusplus
76interface IEnumWIA_DEV_INFO;
77#endif /* __cplusplus */
78#endif
79
80#ifndef __IWiaPropertyStorage_FWD_DEFINED__
81#define __IWiaPropertyStorage_FWD_DEFINED__
82typedef interface IWiaPropertyStorage IWiaPropertyStorage;
83#ifdef __cplusplus
84interface IWiaPropertyStorage;
85#endif /* __cplusplus */
86#endif
87
88#ifndef __IWiaItem_FWD_DEFINED__
89#define __IWiaItem_FWD_DEFINED__
90typedef interface IWiaItem IWiaItem;
91#ifdef __cplusplus
92interface IWiaItem;
93#endif /* __cplusplus */
94#endif
95
96#ifndef __IWiaEventCallback_FWD_DEFINED__
97#define __IWiaEventCallback_FWD_DEFINED__
98typedef interface IWiaEventCallback IWiaEventCallback;
99#ifdef __cplusplus
100interface IWiaEventCallback;
101#endif /* __cplusplus */
102#endif
103
104DEFINE_GUID(CLSID_WiaDevMgr, 0xa1f4e726,0x8cf1,0x11d1,0xbf,0x92,0x00,0x60,0x08,0x1e,0xd8,0x11);
105/*****************************************************************************
106 * IWiaDevMgr interface
107 */
108#ifndef __IWiaDevMgr_INTERFACE_DEFINED__
109#define __IWiaDevMgr_INTERFACE_DEFINED__
110
111DEFINE_GUID(IID_IWiaDevMgr, 0x5eb2502a, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11);
112#if defined(__cplusplus) && !defined(CINTERFACE)
113MIDL_INTERFACE("5eb2502a-8cf1-11d1-bf92-0060081ed811")
114IWiaDevMgr : public IUnknown
115{
116 virtual HRESULT STDMETHODCALLTYPE EnumDeviceInfo(
117 LONG lFlag,
118 IEnumWIA_DEV_INFO **ppIEnum) = 0;
119
120 virtual HRESULT STDMETHODCALLTYPE CreateDevice(
121 BSTR bstrDeviceID,
122 IWiaItem **ppWiaItemRoot) = 0;
123
124 virtual HRESULT STDMETHODCALLTYPE SelectDeviceDlg(
125 HWND hwndParent,
126 LONG lDeviceType,
127 LONG lFlags,
128 BSTR *pbstrDeviceID,
129 IWiaItem **ppItemRoot) = 0;
130
131 virtual HRESULT STDMETHODCALLTYPE SelectDeviceDlgID(
132 HWND hwndParent,
133 LONG lDeviceType,
134 LONG lFlags,
135 BSTR *pbstrDeviceID) = 0;
136
137 virtual HRESULT STDMETHODCALLTYPE GetImageDlg(
138 HWND hwndParent,
139 LONG lDeviceType,
140 LONG lFlags,
141 LONG lIntent,
142 IWiaItem *pItemRoot,
143 BSTR bstrFilename,
144 GUID *pguidFormat) = 0;
145
146 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackProgram(
147 LONG lFlags,
148 BSTR bstrDeviceID,
149 const GUID *pEventGUID,
150 BSTR bstrCommandline,
151 BSTR bstrName,
152 BSTR bstrDescription,
153 BSTR bstrIcon) = 0;
154
155 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackInterface(
156 LONG lFlags,
157 BSTR bstrDeviceID,
158 const GUID *pEventGUID,
159 IWiaEventCallback *pIWiaEventCallback,
160 IUnknown **pEventObject) = 0;
161
162 virtual HRESULT STDMETHODCALLTYPE RegisterEventCallbackCLSID(
163 LONG lFlags,
164 BSTR bstrDeviceID,
165 const GUID *pEventGUID,
166 const GUID *pClsID,
167 BSTR bstrName,
168 BSTR bstrDescription,
169 BSTR bstrIcon) = 0;
170
171 virtual HRESULT STDMETHODCALLTYPE AddDeviceDlg(
172 HWND hwndParent,
173 LONG lFlags) = 0;
174
175};
176#ifdef __CRT_UUID_DECL
177__CRT_UUID_DECL(IWiaDevMgr, 0x5eb2502a, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11)
178#endif
179#else
180typedef struct IWiaDevMgrVtbl {
181 BEGIN_INTERFACE
182
183 /*** IUnknown methods ***/
184 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
185 IWiaDevMgr *This,
186 REFIID riid,
187 void **ppvObject);
188
189 ULONG (STDMETHODCALLTYPE *AddRef)(
190 IWiaDevMgr *This);
191
192 ULONG (STDMETHODCALLTYPE *Release)(
193 IWiaDevMgr *This);
194
195 /*** IWiaDevMgr methods ***/
196 HRESULT (STDMETHODCALLTYPE *EnumDeviceInfo)(
197 IWiaDevMgr *This,
198 LONG lFlag,
199 IEnumWIA_DEV_INFO **ppIEnum);
200
201 HRESULT (STDMETHODCALLTYPE *CreateDevice)(
202 IWiaDevMgr *This,
203 BSTR bstrDeviceID,
204 IWiaItem **ppWiaItemRoot);
205
206 HRESULT (STDMETHODCALLTYPE *SelectDeviceDlg)(
207 IWiaDevMgr *This,
208 HWND hwndParent,
209 LONG lDeviceType,
210 LONG lFlags,
211 BSTR *pbstrDeviceID,
212 IWiaItem **ppItemRoot);
213
214 HRESULT (STDMETHODCALLTYPE *SelectDeviceDlgID)(
215 IWiaDevMgr *This,
216 HWND hwndParent,
217 LONG lDeviceType,
218 LONG lFlags,
219 BSTR *pbstrDeviceID);
220
221 HRESULT (STDMETHODCALLTYPE *GetImageDlg)(
222 IWiaDevMgr *This,
223 HWND hwndParent,
224 LONG lDeviceType,
225 LONG lFlags,
226 LONG lIntent,
227 IWiaItem *pItemRoot,
228 BSTR bstrFilename,
229 GUID *pguidFormat);
230
231 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackProgram)(
232 IWiaDevMgr *This,
233 LONG lFlags,
234 BSTR bstrDeviceID,
235 const GUID *pEventGUID,
236 BSTR bstrCommandline,
237 BSTR bstrName,
238 BSTR bstrDescription,
239 BSTR bstrIcon);
240
241 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackInterface)(
242 IWiaDevMgr *This,
243 LONG lFlags,
244 BSTR bstrDeviceID,
245 const GUID *pEventGUID,
246 IWiaEventCallback *pIWiaEventCallback,
247 IUnknown **pEventObject);
248
249 HRESULT (STDMETHODCALLTYPE *RegisterEventCallbackCLSID)(
250 IWiaDevMgr *This,
251 LONG lFlags,
252 BSTR bstrDeviceID,
253 const GUID *pEventGUID,
254 const GUID *pClsID,
255 BSTR bstrName,
256 BSTR bstrDescription,
257 BSTR bstrIcon);
258
259 HRESULT (STDMETHODCALLTYPE *AddDeviceDlg)(
260 IWiaDevMgr *This,
261 HWND hwndParent,
262 LONG lFlags);
263
264 END_INTERFACE
265} IWiaDevMgrVtbl;
266
267interface IWiaDevMgr {
268 CONST_VTBL IWiaDevMgrVtbl* lpVtbl;
269};
270
271#ifdef COBJMACROS
272#ifndef WIDL_C_INLINE_WRAPPERS
273/*** IUnknown methods ***/
274#define IWiaDevMgr_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
275#define IWiaDevMgr_AddRef(This) (This)->lpVtbl->AddRef(This)
276#define IWiaDevMgr_Release(This) (This)->lpVtbl->Release(This)
277/*** IWiaDevMgr methods ***/
278#define IWiaDevMgr_EnumDeviceInfo(This,lFlag,ppIEnum) (This)->lpVtbl->EnumDeviceInfo(This,lFlag,ppIEnum)
279#define IWiaDevMgr_CreateDevice(This,bstrDeviceID,ppWiaItemRoot) (This)->lpVtbl->CreateDevice(This,bstrDeviceID,ppWiaItemRoot)
280#define IWiaDevMgr_SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot) (This)->lpVtbl->SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot)
281#define IWiaDevMgr_SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID) (This)->lpVtbl->SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID)
282#define IWiaDevMgr_GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat) (This)->lpVtbl->GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat)
283#define IWiaDevMgr_RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon)
284#define IWiaDevMgr_RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject) (This)->lpVtbl->RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject)
285#define IWiaDevMgr_RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon) (This)->lpVtbl->RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon)
286#define IWiaDevMgr_AddDeviceDlg(This,hwndParent,lFlags) (This)->lpVtbl->AddDeviceDlg(This,hwndParent,lFlags)
287#else
288/*** IUnknown methods ***/
289static inline HRESULT IWiaDevMgr_QueryInterface(IWiaDevMgr* This,REFIID riid,void **ppvObject) {
290 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
291}
292static inline ULONG IWiaDevMgr_AddRef(IWiaDevMgr* This) {
293 return This->lpVtbl->AddRef(This);
294}
295static inline ULONG IWiaDevMgr_Release(IWiaDevMgr* This) {
296 return This->lpVtbl->Release(This);
297}
298/*** IWiaDevMgr methods ***/
299static inline HRESULT IWiaDevMgr_EnumDeviceInfo(IWiaDevMgr* This,LONG lFlag,IEnumWIA_DEV_INFO **ppIEnum) {
300 return This->lpVtbl->EnumDeviceInfo(This,lFlag,ppIEnum);
301}
302static inline HRESULT IWiaDevMgr_CreateDevice(IWiaDevMgr* This,BSTR bstrDeviceID,IWiaItem **ppWiaItemRoot) {
303 return This->lpVtbl->CreateDevice(This,bstrDeviceID,ppWiaItemRoot);
304}
305static inline HRESULT IWiaDevMgr_SelectDeviceDlg(IWiaDevMgr* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID,IWiaItem **ppItemRoot) {
306 return This->lpVtbl->SelectDeviceDlg(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID,ppItemRoot);
307}
308static inline HRESULT IWiaDevMgr_SelectDeviceDlgID(IWiaDevMgr* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,BSTR *pbstrDeviceID) {
309 return This->lpVtbl->SelectDeviceDlgID(This,hwndParent,lDeviceType,lFlags,pbstrDeviceID);
310}
311static inline HRESULT IWiaDevMgr_GetImageDlg(IWiaDevMgr* This,HWND hwndParent,LONG lDeviceType,LONG lFlags,LONG lIntent,IWiaItem *pItemRoot,BSTR bstrFilename,GUID *pguidFormat) {
312 return This->lpVtbl->GetImageDlg(This,hwndParent,lDeviceType,lFlags,lIntent,pItemRoot,bstrFilename,pguidFormat);
313}
314static inline HRESULT IWiaDevMgr_RegisterEventCallbackProgram(IWiaDevMgr* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,BSTR bstrCommandline,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) {
315 return This->lpVtbl->RegisterEventCallbackProgram(This,lFlags,bstrDeviceID,pEventGUID,bstrCommandline,bstrName,bstrDescription,bstrIcon);
316}
317static inline HRESULT IWiaDevMgr_RegisterEventCallbackInterface(IWiaDevMgr* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,IWiaEventCallback *pIWiaEventCallback,IUnknown **pEventObject) {
318 return This->lpVtbl->RegisterEventCallbackInterface(This,lFlags,bstrDeviceID,pEventGUID,pIWiaEventCallback,pEventObject);
319}
320static inline HRESULT IWiaDevMgr_RegisterEventCallbackCLSID(IWiaDevMgr* This,LONG lFlags,BSTR bstrDeviceID,const GUID *pEventGUID,const GUID *pClsID,BSTR bstrName,BSTR bstrDescription,BSTR bstrIcon) {
321 return This->lpVtbl->RegisterEventCallbackCLSID(This,lFlags,bstrDeviceID,pEventGUID,pClsID,bstrName,bstrDescription,bstrIcon);
322}
323static inline HRESULT IWiaDevMgr_AddDeviceDlg(IWiaDevMgr* This,HWND hwndParent,LONG lFlags) {
324 return This->lpVtbl->AddDeviceDlg(This,hwndParent,lFlags);
325}
326#endif
327#endif
328
329#endif
330
331
332#endif /* __IWiaDevMgr_INTERFACE_DEFINED__ */
333
334/*****************************************************************************
335 * IEnumWIA_DEV_INFO interface
336 */
337#ifndef __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__
338#define __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__
339
340DEFINE_GUID(IID_IEnumWIA_DEV_INFO, 0x5e38b83c, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11);
341#if defined(__cplusplus) && !defined(CINTERFACE)
342MIDL_INTERFACE("5e38b83c-8cf1-11d1-bf92-0060081ed811")
343IEnumWIA_DEV_INFO : public IUnknown
344{
345 virtual HRESULT STDMETHODCALLTYPE Next(
346 ULONG celt,
347 IWiaPropertyStorage **rgelt,
348 ULONG *pceltFetched) = 0;
349
350 virtual HRESULT STDMETHODCALLTYPE Skip(
351 ULONG celt) = 0;
352
353 virtual HRESULT STDMETHODCALLTYPE Reset(
354 ) = 0;
355
356 virtual HRESULT STDMETHODCALLTYPE Clone(
357 IEnumWIA_DEV_INFO **ppIEnum) = 0;
358
359 virtual HRESULT STDMETHODCALLTYPE GetCount(
360 ULONG *celt) = 0;
361
362};
363#ifdef __CRT_UUID_DECL
364__CRT_UUID_DECL(IEnumWIA_DEV_INFO, 0x5e38b83c, 0x8cf1, 0x11d1, 0xbf,0x92, 0x00,0x60,0x08,0x1e,0xd8,0x11)
365#endif
366#else
367typedef struct IEnumWIA_DEV_INFOVtbl {
368 BEGIN_INTERFACE
369
370 /*** IUnknown methods ***/
371 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
372 IEnumWIA_DEV_INFO *This,
373 REFIID riid,
374 void **ppvObject);
375
376 ULONG (STDMETHODCALLTYPE *AddRef)(
377 IEnumWIA_DEV_INFO *This);
378
379 ULONG (STDMETHODCALLTYPE *Release)(
380 IEnumWIA_DEV_INFO *This);
381
382 /*** IEnumWIA_DEV_INFO methods ***/
383 HRESULT (STDMETHODCALLTYPE *Next)(
384 IEnumWIA_DEV_INFO *This,
385 ULONG celt,
386 IWiaPropertyStorage **rgelt,
387 ULONG *pceltFetched);
388
389 HRESULT (STDMETHODCALLTYPE *Skip)(
390 IEnumWIA_DEV_INFO *This,
391 ULONG celt);
392
393 HRESULT (STDMETHODCALLTYPE *Reset)(
394 IEnumWIA_DEV_INFO *This);
395
396 HRESULT (STDMETHODCALLTYPE *Clone)(
397 IEnumWIA_DEV_INFO *This,
398 IEnumWIA_DEV_INFO **ppIEnum);
399
400 HRESULT (STDMETHODCALLTYPE *GetCount)(
401 IEnumWIA_DEV_INFO *This,
402 ULONG *celt);
403
404 END_INTERFACE
405} IEnumWIA_DEV_INFOVtbl;
406
407interface IEnumWIA_DEV_INFO {
408 CONST_VTBL IEnumWIA_DEV_INFOVtbl* lpVtbl;
409};
410
411#ifdef COBJMACROS
412#ifndef WIDL_C_INLINE_WRAPPERS
413/*** IUnknown methods ***/
414#define IEnumWIA_DEV_INFO_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
415#define IEnumWIA_DEV_INFO_AddRef(This) (This)->lpVtbl->AddRef(This)
416#define IEnumWIA_DEV_INFO_Release(This) (This)->lpVtbl->Release(This)
417/*** IEnumWIA_DEV_INFO methods ***/
418#define IEnumWIA_DEV_INFO_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
419#define IEnumWIA_DEV_INFO_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
420#define IEnumWIA_DEV_INFO_Reset(This) (This)->lpVtbl->Reset(This)
421#define IEnumWIA_DEV_INFO_Clone(This,ppIEnum) (This)->lpVtbl->Clone(This,ppIEnum)
422#define IEnumWIA_DEV_INFO_GetCount(This,celt) (This)->lpVtbl->GetCount(This,celt)
423#else
424/*** IUnknown methods ***/
425static inline HRESULT IEnumWIA_DEV_INFO_QueryInterface(IEnumWIA_DEV_INFO* This,REFIID riid,void **ppvObject) {
426 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
427}
428static inline ULONG IEnumWIA_DEV_INFO_AddRef(IEnumWIA_DEV_INFO* This) {
429 return This->lpVtbl->AddRef(This);
430}
431static inline ULONG IEnumWIA_DEV_INFO_Release(IEnumWIA_DEV_INFO* This) {
432 return This->lpVtbl->Release(This);
433}
434/*** IEnumWIA_DEV_INFO methods ***/
435static inline HRESULT IEnumWIA_DEV_INFO_Next(IEnumWIA_DEV_INFO* This,ULONG celt,IWiaPropertyStorage **rgelt,ULONG *pceltFetched) {
436 return This->lpVtbl->Next(This,celt,rgelt,pceltFetched);
437}
438static inline HRESULT IEnumWIA_DEV_INFO_Skip(IEnumWIA_DEV_INFO* This,ULONG celt) {
439 return This->lpVtbl->Skip(This,celt);
440}
441static inline HRESULT IEnumWIA_DEV_INFO_Reset(IEnumWIA_DEV_INFO* This) {
442 return This->lpVtbl->Reset(This);
443}
444static inline HRESULT IEnumWIA_DEV_INFO_Clone(IEnumWIA_DEV_INFO* This,IEnumWIA_DEV_INFO **ppIEnum) {
445 return This->lpVtbl->Clone(This,ppIEnum);
446}
447static inline HRESULT IEnumWIA_DEV_INFO_GetCount(IEnumWIA_DEV_INFO* This,ULONG *celt) {
448 return This->lpVtbl->GetCount(This,celt);
449}
450#endif
451#endif
452
453#endif
454
455
456#endif /* __IEnumWIA_DEV_INFO_INTERFACE_DEFINED__ */
457
458/*****************************************************************************
459 * IWiaPropertyStorage interface
460 */
461#ifndef __IWiaPropertyStorage_INTERFACE_DEFINED__
462#define __IWiaPropertyStorage_INTERFACE_DEFINED__
463
464DEFINE_GUID(IID_IWiaPropertyStorage, 0x98b5e8a0, 0x29cc, 0x491a, 0xaa,0xc0, 0xe6,0xdb,0x4f,0xdc,0xce,0xb6);
465#if defined(__cplusplus) && !defined(CINTERFACE)
466MIDL_INTERFACE("98b5e8a0-29cc-491a-aac0-e6db4fdcceb6")
467IWiaPropertyStorage : public IUnknown
468{
469};
470#ifdef __CRT_UUID_DECL
471__CRT_UUID_DECL(IWiaPropertyStorage, 0x98b5e8a0, 0x29cc, 0x491a, 0xaa,0xc0, 0xe6,0xdb,0x4f,0xdc,0xce,0xb6)
472#endif
473#else
474typedef struct IWiaPropertyStorageVtbl {
475 BEGIN_INTERFACE
476
477 /*** IUnknown methods ***/
478 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
479 IWiaPropertyStorage *This,
480 REFIID riid,
481 void **ppvObject);
482
483 ULONG (STDMETHODCALLTYPE *AddRef)(
484 IWiaPropertyStorage *This);
485
486 ULONG (STDMETHODCALLTYPE *Release)(
487 IWiaPropertyStorage *This);
488
489 END_INTERFACE
490} IWiaPropertyStorageVtbl;
491
492interface IWiaPropertyStorage {
493 CONST_VTBL IWiaPropertyStorageVtbl* lpVtbl;
494};
495
496#ifdef COBJMACROS
497#ifndef WIDL_C_INLINE_WRAPPERS
498/*** IUnknown methods ***/
499#define IWiaPropertyStorage_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
500#define IWiaPropertyStorage_AddRef(This) (This)->lpVtbl->AddRef(This)
501#define IWiaPropertyStorage_Release(This) (This)->lpVtbl->Release(This)
502#else
503/*** IUnknown methods ***/
504static inline HRESULT IWiaPropertyStorage_QueryInterface(IWiaPropertyStorage* This,REFIID riid,void **ppvObject) {
505 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
506}
507static inline ULONG IWiaPropertyStorage_AddRef(IWiaPropertyStorage* This) {
508 return This->lpVtbl->AddRef(This);
509}
510static inline ULONG IWiaPropertyStorage_Release(IWiaPropertyStorage* This) {
511 return This->lpVtbl->Release(This);
512}
513#endif
514#endif
515
516#endif
517
518
519#endif /* __IWiaPropertyStorage_INTERFACE_DEFINED__ */
520
521/*****************************************************************************
522 * IWiaItem interface
523 */
524#ifndef __IWiaItem_INTERFACE_DEFINED__
525#define __IWiaItem_INTERFACE_DEFINED__
526
527DEFINE_GUID(IID_IWiaItem, 0x4db1ad10, 0x3391, 0x11d2, 0x9a,0x33, 0x00,0xc0,0x4f,0xa3,0x61,0x45);
528#if defined(__cplusplus) && !defined(CINTERFACE)
529MIDL_INTERFACE("4db1ad10-3391-11d2-9a33-00c04fa36145")
530IWiaItem : public IUnknown
531{
532};
533#ifdef __CRT_UUID_DECL
534__CRT_UUID_DECL(IWiaItem, 0x4db1ad10, 0x3391, 0x11d2, 0x9a,0x33, 0x00,0xc0,0x4f,0xa3,0x61,0x45)
535#endif
536#else
537typedef struct IWiaItemVtbl {
538 BEGIN_INTERFACE
539
540 /*** IUnknown methods ***/
541 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
542 IWiaItem *This,
543 REFIID riid,
544 void **ppvObject);
545
546 ULONG (STDMETHODCALLTYPE *AddRef)(
547 IWiaItem *This);
548
549 ULONG (STDMETHODCALLTYPE *Release)(
550 IWiaItem *This);
551
552 END_INTERFACE
553} IWiaItemVtbl;
554
555interface IWiaItem {
556 CONST_VTBL IWiaItemVtbl* lpVtbl;
557};
558
559#ifdef COBJMACROS
560#ifndef WIDL_C_INLINE_WRAPPERS
561/*** IUnknown methods ***/
562#define IWiaItem_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
563#define IWiaItem_AddRef(This) (This)->lpVtbl->AddRef(This)
564#define IWiaItem_Release(This) (This)->lpVtbl->Release(This)
565#else
566/*** IUnknown methods ***/
567static inline HRESULT IWiaItem_QueryInterface(IWiaItem* This,REFIID riid,void **ppvObject) {
568 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
569}
570static inline ULONG IWiaItem_AddRef(IWiaItem* This) {
571 return This->lpVtbl->AddRef(This);
572}
573static inline ULONG IWiaItem_Release(IWiaItem* This) {
574 return This->lpVtbl->Release(This);
575}
576#endif
577#endif
578
579#endif
580
581
582#endif /* __IWiaItem_INTERFACE_DEFINED__ */
583
584/*****************************************************************************
585 * IWiaEventCallback interface
586 */
587#ifndef __IWiaEventCallback_INTERFACE_DEFINED__
588#define __IWiaEventCallback_INTERFACE_DEFINED__
589
590DEFINE_GUID(IID_IWiaEventCallback, 0xae6287b0, 0x0084, 0x11d2, 0x97,0x3b, 0x00,0xa0,0xc9,0x06,0x8f,0x2e);
591#if defined(__cplusplus) && !defined(CINTERFACE)
592MIDL_INTERFACE("ae6287b0-0084-11d2-973b-00a0c9068f2e")
593IWiaEventCallback : public IUnknown
594{
595 virtual HRESULT STDMETHODCALLTYPE ImageEventCallback(
596 const GUID *pEventGUID,
597 BSTR bstrEventDescription,
598 BSTR bstrDeviceID,
599 BSTR bstrDeviceDescription,
600 DWORD dwDeviceType,
601 BSTR bstrFullItemName,
602 ULONG *pulEventType,
603 ULONG ulReserved) = 0;
604
605};
606#ifdef __CRT_UUID_DECL
607__CRT_UUID_DECL(IWiaEventCallback, 0xae6287b0, 0x0084, 0x11d2, 0x97,0x3b, 0x00,0xa0,0xc9,0x06,0x8f,0x2e)
608#endif
609#else
610typedef struct IWiaEventCallbackVtbl {
611 BEGIN_INTERFACE
612
613 /*** IUnknown methods ***/
614 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
615 IWiaEventCallback *This,
616 REFIID riid,
617 void **ppvObject);
618
619 ULONG (STDMETHODCALLTYPE *AddRef)(
620 IWiaEventCallback *This);
621
622 ULONG (STDMETHODCALLTYPE *Release)(
623 IWiaEventCallback *This);
624
625 /*** IWiaEventCallback methods ***/
626 HRESULT (STDMETHODCALLTYPE *ImageEventCallback)(
627 IWiaEventCallback *This,
628 const GUID *pEventGUID,
629 BSTR bstrEventDescription,
630 BSTR bstrDeviceID,
631 BSTR bstrDeviceDescription,
632 DWORD dwDeviceType,
633 BSTR bstrFullItemName,
634 ULONG *pulEventType,
635 ULONG ulReserved);
636
637 END_INTERFACE
638} IWiaEventCallbackVtbl;
639
640interface IWiaEventCallback {
641 CONST_VTBL IWiaEventCallbackVtbl* lpVtbl;
642};
643
644#ifdef COBJMACROS
645#ifndef WIDL_C_INLINE_WRAPPERS
646/*** IUnknown methods ***/
647#define IWiaEventCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
648#define IWiaEventCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
649#define IWiaEventCallback_Release(This) (This)->lpVtbl->Release(This)
650/*** IWiaEventCallback methods ***/
651#define IWiaEventCallback_ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved) (This)->lpVtbl->ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved)
652#else
653/*** IUnknown methods ***/
654static inline HRESULT IWiaEventCallback_QueryInterface(IWiaEventCallback* This,REFIID riid,void **ppvObject) {
655 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
656}
657static inline ULONG IWiaEventCallback_AddRef(IWiaEventCallback* This) {
658 return This->lpVtbl->AddRef(This);
659}
660static inline ULONG IWiaEventCallback_Release(IWiaEventCallback* This) {
661 return This->lpVtbl->Release(This);
662}
663/*** IWiaEventCallback methods ***/
664static inline HRESULT IWiaEventCallback_ImageEventCallback(IWiaEventCallback* This,const GUID *pEventGUID,BSTR bstrEventDescription,BSTR bstrDeviceID,BSTR bstrDeviceDescription,DWORD dwDeviceType,BSTR bstrFullItemName,ULONG *pulEventType,ULONG ulReserved) {
665 return This->lpVtbl->ImageEventCallback(This,pEventGUID,bstrEventDescription,bstrDeviceID,bstrDeviceDescription,dwDeviceType,bstrFullItemName,pulEventType,ulReserved);
666}
667#endif
668#endif
669
670#endif
671
672
673#endif /* __IWiaEventCallback_INTERFACE_DEFINED__ */
674
675/* Begin additional prototypes for all interfaces */
676
677ULONG __RPC_USER BSTR_UserSize (ULONG *, ULONG, BSTR *);
678unsigned char * __RPC_USER BSTR_UserMarshal (ULONG *, unsigned char *, BSTR *);
679unsigned char * __RPC_USER BSTR_UserUnmarshal(ULONG *, unsigned char *, BSTR *);
680void __RPC_USER BSTR_UserFree (ULONG *, BSTR *);
681ULONG __RPC_USER HWND_UserSize (ULONG *, ULONG, HWND *);
682unsigned char * __RPC_USER HWND_UserMarshal (ULONG *, unsigned char *, HWND *);
683unsigned char * __RPC_USER HWND_UserUnmarshal(ULONG *, unsigned char *, HWND *);
684void __RPC_USER HWND_UserFree (ULONG *, HWND *);
685
686/* End additional prototypes */
687
688#ifdef __cplusplus
689}
690#endif
691
692#endif /* __wia_xp_h__ */
lib/libc/include/any-windows-any/wiadef.h-4
......@@ -12,10 +12,6 @@
1212#include <objbase.h>
1313#endif
1414
15#ifndef __wia_h__
16#error Please include in front wia.h instead.
17#endif
18
1915#ifdef __cplusplus
2016extern "C" {
2117#endif
lib/libc/include/any-windows-any/wincodec.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wincodec.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wincodec.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wincodecsdk.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wincodecsdk.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wincodecsdk.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wincon.h+13-400
......@@ -3,422 +3,35 @@
33 * This file is part of the mingw-w64 runtime package.
44 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
55 */
6
67#ifndef _WINCON_
78#define _WINCON_
89
9#include <_mingw_unicode.h>
10
1110#include <winapifamily.h>
1211
1312#ifdef __cplusplus
1413extern "C" {
1514#endif
1615
17#define CONSOLE_REAL_OUTPUT_HANDLE (LongToHandle(-2))
18#define CONSOLE_REAL_INPUT_HANDLE (LongToHandle(-3))
19
20 typedef struct _COORD {
21 SHORT X;
22 SHORT Y;
23 } COORD,*PCOORD;
24
25 typedef struct _SMALL_RECT {
26 SHORT Left;
27 SHORT Top;
28 SHORT Right;
29 SHORT Bottom;
30 } SMALL_RECT,*PSMALL_RECT;
31
32 typedef struct _KEY_EVENT_RECORD {
33 WINBOOL bKeyDown;
34 WORD wRepeatCount;
35 WORD wVirtualKeyCode;
36 WORD wVirtualScanCode;
37 union {
38 WCHAR UnicodeChar;
39 CHAR AsciiChar;
40 } uChar;
41 DWORD dwControlKeyState;
42 } KEY_EVENT_RECORD,*PKEY_EVENT_RECORD;
43
44#define RIGHT_ALT_PRESSED 0x1
45#define LEFT_ALT_PRESSED 0x2
46#define RIGHT_CTRL_PRESSED 0x4
47#define LEFT_CTRL_PRESSED 0x8
48#define SHIFT_PRESSED 0x10
49#define NUMLOCK_ON 0x20
50#define SCROLLLOCK_ON 0x40
51#define CAPSLOCK_ON 0x80
52#define ENHANCED_KEY 0x100
53#define NLS_DBCSCHAR 0x10000
54#define NLS_ALPHANUMERIC 0x0
55#define NLS_KATAKANA 0x20000
56#define NLS_HIRAGANA 0x40000
57#define NLS_ROMAN 0x400000
58#define NLS_IME_CONVERSION 0x800000
59#define ALTNUMPAD_BIT 0x4000000
60#define NLS_IME_DISABLE 0x20000000
61
62 typedef struct _MOUSE_EVENT_RECORD {
63 COORD dwMousePosition;
64 DWORD dwButtonState;
65 DWORD dwControlKeyState;
66 DWORD dwEventFlags;
67 } MOUSE_EVENT_RECORD,*PMOUSE_EVENT_RECORD;
16#include <wincontypes.h>
6817
69#define FROM_LEFT_1ST_BUTTON_PRESSED 0x1
70#define RIGHTMOST_BUTTON_PRESSED 0x2
71#define FROM_LEFT_2ND_BUTTON_PRESSED 0x4
72#define FROM_LEFT_3RD_BUTTON_PRESSED 0x8
73#define FROM_LEFT_4TH_BUTTON_PRESSED 0x10
74
75#define MOUSE_MOVED 0x1
76#define DOUBLE_CLICK 0x2
77#define MOUSE_WHEELED 0x4
78#if (_WIN32_WINNT >= 0x0600)
79#define MOUSE_HWHEELED 0x8
18#ifndef NOGDI
19#include <wingdi.h>
8020#endif
8121
82 typedef struct _WINDOW_BUFFER_SIZE_RECORD {
83 COORD dwSize;
84 } WINDOW_BUFFER_SIZE_RECORD,*PWINDOW_BUFFER_SIZE_RECORD;
85
86 typedef struct _MENU_EVENT_RECORD {
87 UINT dwCommandId;
88 } MENU_EVENT_RECORD,*PMENU_EVENT_RECORD;
89
90 typedef struct _FOCUS_EVENT_RECORD {
91 WINBOOL bSetFocus;
92 } FOCUS_EVENT_RECORD,*PFOCUS_EVENT_RECORD;
93
94 typedef struct _INPUT_RECORD {
95 WORD EventType;
96 union {
97 KEY_EVENT_RECORD KeyEvent;
98 MOUSE_EVENT_RECORD MouseEvent;
99 WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent;
100 MENU_EVENT_RECORD MenuEvent;
101 FOCUS_EVENT_RECORD FocusEvent;
102 } Event;
103 } INPUT_RECORD,*PINPUT_RECORD;
104
105#define KEY_EVENT 0x1
106#define MOUSE_EVENT 0x2
107#define WINDOW_BUFFER_SIZE_EVENT 0x4
108#define MENU_EVENT 0x8
109#define FOCUS_EVENT 0x10
110
111 typedef struct _CHAR_INFO {
112 union {
113 WCHAR UnicodeChar;
114 CHAR AsciiChar;
115 } Char;
116 WORD Attributes;
117 } CHAR_INFO,*PCHAR_INFO;
118
119#define FOREGROUND_BLUE 0x1
120#define FOREGROUND_GREEN 0x2
121#define FOREGROUND_RED 0x4
122#define FOREGROUND_INTENSITY 0x8
123#define BACKGROUND_BLUE 0x10
124#define BACKGROUND_GREEN 0x20
125#define BACKGROUND_RED 0x40
126#define BACKGROUND_INTENSITY 0x80
127#define COMMON_LVB_LEADING_BYTE 0x100
128#define COMMON_LVB_TRAILING_BYTE 0x200
129#define COMMON_LVB_GRID_HORIZONTAL 0x400
130#define COMMON_LVB_GRID_LVERTICAL 0x800
131#define COMMON_LVB_GRID_RVERTICAL 0x1000
132#define COMMON_LVB_REVERSE_VIDEO 0x4000
133#define COMMON_LVB_UNDERSCORE 0x8000
134
135#define COMMON_LVB_SBCSDBCS 0x300
136
137 typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
138 COORD dwSize;
139 COORD dwCursorPosition;
140 WORD wAttributes;
141 SMALL_RECT srWindow;
142 COORD dwMaximumWindowSize;
143 } CONSOLE_SCREEN_BUFFER_INFO,*PCONSOLE_SCREEN_BUFFER_INFO;
144
145 typedef struct _CONSOLE_CURSOR_INFO {
146 DWORD dwSize;
147 WINBOOL bVisible;
148 } CONSOLE_CURSOR_INFO,*PCONSOLE_CURSOR_INFO;
149
150 typedef struct _CONSOLE_FONT_INFO {
151 DWORD nFont;
152 COORD dwFontSize;
153 } CONSOLE_FONT_INFO,*PCONSOLE_FONT_INFO;
154
155 typedef struct _CONSOLE_SELECTION_INFO {
156 DWORD dwFlags;
157 COORD dwSelectionAnchor;
158 SMALL_RECT srSelection;
159 } CONSOLE_SELECTION_INFO,*PCONSOLE_SELECTION_INFO;
160
161#define CONSOLE_NO_SELECTION 0x0
162#define CONSOLE_SELECTION_IN_PROGRESS 0x1
163#define CONSOLE_SELECTION_NOT_EMPTY 0x2
164#define CONSOLE_MOUSE_SELECTION 0x4
165#define CONSOLE_MOUSE_DOWN 0x8
166
167 typedef WINBOOL (WINAPI *PHANDLER_ROUTINE)(DWORD CtrlType);
168
169#define CTRL_C_EVENT 0
170#define CTRL_BREAK_EVENT 1
171#define CTRL_CLOSE_EVENT 2
172
173#define CTRL_LOGOFF_EVENT 5
174#define CTRL_SHUTDOWN_EVENT 6
175
176#define ENABLE_PROCESSED_INPUT 0x1
177#define ENABLE_LINE_INPUT 0x2
178#define ENABLE_ECHO_INPUT 0x4
179#define ENABLE_WINDOW_INPUT 0x8
180#define ENABLE_MOUSE_INPUT 0x10
181#define ENABLE_INSERT_MODE 0x20
182#define ENABLE_QUICK_EDIT_MODE 0x40
183#define ENABLE_EXTENDED_FLAGS 0x80
184#define ENABLE_AUTO_POSITION 0x100
185#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x200
186
187#define ENABLE_PROCESSED_OUTPUT 0x1
188#define ENABLE_WRAP_AT_EOL_OUTPUT 0x2
189#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x4
190#define DISABLE_NEWLINE_AUTO_RETURN 0x8
191#define ENABLE_LVB_GRID_WORLDWIDE 0x10
192
193#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
194
195#define PeekConsoleInput __MINGW_NAME_AW(PeekConsoleInput)
196#define ReadConsoleInput __MINGW_NAME_AW(ReadConsoleInput)
197#define WriteConsoleInput __MINGW_NAME_AW(WriteConsoleInput)
198#define ReadConsoleOutput __MINGW_NAME_AW(ReadConsoleOutput)
199#define WriteConsoleOutput __MINGW_NAME_AW(WriteConsoleOutput)
200#define ReadConsoleOutputCharacter __MINGW_NAME_AW(ReadConsoleOutputCharacter)
201#define WriteConsoleOutputCharacter __MINGW_NAME_AW(WriteConsoleOutputCharacter)
202#define FillConsoleOutputCharacter __MINGW_NAME_AW(FillConsoleOutputCharacter)
203#define ScrollConsoleScreenBuffer __MINGW_NAME_AW(ScrollConsoleScreenBuffer)
204#define GetConsoleTitle __MINGW_NAME_AW(GetConsoleTitle)
205#define SetConsoleTitle __MINGW_NAME_AW(SetConsoleTitle)
206#define ReadConsole __MINGW_NAME_AW(ReadConsole)
207#define WriteConsole __MINGW_NAME_AW(WriteConsole)
208#define AddConsoleAlias __MINGW_NAME_AW(AddConsoleAlias)
209#define GetConsoleAlias __MINGW_NAME_AW(GetConsoleAlias)
210#define GetConsoleAliasesLength __MINGW_NAME_AW(GetConsoleAliasesLength)
211#define GetConsoleAliasExesLength __MINGW_NAME_AW(GetConsoleAliasExesLength)
212#define GetConsoleAliases __MINGW_NAME_AW(GetConsoleAliases)
213#define GetConsoleAliasExes __MINGW_NAME_AW(GetConsoleAliasExes)
214
215 WINBASEAPI WINBOOL WINAPI PeekConsoleInputA(HANDLE hConsoleInput,PINPUT_RECORD lpBuffer,DWORD nLength,LPDWORD lpNumberOfEventsRead);
216 WINBASEAPI WINBOOL WINAPI PeekConsoleInputW(HANDLE hConsoleInput,PINPUT_RECORD lpBuffer,DWORD nLength,LPDWORD lpNumberOfEventsRead);
217 WINBASEAPI WINBOOL WINAPI ReadConsoleInputA(HANDLE hConsoleInput,PINPUT_RECORD lpBuffer,DWORD nLength,LPDWORD lpNumberOfEventsRead);
218 WINBASEAPI WINBOOL WINAPI ReadConsoleInputW(HANDLE hConsoleInput,PINPUT_RECORD lpBuffer,DWORD nLength,LPDWORD lpNumberOfEventsRead);
219 WINBASEAPI WINBOOL WINAPI WriteConsoleInputA(HANDLE hConsoleInput,CONST INPUT_RECORD *lpBuffer,DWORD nLength,LPDWORD lpNumberOfEventsWritten);
220 WINBASEAPI WINBOOL WINAPI WriteConsoleInputW(HANDLE hConsoleInput,CONST INPUT_RECORD *lpBuffer,DWORD nLength,LPDWORD lpNumberOfEventsWritten);
221 WINBASEAPI WINBOOL WINAPI ReadConsoleOutputA(HANDLE hConsoleOutput,PCHAR_INFO lpBuffer,COORD dwBufferSize,COORD dwBufferCoord,PSMALL_RECT lpReadRegion);
222 WINBASEAPI WINBOOL WINAPI ReadConsoleOutputW(HANDLE hConsoleOutput,PCHAR_INFO lpBuffer,COORD dwBufferSize,COORD dwBufferCoord,PSMALL_RECT lpReadRegion);
223 WINBASEAPI WINBOOL WINAPI WriteConsoleOutputA(HANDLE hConsoleOutput,CONST CHAR_INFO *lpBuffer,COORD dwBufferSize,COORD dwBufferCoord,PSMALL_RECT lpWriteRegion);
224 WINBASEAPI WINBOOL WINAPI WriteConsoleOutputW(HANDLE hConsoleOutput,CONST CHAR_INFO *lpBuffer,COORD dwBufferSize,COORD dwBufferCoord,PSMALL_RECT lpWriteRegion);
225 WINBASEAPI WINBOOL WINAPI ReadConsoleOutputCharacterA(HANDLE hConsoleOutput,LPSTR lpCharacter,DWORD nLength,COORD dwReadCoord,LPDWORD lpNumberOfCharsRead);
226 WINBASEAPI WINBOOL WINAPI ReadConsoleOutputCharacterW(HANDLE hConsoleOutput,LPWSTR lpCharacter,DWORD nLength,COORD dwReadCoord,LPDWORD lpNumberOfCharsRead);
227 WINBASEAPI WINBOOL WINAPI ReadConsoleOutputAttribute(HANDLE hConsoleOutput,LPWORD lpAttribute,DWORD nLength,COORD dwReadCoord,LPDWORD lpNumberOfAttrsRead);
228 WINBASEAPI WINBOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput,LPCSTR lpCharacter,DWORD nLength,COORD dwWriteCoord,LPDWORD lpNumberOfCharsWritten);
229 WINBASEAPI WINBOOL WINAPI WriteConsoleOutputCharacterW(HANDLE hConsoleOutput,LPCWSTR lpCharacter,DWORD nLength,COORD dwWriteCoord,LPDWORD lpNumberOfCharsWritten);
230 WINBASEAPI WINBOOL WINAPI WriteConsoleOutputAttribute(HANDLE hConsoleOutput,CONST WORD *lpAttribute,DWORD nLength,COORD dwWriteCoord,LPDWORD lpNumberOfAttrsWritten);
231 WINBASEAPI WINBOOL WINAPI FillConsoleOutputCharacterA(HANDLE hConsoleOutput,CHAR cCharacter,DWORD nLength,COORD dwWriteCoord,LPDWORD lpNumberOfCharsWritten);
232 WINBASEAPI WINBOOL WINAPI FillConsoleOutputCharacterW(HANDLE hConsoleOutput,WCHAR cCharacter,DWORD nLength,COORD dwWriteCoord,LPDWORD lpNumberOfCharsWritten);
233 WINBASEAPI WINBOOL WINAPI FillConsoleOutputAttribute(HANDLE hConsoleOutput,WORD wAttribute,DWORD nLength,COORD dwWriteCoord,LPDWORD lpNumberOfAttrsWritten);
234 WINBASEAPI WINBOOL WINAPI GetConsoleMode(HANDLE hConsoleHandle,LPDWORD lpMode);
235 WINBASEAPI WINBOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE hConsoleInput,LPDWORD lpNumberOfEvents);
236 WINBASEAPI WINBOOL WINAPI GetConsoleScreenBufferInfo(HANDLE hConsoleOutput,PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
237 WINBASEAPI COORD WINAPI GetLargestConsoleWindowSize(HANDLE hConsoleOutput);
238 WINBASEAPI WINBOOL WINAPI GetConsoleCursorInfo(HANDLE hConsoleOutput,PCONSOLE_CURSOR_INFO lpConsoleCursorInfo);
239 WINBASEAPI WINBOOL WINAPI GetCurrentConsoleFont(HANDLE hConsoleOutput,WINBOOL bMaximumWindow,PCONSOLE_FONT_INFO lpConsoleCurrentFont);
240 WINBASEAPI COORD WINAPI GetConsoleFontSize(HANDLE hConsoleOutput,DWORD nFont);
241 WINBASEAPI WINBOOL WINAPI GetConsoleSelectionInfo(PCONSOLE_SELECTION_INFO lpConsoleSelectionInfo);
242 WINBASEAPI WINBOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD lpNumberOfMouseButtons);
243 WINBASEAPI WINBOOL WINAPI SetConsoleMode(HANDLE hConsoleHandle,DWORD dwMode);
244 WINBASEAPI WINBOOL WINAPI SetConsoleActiveScreenBuffer(HANDLE hConsoleOutput);
245 WINBASEAPI WINBOOL WINAPI FlushConsoleInputBuffer(HANDLE hConsoleInput);
246 WINBASEAPI WINBOOL WINAPI SetConsoleScreenBufferSize(HANDLE hConsoleOutput,COORD dwSize);
247 WINBASEAPI WINBOOL WINAPI SetConsoleCursorPosition(HANDLE hConsoleOutput,COORD dwCursorPosition);
248 WINBASEAPI WINBOOL WINAPI SetConsoleCursorInfo(HANDLE hConsoleOutput,CONST CONSOLE_CURSOR_INFO *lpConsoleCursorInfo);
249 WINBASEAPI WINBOOL WINAPI ScrollConsoleScreenBufferA(HANDLE hConsoleOutput,CONST SMALL_RECT *lpScrollRectangle,CONST SMALL_RECT *lpClipRectangle,COORD dwDestinationOrigin,CONST CHAR_INFO *lpFill);
250 WINBASEAPI WINBOOL WINAPI ScrollConsoleScreenBufferW(HANDLE hConsoleOutput,CONST SMALL_RECT *lpScrollRectangle,CONST SMALL_RECT *lpClipRectangle,COORD dwDestinationOrigin,CONST CHAR_INFO *lpFill);
251 WINBASEAPI WINBOOL WINAPI SetConsoleWindowInfo(HANDLE hConsoleOutput,WINBOOL bAbsolute,CONST SMALL_RECT *lpConsoleWindow);
252 WINBASEAPI WINBOOL WINAPI SetConsoleTextAttribute(HANDLE hConsoleOutput,WORD wAttributes);
253 WINBASEAPI WINBOOL WINAPI SetConsoleCtrlHandler(PHANDLER_ROUTINE HandlerRoutine,WINBOOL Add);
254 WINBASEAPI WINBOOL WINAPI GenerateConsoleCtrlEvent(DWORD dwCtrlEvent,DWORD dwProcessGroupId);
255 WINBASEAPI WINBOOL WINAPI AllocConsole(VOID);
256 WINBASEAPI WINBOOL WINAPI FreeConsole(VOID);
257 WINBASEAPI WINBOOL WINAPI AttachConsole(DWORD dwProcessId);
258
259#define ATTACH_PARENT_PROCESS ((DWORD)-1)
22#ifndef NOAPISET
23#include <consoleapi.h>
24#include <consoleapi2.h>
25#include <consoleapi3.h>
26#endif
26027
261 WINBASEAPI DWORD WINAPI GetConsoleTitleA(LPSTR lpConsoleTitle,DWORD nSize);
262 WINBASEAPI DWORD WINAPI GetConsoleTitleW(LPWSTR lpConsoleTitle,DWORD nSize);
263 WINBASEAPI WINBOOL WINAPI SetConsoleTitleA(LPCSTR lpConsoleTitle);
264 WINBASEAPI WINBOOL WINAPI SetConsoleTitleW(LPCWSTR lpConsoleTitle);
265 WINBASEAPI WINBOOL WINAPI ReadConsoleA(HANDLE hConsoleInput,LPVOID lpBuffer,DWORD nNumberOfCharsToRead,LPDWORD lpNumberOfCharsRead,LPVOID lpReserved);
266 WINBASEAPI WINBOOL WINAPI ReadConsoleW(HANDLE hConsoleInput,LPVOID lpBuffer,DWORD nNumberOfCharsToRead,LPDWORD lpNumberOfCharsRead,LPVOID lpReserved);
267 WINBASEAPI WINBOOL WINAPI WriteConsoleA(HANDLE hConsoleOutput,CONST VOID *lpBuffer,DWORD nNumberOfCharsToWrite,LPDWORD lpNumberOfCharsWritten,LPVOID lpReserved);
268 WINBASEAPI WINBOOL WINAPI WriteConsoleW(HANDLE hConsoleOutput,CONST VOID *lpBuffer,DWORD nNumberOfCharsToWrite,LPDWORD lpNumberOfCharsWritten,LPVOID lpReserved);
28#define CONSOLE_REAL_OUTPUT_HANDLE (LongToHandle(-2))
29#define CONSOLE_REAL_INPUT_HANDLE (LongToHandle(-3))
26930
27031#define CONSOLE_TEXTMODE_BUFFER 1
27132
272 WINBASEAPI HANDLE WINAPI CreateConsoleScreenBuffer(DWORD dwDesiredAccess,DWORD dwShareMode,CONST SECURITY_ATTRIBUTES *lpSecurityAttributes,DWORD dwFlags,LPVOID lpScreenBufferData);
273 WINBASEAPI UINT WINAPI GetConsoleCP(VOID);
274 WINBASEAPI WINBOOL WINAPI SetConsoleCP(UINT wCodePageID);
275 WINBASEAPI UINT WINAPI GetConsoleOutputCP(VOID);
276 WINBASEAPI WINBOOL WINAPI SetConsoleOutputCP(UINT wCodePageID);
277
278#define CONSOLE_FULLSCREEN 1
279#define CONSOLE_FULLSCREEN_HARDWARE 2
280 WINBASEAPI WINBOOL WINAPI GetConsoleDisplayMode(LPDWORD lpModeFlags);
281
282#define CONSOLE_FULLSCREEN_MODE 1
283#define CONSOLE_WINDOWED_MODE 2
284 WINBASEAPI WINBOOL WINAPI SetConsoleDisplayMode(HANDLE hConsoleOutput, DWORD dwFlags, PCOORD lpNewScreenBufferDimensions);
285
286 WINBASEAPI HWND WINAPI GetConsoleWindow(VOID);
287 WINBASEAPI DWORD WINAPI GetConsoleProcessList(LPDWORD lpdwProcessList,DWORD dwProcessCount);
288 WINBASEAPI WINBOOL WINAPI AddConsoleAliasA(LPSTR Source,LPSTR Target,LPSTR ExeName);
289 WINBASEAPI WINBOOL WINAPI AddConsoleAliasW(LPWSTR Source,LPWSTR Target,LPWSTR ExeName);
290 WINBASEAPI DWORD WINAPI GetConsoleAliasA(LPSTR Source,LPSTR TargetBuffer,DWORD TargetBufferLength,LPSTR ExeName);
291 WINBASEAPI DWORD WINAPI GetConsoleAliasW(LPWSTR Source,LPWSTR TargetBuffer,DWORD TargetBufferLength,LPWSTR ExeName);
292 WINBASEAPI DWORD WINAPI GetConsoleAliasesLengthA(LPSTR ExeName);
293 WINBASEAPI DWORD WINAPI GetConsoleAliasesLengthW(LPWSTR ExeName);
294 WINBASEAPI DWORD WINAPI GetConsoleAliasExesLengthA(VOID);
295 WINBASEAPI DWORD WINAPI GetConsoleAliasExesLengthW(VOID);
296 WINBASEAPI DWORD WINAPI GetConsoleAliasesA(LPSTR AliasBuffer,DWORD AliasBufferLength,LPSTR ExeName);
297 WINBASEAPI DWORD WINAPI GetConsoleAliasesW(LPWSTR AliasBuffer,DWORD AliasBufferLength,LPWSTR ExeName);
298 WINBASEAPI DWORD WINAPI GetConsoleAliasExesA(LPSTR ExeNameBuffer,DWORD ExeNameBufferLength);
299 WINBASEAPI DWORD WINAPI GetConsoleAliasExesW(LPWSTR ExeNameBuffer,DWORD ExeNameBufferLength);
300
301WINBASEAPI VOID WINAPI ExpungeConsoleCommandHistoryA(LPSTR ExeName);
302WINBASEAPI VOID WINAPI ExpungeConsoleCommandHistoryW(LPWSTR ExeName);
303#define ExpungeConsoleCommandHistory __MINGW_NAME_AW(ExpungeConsoleCommandHistory)
304
305WINBASEAPI WINBOOL WINAPI SetConsoleNumberOfCommandsA(DWORD Number, LPSTR ExeName);
306WINBASEAPI WINBOOL WINAPI SetConsoleNumberOfCommandsW(DWORD Number, LPWSTR ExeName);
307#define SetConsoleNumberOfCommands __MINGW_NAME_AW(SetConsoleNumberOfCommands)
308
309WINBASEAPI DWORD WINAPI GetConsoleCommandHistoryLengthA(LPSTR ExeName);
310WINBASEAPI DWORD WINAPI GetConsoleCommandHistoryLengthW(LPWSTR ExeName);
311#define GetConsoleCommandHistoryLength __MINGW_NAME_AW(GetConsoleCommandHistoryLength)
312
313WINBASEAPI DWORD WINAPI GetConsoleCommandHistoryA(LPSTR Commands, DWORD CommandBufferLength, LPSTR ExeName);
314WINBASEAPI DWORD WINAPI GetConsoleCommandHistoryW(LPWSTR Commands, DWORD CommandBufferLength, LPWSTR ExeName);
315#define GetConsoleCommandHistory __MINGW_NAME_AW(GetConsoleCommandHistory)
316
317#ifndef NOGDI
318
319typedef struct _CONSOLE_FONT_INFOEX {
320 ULONG cbSize;
321 DWORD nFont;
322 COORD dwFontSize;
323 UINT FontFamily;
324 UINT FontWeight;
325 WCHAR FaceName[LF_FACESIZE];
326} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX;
327
328WINBASEAPI WINBOOL WINAPI GetCurrentConsoleFontEx(
329 HANDLE hConsoleOutput,
330 WINBOOL bMaximumWindow,
331 PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx
332);
333
334WINBASEAPI WINBOOL WINAPI SetCurrentConsoleFontEx(
335 HANDLE hConsoleOutput,
336 WINBOOL bMaximumWindow,
337 PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx
338);
339
340#endif /* NOGDI */
341
342#define HISTORY_NO_DUP_FLAG 0x1
343
344typedef struct _CONSOLE_HISTORY_INFO {
345 UINT cbSize;
346 UINT HistoryBufferSize;
347 UINT NumberOfHistoryBuffers;
348 DWORD dwFlags;
349} CONSOLE_HISTORY_INFO, *PCONSOLE_HISTORY_INFO;
350
351typedef struct _CONSOLE_READCONSOLE_CONTROL {
352 ULONG nLength;
353 ULONG nInitialChars;
354 ULONG dwCtrlWakeupMask;
355 ULONG dwControlKeyState;
356} CONSOLE_READCONSOLE_CONTROL, *PCONSOLE_READCONSOLE_CONTROL;
357
358typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
359 ULONG cbSize;
360 COORD dwSize;
361 COORD dwCursorPosition;
362 WORD wAttributes;
363 SMALL_RECT srWindow;
364 COORD dwMaximumWindowSize;
365 WORD wPopupAttributes;
366 WINBOOL bFullscreenSupported;
367 COLORREF ColorTable[16];
368} CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX;
369
370WINBOOL WINAPI GetConsoleHistoryInfo(
371 PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo
372);
373
374#if (_WIN32_WINNT >= 0x0600)
375#define GetConsoleOriginalTitle __MINGW_NAME_AW(GetConsoleOriginalTitle)
376
377WINBASEAPI DWORD WINAPI GetConsoleOriginalTitleA(
378 LPSTR lpConsoleTitle,
379 DWORD nSize
380);
381
382WINBASEAPI DWORD WINAPI GetConsoleOriginalTitleW(
383 LPWSTR lpConsoleTitle,
384 DWORD nSize
385);
386#endif /* (_WIN32_WINNT >= 0x0600) */
387
388WINBASEAPI WINBOOL WINAPI GetConsoleScreenBufferInfoEx(
389 HANDLE hConsoleOutput,
390 PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx
391);
392
393WINBASEAPI WINBOOL WINAPI SetConsoleHistoryInfo(
394 PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo
395);
396
397WINBASEAPI WINBOOL WINAPI SetConsoleScreenBufferInfoEx(
398 HANDLE hConsoleOutput,
399 PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx
400);
401
402#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
403
404#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
405
406#if (NTDDI_VERSION >= 0x0A000006)
407
408/* CreatePseudoConsole Flags */
409#define PSEUDOCONSOLE_INHERIT_CURSOR 1
410
411typedef VOID* HPCON;
412
413WINBASEAPI HRESULT WINAPI CreatePseudoConsole(COORD size, HANDLE hInput, HANDLE hOutput, DWORD dwFlags, HPCON* phPC);
414WINBASEAPI HRESULT WINAPI ResizePseudoConsole(HPCON hPC, COORD size);
415WINBASEAPI VOID WINAPI ClosePseudoConsole(HPCON hPC);
416
417#endif /* NTDDI_WIN10_RS5 */
418
419#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
420
42133#ifdef __cplusplus
42234}
42335#endif
424#endif
36
37#endif /* _WINCON_ */
lib/libc/include/any-windows-any/wincontypes.h created+130
......@@ -0,0 +1,130 @@
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 _WINCONTYPES_
8#define _WINCONTYPES_
9
10#include <minwindef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
17
18typedef struct _COORD {
19 SHORT X;
20 SHORT Y;
21} COORD, *PCOORD;
22
23typedef struct _SMALL_RECT {
24 SHORT Left;
25 SHORT Top;
26 SHORT Right;
27 SHORT Bottom;
28} SMALL_RECT, *PSMALL_RECT;
29
30typedef struct _KEY_EVENT_RECORD {
31 WINBOOL bKeyDown;
32 WORD wRepeatCount;
33 WORD wVirtualKeyCode;
34 WORD wVirtualScanCode;
35 union {
36 WCHAR UnicodeChar;
37 CHAR AsciiChar;
38 } uChar;
39 DWORD dwControlKeyState;
40} KEY_EVENT_RECORD, *PKEY_EVENT_RECORD;
41
42#define RIGHT_ALT_PRESSED 0x0001
43#define LEFT_ALT_PRESSED 0x0002
44#define RIGHT_CTRL_PRESSED 0x0004
45#define LEFT_CTRL_PRESSED 0x0008
46#define SHIFT_PRESSED 0x0010
47#define NUMLOCK_ON 0x0020
48#define SCROLLLOCK_ON 0x0040
49#define CAPSLOCK_ON 0x0080
50#define ENHANCED_KEY 0x0100
51#define NLS_DBCSCHAR 0x00010000
52#define NLS_ALPHANUMERIC 0x00000000
53#define NLS_KATAKANA 0x00020000
54#define NLS_HIRAGANA 0x00040000
55#define NLS_ROMAN 0x00400000
56#define NLS_IME_CONVERSION 0x00800000
57#define ALTNUMPAD_BIT 0x04000000
58#define NLS_IME_DISABLE 0x20000000
59
60typedef struct _MOUSE_EVENT_RECORD {
61 COORD dwMousePosition;
62 DWORD dwButtonState;
63 DWORD dwControlKeyState;
64 DWORD dwEventFlags;
65} MOUSE_EVENT_RECORD, *PMOUSE_EVENT_RECORD;
66
67#define FROM_LEFT_1ST_BUTTON_PRESSED 0x0001
68#define RIGHTMOST_BUTTON_PRESSED 0x0002
69#define FROM_LEFT_2ND_BUTTON_PRESSED 0x0004
70#define FROM_LEFT_3RD_BUTTON_PRESSED 0x0008
71#define FROM_LEFT_4TH_BUTTON_PRESSED 0x0010
72
73#define MOUSE_MOVED 0x0001
74#define DOUBLE_CLICK 0x0002
75#define MOUSE_WHEELED 0x0004
76#if (_WIN32_WINNT >= 0x0600)
77#define MOUSE_HWHEELED 0x0008
78#endif /* _WIN32_WINNT >= 0x0600 */
79
80typedef struct _WINDOW_BUFFER_SIZE_RECORD {
81 COORD dwSize;
82} WINDOW_BUFFER_SIZE_RECORD, *PWINDOW_BUFFER_SIZE_RECORD;
83
84typedef struct _MENU_EVENT_RECORD {
85 UINT dwCommandId;
86} MENU_EVENT_RECORD, *PMENU_EVENT_RECORD;
87
88typedef struct _FOCUS_EVENT_RECORD {
89 WINBOOL bSetFocus;
90} FOCUS_EVENT_RECORD, *PFOCUS_EVENT_RECORD;
91
92typedef struct _INPUT_RECORD {
93 WORD EventType;
94 union {
95 KEY_EVENT_RECORD KeyEvent;
96 MOUSE_EVENT_RECORD MouseEvent;
97 WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent;
98 MENU_EVENT_RECORD MenuEvent;
99 FOCUS_EVENT_RECORD FocusEvent;
100 } Event;
101} INPUT_RECORD, *PINPUT_RECORD;
102
103#define KEY_EVENT 0x0001
104#define MOUSE_EVENT 0x0002
105#define WINDOW_BUFFER_SIZE_EVENT 0x0004
106#define MENU_EVENT 0x0008
107#define FOCUS_EVENT 0x0010
108
109typedef struct _CHAR_INFO {
110 union {
111 WCHAR UnicodeChar;
112 CHAR AsciiChar;
113 } Char;
114 WORD Attributes;
115} CHAR_INFO, *PCHAR_INFO;
116
117typedef struct _CONSOLE_FONT_INFO {
118 DWORD nFont;
119 COORD dwFontSize;
120} CONSOLE_FONT_INFO, *PCONSOLE_FONT_INFO;
121
122typedef VOID *HPCON;
123
124#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif /* _WINCONTYPES_ */
lib/libc/include/any-windows-any/winnt.h+360-150
......@@ -48,6 +48,13 @@ extern "C" {
4848#endif
4949#endif /* _ARM64_ */
5050
51#if defined(__arm64ec__) && \
52 !(defined(_X86_) || defined(__i386__) || defined(_IA64_) || defined (__arm__) || defined(__aarch64__))
53#if !defined(_ARM64EC_)
54#define _ARM64EC_
55#endif
56#endif /* _ARM64EC_ */
57
5158#if defined(__ia64__) && \
5259 !(defined(_X86_) || defined(__x86_64) || defined(_AMD64_) || defined (__arm__) || defined(__aarch64__))
5360#if !defined(_IA64_)
......@@ -1582,7 +1589,7 @@ __MINGW_CXX14_CONSTEXPR inline ENUMTYPE& operator ^= (ENUMTYPE& a, ENUMTYPE b) {
15821589
15831590#ifdef _AMD64_
15841591
1585#if defined(__x86_64) && !defined(RC_INVOKED)
1592#if defined(__x86_64) && !defined(__arm64ec__) && !defined(RC_INVOKED)
15861593
15871594#ifdef __cplusplus
15881595 extern "C" {
......@@ -1782,7 +1789,7 @@ extern "C" {
17821789#ifdef __cplusplus
17831790 }
17841791#endif
1785#endif /* defined(__x86_64) && !defined(RC_INVOKED) */
1792#endif /* defined(__x86_64) && !defined(__arm64ec__) && !defined(RC_INVOKED) */
17861793
17871794#define EXCEPTION_READ_FAULT 0
17881795#define EXCEPTION_WRITE_FAULT 1
......@@ -2084,24 +2091,6 @@ extern "C" {
20842091#define UNW_FLAG_EHANDLER 0x1
20852092#define UNW_FLAG_UHANDLER 0x2
20862093
2087#define UNWIND_HISTORY_TABLE_SIZE 12
2088
2089 typedef struct _UNWIND_HISTORY_TABLE_ENTRY {
2090 DWORD ImageBase;
2091 PRUNTIME_FUNCTION FunctionEntry;
2092 } UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY;
2093
2094 typedef struct _UNWIND_HISTORY_TABLE {
2095 DWORD Count;
2096 BYTE LocalHint;
2097 BYTE GlobalHint;
2098 BYTE Search;
2099 BYTE Once;
2100 DWORD LowAddress;
2101 DWORD HighAddress;
2102 UNWIND_HISTORY_TABLE_ENTRY Entry[UNWIND_HISTORY_TABLE_SIZE];
2103 } UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE;
2104
21052094 struct _DISPATCHER_CONTEXT;
21062095 typedef struct _DISPATCHER_CONTEXT DISPATCHER_CONTEXT;
21072096 typedef struct _DISPATCHER_CONTEXT *PDISPATCHER_CONTEXT;
......@@ -2115,7 +2104,7 @@ extern "C" {
21152104 PCONTEXT ContextRecord;
21162105 PEXCEPTION_ROUTINE LanguageHandler;
21172106 PVOID HandlerData;
2118 PUNWIND_HISTORY_TABLE HistoryTable;
2107 struct _UNWIND_HISTORY_TABLE *HistoryTable;
21192108 ULONG ScopeIndex;
21202109 BOOLEAN ControlPcIsUnwound;
21212110 PBYTE NonVolatileRegisters;
......@@ -2147,9 +2136,9 @@ extern "C" {
21472136#endif /* _ARM_ */
21482137
21492138
2150#ifdef _ARM64_
2139#if defined(_ARM64_) || defined(_ARM64EC_)
21512140
2152#if defined(__aarch64__) && !defined(RC_INVOKED)
2141#if (defined(__aarch64__) || defined(__arm64ec__)) && !defined(RC_INVOKED)
21532142
21542143#ifdef __cplusplus
21552144 extern "C" {
......@@ -2219,33 +2208,51 @@ extern "C" {
22192208#ifdef __cplusplus
22202209 }
22212210#endif
2222#endif /* defined(__aarch64__) && !defined(RC_INVOKED) */
2211#endif /* (defined(__aarch64__) || defined(__arm64ec__)) && !defined(RC_INVOKED) */
22232212
22242213#define EXCEPTION_READ_FAULT 0
22252214#define EXCEPTION_WRITE_FAULT 1
22262215#define EXCEPTION_EXECUTE_FAULT 8
2216#endif /* defined(_ARM64_) || defined(_ARM64EC_) */
22272217
22282218#if !defined(RC_INVOKED)
22292219
2230#define CONTEXT_ARM64 0x400000
2231#define CONTEXT_CONTROL (CONTEXT_ARM64 | 0x00000001)
2232#define CONTEXT_INTEGER (CONTEXT_ARM64 | 0x00000002)
2233#define CONTEXT_FLOATING_POINT (CONTEXT_ARM64 | 0x00000004)
2234#define CONTEXT_DEBUG_REGISTERS (CONTEXT_ARM64 | 0x00000008)
2220#define CONTEXT_ARM64 0x400000
2221#define CONTEXT_ARM64_CONTROL (CONTEXT_ARM64 | 0x00000001)
2222#define CONTEXT_ARM64_INTEGER (CONTEXT_ARM64 | 0x00000002)
2223#define CONTEXT_ARM64_FLOATING_POINT (CONTEXT_ARM64 | 0x00000004)
2224#define CONTEXT_ARM64_DEBUG_REGISTERS (CONTEXT_ARM64 | 0x00000008)
2225#define CONTEXT_ARM64_X18 (CONTEXT_ARM64 | 0x00000010)
22352226
2236#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER)
2237#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_FLOATING_POINT | CONTEXT_DEBUG_REGISTERS)
22382227
2239#define EXCEPTION_READ_FAULT 0
2240#define EXCEPTION_WRITE_FAULT 1
2241#define EXCEPTION_EXECUTE_FAULT 8
2228#define CONTEXT_ARM64_FULL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT)
2229#define CONTEXT_ARM64_ALL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT | CONTEXT_ARM64_DEBUG_REGISTERS | CONTEXT_ARM64_X18)
22422230
2243#define ARM64_MAX_BREAKPOINTS 8
2244#define ARM64_MAX_WATCHPOINTS 2
2231#define CONTEXT_ARM64_UNWOUND_TO_CALL 0x20000000
2232
2233#ifdef _ARM64_
2234
2235#define CONTEXT_CONTROL CONTEXT_ARM64_CONTROL
2236#define CONTEXT_INTEGER CONTEXT_ARM64_INTEGER
2237#define CONTEXT_FLOATING_POINT CONTEXT_ARM64_FLOATING_POINT
2238#define CONTEXT_DEBUG_REGISTERS CONTEXT_ARM64_DEBUG_REGISTERS
2239#define CONTEXT_FULL CONTEXT_ARM64_FULL
2240#define CONTEXT_ALL CONTEXT_ARM64_ALL
2241#define CONTEXT_UNWOUND_TO_CALL CONTEXT_ARM64_UNWOUND_TO_CALL
2242
2243#define CONTEXT_EXCEPTION_ACTIVE 0x08000000
2244#define CONTEXT_SERVICE_ACTIVE 0x10000000
2245#define CONTEXT_EXCEPTION_REQUEST 0x40000000
2246#define CONTEXT_EXCEPTION_REPORTING 0x80000000
2247
2248#endif /* _ARM64_ */
22452249
22462250#endif /* !defined(RC_INVOKED) */
22472251
2248 typedef union _NEON128 {
2252#define ARM64_MAX_BREAKPOINTS 8
2253#define ARM64_MAX_WATCHPOINTS 2
2254
2255 typedef union _ARM64_NT_NEON128 {
22492256 struct
22502257 {
22512258 ULONGLONG Low;
......@@ -2255,9 +2262,19 @@ extern "C" {
22552262 float S[4];
22562263 WORD H[8];
22572264 BYTE B[16];
2258 } NEON128, *PNEON128;
2265 } ARM64_NT_NEON128, *PARM64_NT_NEON128;
22592266
2260 typedef struct DECLSPEC_ALIGN(16) _CONTEXT {
2267#ifdef _ARM64_
2268 typedef ARM64_NT_NEON128 NEON128, *PNEON128;
2269#endif
2270
2271 typedef struct DECLSPEC_ALIGN(16)
2272#ifdef _ARM64_
2273 _CONTEXT
2274#else
2275 _ARM64_NT_CONTEXT
2276#endif
2277 {
22612278 ULONG ContextFlags; /* 000 */
22622279 /* CONTEXT_INTEGER */
22632280 ULONG Cpsr; /* 004 */
......@@ -2303,7 +2320,7 @@ extern "C" {
23032320 DWORD64 Sp; /* 100 */
23042321 DWORD64 Pc; /* 108 */
23052322 /* CONTEXT_FLOATING_POINT */
2306 NEON128 V[32]; /* 110 */
2323 ARM64_NT_NEON128 V[32]; /* 110 */
23072324 DWORD Fpcr; /* 310 */
23082325 DWORD Fpsr; /* 314 */
23092326 /* CONTEXT_DEBUG_REGISTERS */
......@@ -2311,53 +2328,152 @@ extern "C" {
23112328 DWORD64 Bvr[ARM64_MAX_BREAKPOINTS]; /* 338 */
23122329 DWORD Wcr[ARM64_MAX_WATCHPOINTS]; /* 378 */
23132330 DWORD64 Wvr[ARM64_MAX_WATCHPOINTS]; /* 380 */
2314 } CONTEXT, *PCONTEXT;
2331 } ARM64_NT_CONTEXT, *PARM64_NT_CONTEXT;
2332
2333#ifdef _ARM64_
2334 typedef ARM64_NT_CONTEXT CONTEXT, *PCONTEXT;
2335#endif
2336
23152337
2338 typedef struct DECLSPEC_ALIGN(16) _ARM64EC_NT_CONTEXT
2339 {
2340 union
2341 {
2342 struct
2343 {
2344 DWORD64 AMD64_P1Home; /* 000 */
2345 DWORD64 AMD64_P2Home; /* 008 */
2346 DWORD64 AMD64_P3Home; /* 010 */
2347 DWORD64 AMD64_P4Home; /* 018 */
2348 DWORD64 AMD64_P5Home; /* 020 */
2349 DWORD64 AMD64_P6Home; /* 028 */
2350 DWORD ContextFlags; /* 030 */
2351 DWORD AMD64_MxCsr_copy; /* 034 */
2352 WORD AMD64_SegCs; /* 038 */
2353 WORD AMD64_SegDs; /* 03a */
2354 WORD AMD64_SegEs; /* 03c */
2355 WORD AMD64_SegFs; /* 03e */
2356 WORD AMD64_SegGs; /* 040 */
2357 WORD AMD64_SegSs; /* 042 */
2358 DWORD AMD64_EFlags; /* 044 */
2359 DWORD64 AMD64_Dr0; /* 048 */
2360 DWORD64 AMD64_Dr1; /* 050 */
2361 DWORD64 AMD64_Dr2; /* 058 */
2362 DWORD64 AMD64_Dr3; /* 060 */
2363 DWORD64 AMD64_Dr6; /* 068 */
2364 DWORD64 AMD64_Dr7; /* 070 */
2365 DWORD64 X8; /* 078 (Rax) */
2366 DWORD64 X0; /* 080 (Rcx) */
2367 DWORD64 X1; /* 088 (Rdx) */
2368 DWORD64 X27; /* 090 (Rbx) */
2369 DWORD64 Sp; /* 098 (Rsp) */
2370 DWORD64 Fp; /* 0a0 (Rbp) */
2371 DWORD64 X25; /* 0a8 (Rsi) */
2372 DWORD64 X26; /* 0b0 (Rdi) */
2373 DWORD64 X2; /* 0b8 (R8) */
2374 DWORD64 X3; /* 0c0 (R9) */
2375 DWORD64 X4; /* 0c8 (R10) */
2376 DWORD64 X5; /* 0d0 (R11) */
2377 DWORD64 X19; /* 0d8 (R12) */
2378 DWORD64 X20; /* 0e0 (R13) */
2379 DWORD64 X21; /* 0e8 (R14) */
2380 DWORD64 X22; /* 0f0 (R15) */
2381 DWORD64 Pc; /* 0f8 (Rip) */
2382 struct
2383 {
2384 WORD AMD64_ControlWord; /* 100 */
2385 WORD AMD64_StatusWord; /* 102 */
2386 BYTE AMD64_TagWord; /* 104 */
2387 BYTE AMD64_Reserved1; /* 105 */
2388 WORD AMD64_ErrorOpcode; /* 106 */
2389 DWORD AMD64_ErrorOffset; /* 108 */
2390 WORD AMD64_ErrorSelector; /* 10c */
2391 WORD AMD64_Reserved2; /* 10e */
2392 DWORD AMD64_DataOffset; /* 110 */
2393 WORD AMD64_DataSelector; /* 114 */
2394 WORD AMD64_Reserved3; /* 116 */
2395 DWORD AMD64_MxCsr; /* 118 */
2396 DWORD AMD64_MxCsr_Mask; /* 11c */
2397 DWORD64 Lr; /* 120 (FloatRegisters[0]) */
2398 WORD X16_0; /* 128 */
2399 WORD AMD64_St0_Reserved1; /* 12a */
2400 DWORD AMD64_St0_Reserved2; /* 12c */
2401 DWORD64 X6; /* 130 (FloatRegisters[1]) */
2402 WORD X16_1; /* 138 */
2403 WORD AMD64_St1_Reserved1; /* 13a */
2404 DWORD AMD64_St1_Reserved2; /* 13c */
2405 DWORD64 X7; /* 140 (FloatRegisters[2]) */
2406 WORD X16_2; /* 148 */
2407 WORD AMD64_St2_Reserved1; /* 14a */
2408 DWORD AMD64_St2_Reserved2; /* 14c */
2409 DWORD64 X9; /* 150 (FloatRegisters[3]) */
2410 WORD X16_3; /* 158 */
2411 WORD AMD64_St3_Reserved1; /* 15a */
2412 DWORD AMD64_St3_Reserved2; /* 15c */
2413 DWORD64 X10; /* 160 (FloatRegisters[4]) */
2414 WORD X17_0; /* 168 */
2415 WORD AMD64_St4_Reserved1; /* 16a */
2416 DWORD AMD64_St4_Reserved2; /* 16c */
2417 DWORD64 X11; /* 170 (FloatRegisters[5]) */
2418 WORD X17_1; /* 178 */
2419 WORD AMD64_St5_Reserved1; /* 17a */
2420 DWORD AMD64_St5_Reserved2; /* 17c */
2421 DWORD64 X12; /* 180 (FloatRegisters[6]) */
2422 WORD X17_2; /* 188 */
2423 WORD AMD64_St6_Reserved1; /* 18a */
2424 DWORD AMD64_St6_Reserved2; /* 18c */
2425 DWORD64 X15; /* 190 (FloatRegisters[7]) */
2426 WORD X17_3; /* 198 */
2427 WORD AMD64_St7_Reserved1; /* 19a */
2428 DWORD AMD64_St7_Reserved2; /* 19c */
2429 ARM64_NT_NEON128 V[16]; /* 1a0 (XmmRegisters) */
2430 BYTE AMD64_XSAVE_FORMAT_Reserved4[96]; /* 2a0 */
2431 } DUMMYSTRUCTNAME;
2432 ARM64_NT_NEON128 AMD64_VectorRegister[26]; /* 300 */
2433 DWORD64 AMD64_VectorControl; /* 4a0 */
2434 DWORD64 AMD64_DebugControl; /* 4a8 */
2435 DWORD64 AMD64_LastBranchToRip; /* 4b0 */
2436 DWORD64 AMD64_LastBranchFromRip; /* 4b8 */
2437 DWORD64 AMD64_LastExceptionToRip; /* 4c0 */
2438 DWORD64 AMD64_LastExceptionFromRip; /* 4c8 */
2439 } DUMMYSTRUCTNAME;
2440#ifdef _ARM64EC_
2441 CONTEXT AMD64_Context;
2442#endif
2443 } DUMMYUNIONNAME;
2444 } ARM64EC_NT_CONTEXT, *PARM64EC_NT_CONTEXT;
2445
2446 typedef struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY ARM64_RUNTIME_FUNCTION, *PARM64_RUNTIME_FUNCTION;
2447
2448#ifdef _ARM64_
23162449 typedef struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY RUNTIME_FUNCTION, *PRUNTIME_FUNCTION;
23172450 typedef PRUNTIME_FUNCTION (*PGET_RUNTIME_FUNCTION_CALLBACK)(DWORD64 ControlPc,PVOID Context);
2451#endif
23182452
23192453#define UNW_FLAG_NHANDLER 0x0
23202454#define UNW_FLAG_EHANDLER 0x1
23212455#define UNW_FLAG_UHANDLER 0x2
23222456
2323#define UNWIND_HISTORY_TABLE_SIZE 12
2324
2325 typedef struct _UNWIND_HISTORY_TABLE_ENTRY {
2326 DWORD64 ImageBase;
2327 PRUNTIME_FUNCTION FunctionEntry;
2328 } UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY;
2329
2330 typedef struct _UNWIND_HISTORY_TABLE {
2331 DWORD Count;
2332 BYTE LocalHint;
2333 BYTE GlobalHint;
2334 BYTE Search;
2335 BYTE Once;
2336 DWORD64 LowAddress;
2337 DWORD64 HighAddress;
2338 UNWIND_HISTORY_TABLE_ENTRY Entry[UNWIND_HISTORY_TABLE_SIZE];
2339 } UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE;
2340
2341 struct _DISPATCHER_CONTEXT;
2342 typedef struct _DISPATCHER_CONTEXT DISPATCHER_CONTEXT;
2343 typedef struct _DISPATCHER_CONTEXT *PDISPATCHER_CONTEXT;
2344
2345 struct _DISPATCHER_CONTEXT {
2457 typedef struct _DISPATCHER_CONTEXT_ARM64 {
23462458 ULONG_PTR ControlPc;
23472459 ULONG_PTR ImageBase;
2348 PRUNTIME_FUNCTION FunctionEntry;
2460 PARM64_RUNTIME_FUNCTION FunctionEntry;
23492461 ULONG_PTR EstablisherFrame;
23502462 ULONG_PTR TargetPc;
2351 PCONTEXT ContextRecord;
2463 PARM64_NT_CONTEXT ContextRecord;
23522464 PEXCEPTION_ROUTINE LanguageHandler;
23532465 PVOID HandlerData;
2354 PUNWIND_HISTORY_TABLE HistoryTable;
2466 struct _UNWIND_HISTORY_TABLE *HistoryTable;
23552467 ULONG ScopeIndex;
23562468 BOOLEAN ControlPcIsUnwound;
23572469 PBYTE NonVolatileRegisters;
2358 };
2470 } DISPATCHER_CONTEXT_ARM64, *PDISPATCHER_CONTEXT_ARM64;
23592471
2360 typedef struct _KNONVOLATILE_CONTEXT_POINTERS {
2472#if defined(_ARM64_)
2473 typedef DISPATCHER_CONTEXT_ARM64 DISPATCHER_CONTEXT, *PDISPATCHER_CONTEXT;
2474#endif
2475
2476 typedef struct _KNONVOLATILE_CONTEXT_POINTERS_ARM64 {
23612477 PDWORD64 X19;
23622478 PDWORD64 X20;
23632479 PDWORD64 X21;
......@@ -2379,12 +2495,13 @@ extern "C" {
23792495 PDWORD64 D13;
23802496 PDWORD64 D14;
23812497 PDWORD64 D15;
2382 } KNONVOLATILE_CONTEXT_POINTERS, *PKNONVOLATILE_CONTEXT_POINTERS;
2498 } KNONVOLATILE_CONTEXT_POINTERS_ARM64, *PKNONVOLATILE_CONTEXT_POINTERS_ARM64;
23832499
2384#define OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME "OutOfProcessFunctionTableCallback"
2385
2386#endif /* _ARM64_ */
2500#ifdef _ARM64_
2501 typedef KNONVOLATILE_CONTEXT_POINTERS_ARM64 KNONVOLATILE_CONTEXT_POINTERS, *PKNONVOLATILE_CONTEXT_POINTERS;
2502#endif
23872503
2504#define OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME "OutOfProcessFunctionTableCallback"
23882505
23892506#ifdef _X86_
23902507
......@@ -2474,25 +2591,8 @@ __buildmemorybarrier()
24742591#define PF_TEMPORAL_LEVEL_1
24752592#define PF_NON_TEMPORAL_LEVEL_ALL
24762593
2477#define PcTeb 0x18
2478 struct _TEB *NtCurrentTeb(void);
2479 PVOID GetCurrentFiber(void);
2480 PVOID GetFiberData(void);
2481
24822594#define DbgRaiseAssertionFailure __int2c
24832595
2484 FORCEINLINE struct _TEB *NtCurrentTeb(void)
2485 {
2486 return (struct _TEB *)__readfsdword(PcTeb);
2487 }
2488 FORCEINLINE PVOID GetCurrentFiber(void)
2489 {
2490 return(PVOID)__readfsdword(0x10);
2491 }
2492 FORCEINLINE PVOID GetFiberData(void)
2493 {
2494 return *(PVOID *)GetCurrentFiber();
2495 }
24962596#endif /* defined(__i386__) && !defined(__x86_64) */
24972597
24982598#define EXCEPTION_READ_FAULT 0
......@@ -2656,8 +2756,6 @@ __buildmemorybarrier()
26562756#define UnsignedMultiplyHigh __UMULH
26572757
26582758 ULONGLONG UnsignedMultiplyHigh(ULONGLONG Multiplier,ULONGLONG Multiplicand);
2659#else /* __ia64__ */
2660 struct _TEB *NtCurrentTeb(void);
26612759#endif /* __ia64__ */
26622760#endif /* !defined(GENUTIL) && !defined(_GENIA64_) && defined(_IA64_) */
26632761
......@@ -2976,30 +3074,10 @@ __buildmemorybarrier()
29763074
29773075#ifdef __x86_64__
29783076
2979 /* http://msdn.microsoft.com/en-us/library/ms680597(VS.85).aspx */
2980
2981#define UNWIND_HISTORY_TABLE_SIZE 12
2982
2983 typedef struct _UNWIND_HISTORY_TABLE_ENTRY {
2984 ULONG64 ImageBase;
2985 PRUNTIME_FUNCTION FunctionEntry;
2986 } UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY;
2987
29883077#define UNWIND_HISTORY_TABLE_NONE 0
29893078#define UNWIND_HISTORY_TABLE_GLOBAL 1
29903079#define UNWIND_HISTORY_TABLE_LOCAL 2
29913080
2992 typedef struct _UNWIND_HISTORY_TABLE {
2993 ULONG Count;
2994 BYTE LocalHint;
2995 BYTE GlobalHint;
2996 BYTE Search;
2997 BYTE Once;
2998 ULONG64 LowAddress;
2999 ULONG64 HighAddress;
3000 UNWIND_HISTORY_TABLE_ENTRY Entry[UNWIND_HISTORY_TABLE_SIZE];
3001 } UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE;
3002
30033081 /* http://msdn.microsoft.com/en-us/library/b6sf5kbd(VS.80).aspx */
30043082
30053083 struct _DISPATCHER_CONTEXT;
......@@ -3016,11 +3094,31 @@ __buildmemorybarrier()
30163094 PEXCEPTION_ROUTINE LanguageHandler;
30173095 PVOID HandlerData;
30183096 /* http://www.nynaeve.net/?p=99 */
3019 PUNWIND_HISTORY_TABLE HistoryTable;
3097 struct _UNWIND_HISTORY_TABLE *HistoryTable;
30203098 ULONG ScopeIndex;
30213099 ULONG Fill0;
30223100 };
30233101
3102#ifdef _ARM64EC_
3103 typedef struct _DISPATCHER_CONTEXT_ARM64EC {
3104 DWORD64 ControlPc;
3105 DWORD64 ImageBase;
3106 PRUNTIME_FUNCTION FunctionEntry;
3107 DWORD64 EstablisherFrame;
3108 union {
3109 DWORD64 TargetIp;
3110 DWORD64 TargetPc;
3111 } DUMMYUNIONNAME;
3112 PCONTEXT ContextRecord;
3113 PEXCEPTION_ROUTINE LanguageHandler;
3114 PVOID HandlerData;
3115 struct _UNWIND_HISTORY_TABLE *HistoryTable;
3116 DWORD ScopeIndex;
3117 BOOLEAN ControlPcIsUnwound;
3118 PBYTE NonVolatileRegisters;
3119 } DISPATCHER_CONTEXT_ARM64EC, *PDISPATCHER_CONTEXT_ARM64EC;
3120#endif /* _ARM64EC_ */
3121
30243122 /* http://msdn.microsoft.com/en-us/library/ms680617(VS.85).aspx */
30253123
30263124 typedef struct _KNONVOLATILE_CONTEXT_POINTERS
......@@ -5359,7 +5457,7 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
53595457#define LTP_PC_SMT 0x1
53605458
53615459 typedef enum _PROCESSOR_CACHE_TYPE {
5362 CacheUnified,CacheInstruction,CacheData,CacheTrace
5460 CacheUnified,CacheInstruction,CacheData,CacheTrace,CacheUnknown
53635461 } PROCESSOR_CACHE_TYPE;
53645462
53655463#define CACHE_FULLY_ASSOCIATIVE 0xFF
......@@ -5397,8 +5495,12 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
53975495
53985496 typedef struct _NUMA_NODE_RELATIONSHIP {
53995497 DWORD NodeNumber;
5400 BYTE Reserved[20];
5401 GROUP_AFFINITY GroupMask;
5498 BYTE Reserved[18];
5499 WORD GroupCount;
5500 __C89_NAMELESS union {
5501 GROUP_AFFINITY GroupMask;
5502 GROUP_AFFINITY GroupMasks[ANYSIZE_ARRAY];
5503 };
54025504 } NUMA_NODE_RELATIONSHIP,*PNUMA_NODE_RELATIONSHIP;
54035505
54045506 typedef struct _CACHE_RELATIONSHIP {
......@@ -5407,8 +5509,12 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
54075509 WORD LineSize;
54085510 DWORD CacheSize;
54095511 PROCESSOR_CACHE_TYPE Type;
5410 BYTE Reserved[20];
5411 GROUP_AFFINITY GroupMask;
5512 BYTE Reserved[18];
5513 WORD GroupCount;
5514 __C89_NAMELESS union {
5515 GROUP_AFFINITY GroupMask;
5516 GROUP_AFFINITY GroupMasks[ANYSIZE_ARRAY];
5517 };
54125518 } CACHE_RELATIONSHIP,*PCACHE_RELATIONSHIP;
54135519
54145520 typedef struct _PROCESSOR_GROUP_INFO {
......@@ -8535,6 +8641,13 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
85358641 DWORD Reserved;
85368642 } IMAGE_RESOURCE_DATA_ENTRY,*PIMAGE_RESOURCE_DATA_ENTRY;
85378643
8644 typedef struct _IMAGE_LOAD_CONFIG_CODE_INTEGRITY {
8645 WORD Flags;
8646 WORD Catalog;
8647 DWORD CatalogOffset;
8648 DWORD Reserved;
8649 } IMAGE_LOAD_CONFIG_CODE_INTEGRITY,*PIMAGE_LOAD_CONFIG_CODE_INTEGRITY;
8650
85388651 typedef struct {
85398652 DWORD Size;
85408653 DWORD TimeDateStamp;
......@@ -8551,11 +8664,40 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
85518664 DWORD ProcessHeapFlags;
85528665 DWORD ProcessAffinityMask;
85538666 WORD CSDVersion;
8554 WORD Reserved1;
8667 WORD DependentLoadFlags;
85558668 DWORD EditList;
85568669 DWORD SecurityCookie;
85578670 DWORD SEHandlerTable;
85588671 DWORD SEHandlerCount;
8672 DWORD GuardCFCheckFunctionPointer;
8673 DWORD GuardCFDispatchFunctionPointer;
8674 DWORD GuardCFFunctionTable;
8675 DWORD GuardCFFunctionCount;
8676 DWORD GuardFlags;
8677 IMAGE_LOAD_CONFIG_CODE_INTEGRITY CodeIntegrity;
8678 DWORD GuardAddressTakenIatEntryTable;
8679 DWORD GuardAddressTakenIatEntryCount;
8680 DWORD GuardLongJumpTargetTable;
8681 DWORD GuardLongJumpTargetCount;
8682 DWORD DynamicValueRelocTable;
8683 DWORD CHPEMetadataPointer;
8684 DWORD GuardRFFailureRoutine;
8685 DWORD GuardRFFailureRoutineFunctionPointer;
8686 DWORD DynamicValueRelocTableOffset;
8687 WORD DynamicValueRelocTableSection;
8688 WORD Reserved2;
8689 DWORD GuardRFVerifyStackPointerFunctionPointer;
8690 DWORD HotPatchTableOffset;
8691 DWORD Reserved3;
8692 DWORD EnclaveConfigurationPointer;
8693 DWORD VolatileMetadataPointer;
8694 DWORD GuardEHContinuationTable;
8695 DWORD GuardEHContinuationCount;
8696 DWORD GuardXFGCheckFunctionPointer;
8697 DWORD GuardXFGDispatchFunctionPointer;
8698 DWORD GuardXFGTableDispatchFunctionPointer;
8699 DWORD CastGuardOsDeterminedFailureMode;
8700 DWORD GuardMemcpyFunctionPointer;
85598701 } IMAGE_LOAD_CONFIG_DIRECTORY32,*PIMAGE_LOAD_CONFIG_DIRECTORY32;
85608702
85618703 typedef struct {
......@@ -8574,11 +8716,40 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
85748716 ULONGLONG ProcessAffinityMask;
85758717 DWORD ProcessHeapFlags;
85768718 WORD CSDVersion;
8577 WORD Reserved1;
8719 WORD DependentLoadFlags;
85788720 ULONGLONG EditList;
85798721 ULONGLONG SecurityCookie;
85808722 ULONGLONG SEHandlerTable;
85818723 ULONGLONG SEHandlerCount;
8724 ULONGLONG GuardCFCheckFunctionPointer;
8725 ULONGLONG GuardCFDispatchFunctionPointer;
8726 ULONGLONG GuardCFFunctionTable;
8727 ULONGLONG GuardCFFunctionCount;
8728 DWORD GuardFlags;
8729 IMAGE_LOAD_CONFIG_CODE_INTEGRITY CodeIntegrity;
8730 ULONGLONG GuardAddressTakenIatEntryTable;
8731 ULONGLONG GuardAddressTakenIatEntryCount;
8732 ULONGLONG GuardLongJumpTargetTable;
8733 ULONGLONG GuardLongJumpTargetCount;
8734 ULONGLONG DynamicValueRelocTable;
8735 ULONGLONG CHPEMetadataPointer;
8736 ULONGLONG GuardRFFailureRoutine;
8737 ULONGLONG GuardRFFailureRoutineFunctionPointer;
8738 DWORD DynamicValueRelocTableOffset;
8739 WORD DynamicValueRelocTableSection;
8740 WORD Reserved2;
8741 ULONGLONG GuardRFVerifyStackPointerFunctionPointer;
8742 DWORD HotPatchTableOffset;
8743 DWORD Reserved3;
8744 ULONGLONG EnclaveConfigurationPointer;
8745 ULONGLONG VolatileMetadataPointer;
8746 ULONGLONG GuardEHContinuationTable;
8747 ULONGLONG GuardEHContinuationCount;
8748 ULONGLONG GuardXFGCheckFunctionPointer;
8749 ULONGLONG GuardXFGDispatchFunctionPointer;
8750 ULONGLONG GuardXFGTableDispatchFunctionPointer;
8751 ULONGLONG CastGuardOsDeterminedFailureMode;
8752 ULONGLONG GuardMemcpyFunctionPointer;
85828753 } IMAGE_LOAD_CONFIG_DIRECTORY64,*PIMAGE_LOAD_CONFIG_DIRECTORY64;
85838754
85848755#ifdef _WIN64
......@@ -8886,6 +9057,27 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
88869057 } IMAGE_COR20_HEADER,*PIMAGE_COR20_HEADER;
88879058#endif
88889059
9060#ifndef __i386__
9061
9062#define UNWIND_HISTORY_TABLE_SIZE 12
9063
9064 typedef struct _UNWIND_HISTORY_TABLE_ENTRY {
9065 ULONG_PTR ImageBase;
9066 PRUNTIME_FUNCTION FunctionEntry;
9067 } UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY;
9068
9069 typedef struct _UNWIND_HISTORY_TABLE {
9070 DWORD Count;
9071 BYTE LocalHint;
9072 BYTE GlobalHint;
9073 BYTE Search;
9074 BYTE Once;
9075 ULONG_PTR LowAddress;
9076 ULONG_PTR HighAddress;
9077 UNWIND_HISTORY_TABLE_ENTRY Entry[UNWIND_HISTORY_TABLE_SIZE];
9078 } UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE;
9079#endif /* !__i386__ */
9080
88899081#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
88909082 NTSYSAPI WORD NTAPI RtlCaptureStackBackTrace (DWORD FramesToSkip, DWORD FramesToCapture, PVOID *BackTrace, PDWORD BackTraceHash);
88919083#endif
......@@ -8939,6 +9131,7 @@ DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
89399131 NTSYSAPI PRUNTIME_FUNCTION NTAPI RtlLookupFunctionEntry (DWORD64 ControlPc, PDWORD64 ImageBase, PUNWIND_HISTORY_TABLE HistoryTable);
89409132 NTSYSAPI VOID NTAPI RtlUnwindEx (PVOID TargetFrame, PVOID TargetIp, PEXCEPTION_RECORD ExceptionRecord, PVOID ReturnValue, PCONTEXT ContextRecord, PUNWIND_HISTORY_TABLE HistoryTable);
89419133 NTSYSAPI PEXCEPTION_ROUTINE NTAPI RtlVirtualUnwind (DWORD HandlerType, DWORD64 ImageBase, DWORD64 ControlPc, PRUNTIME_FUNCTION FunctionEntry, PCONTEXT ContextRecord, PVOID *HandlerData, PDWORD64 EstablisherFrame, PKNONVOLATILE_CONTEXT_POINTERS ContextPointers);
9134 NTSYSAPI BOOLEAN NTAPI RtlIsEcCode(DWORD64 CodePointer);
89429135#endif
89439136#if defined (__arm__)
89449137 NTSYSAPI PRUNTIME_FUNCTION NTAPI RtlLookupFunctionEntry (ULONG_PTR ControlPc, PDWORD ImageBase, PUNWIND_HISTORY_TABLE HistoryTable);
......@@ -9067,7 +9260,7 @@ typedef DWORD (WINAPI *PRTL_RUN_ONCE_INIT_FN)(PRTL_RUN_ONCE, PVOID, PVOID *);
90679260#if !defined (__CRT__NO_INLINE) && !defined (__WIDL__)
90689261 __CRT_INLINE PVOID WINAPI RtlSecureZeroMemory(PVOID ptr,SIZE_T cnt) {
90699262 volatile char *vptr =(volatile char *)ptr;
9070#ifdef __x86_64
9263#if defined(__x86_64__) && !defined(__arm64ec__)
90719264 __stosb((PBYTE)((DWORD64)vptr),0,cnt);
90729265#else
90739266 while(cnt) {
......@@ -9652,8 +9845,8 @@ typedef DWORD (WINAPI *PRTL_RUN_ONCE_INIT_FN)(PRTL_RUN_ONCE, PVOID, PVOID *);
96529845#define VERIFIER_STOP(Code,Msg,P1,S1,P2,S2,P3,S3,P4,S4) { RtlApplicationVerifierStop ((Code),(Msg),(ULONG_PTR)(P1),(S1),(ULONG_PTR)(P2),(S2),(ULONG_PTR)(P3),(S3),(ULONG_PTR)(P4),(S4)); }
96539846
96549847 VOID NTAPI RtlApplicationVerifierStop(ULONG_PTR Code,PSTR Message,ULONG_PTR Param1,PSTR Description1,ULONG_PTR Param2,PSTR Description2,ULONG_PTR Param3,PSTR Description3,ULONG_PTR Param4,PSTR Description4);
9655 NTSYSAPI DWORD NTAPI RtlSetHeapInformation(PVOID HeapHandle,HEAP_INFORMATION_CLASS HeapInformationClass,PVOID HeapInformation,SIZE_T HeapInformationLength);
9656 NTSYSAPI DWORD NTAPI RtlQueryHeapInformation(PVOID HeapHandle,HEAP_INFORMATION_CLASS HeapInformationClass,PVOID HeapInformation,SIZE_T HeapInformationLength,PSIZE_T ReturnLength);
9848 NTSYSAPI LONG NTAPI RtlSetHeapInformation(PVOID HeapHandle,HEAP_INFORMATION_CLASS HeapInformationClass,PVOID HeapInformation,SIZE_T HeapInformationLength);
9849 NTSYSAPI LONG NTAPI RtlQueryHeapInformation(PVOID HeapHandle,HEAP_INFORMATION_CLASS HeapInformationClass,PVOID HeapInformation,SIZE_T HeapInformationLength,PSIZE_T ReturnLength);
96579850 DWORD NTAPI RtlMultipleAllocateHeap(PVOID HeapHandle,DWORD Flags,SIZE_T Size,DWORD Count,PVOID *Array);
96589851 DWORD NTAPI RtlMultipleFreeHeap(PVOID HeapHandle,DWORD Flags,DWORD Count,PVOID *Array);
96599852
......@@ -10152,38 +10345,55 @@ typedef DWORD (WINAPI *PRTL_RUN_ONCE_INIT_FN)(PRTL_RUN_ONCE, PVOID, PVOID *);
1015210345 FORCEINLINE VOID TpDestroyCallbackEnviron (PTP_CALLBACK_ENVIRON cbe) { UNREFERENCED_PARAMETER (cbe); }
1015310346#endif
1015410347
10155#if defined(__x86_64) && !defined (__WIDL__)
10348#if !defined(__ia64__) && !defined (__WIDL__)
1015610349 struct _TEB *NtCurrentTeb(VOID);
1015710350 PVOID GetCurrentFiber(VOID);
1015810351 PVOID GetFiberData(VOID);
10159 FORCEINLINE struct _TEB *NtCurrentTeb(VOID) { return (struct _TEB *)__readgsqword(FIELD_OFFSET(NT_TIB,Self)); }
10160 FORCEINLINE PVOID GetCurrentFiber(VOID) { return(PVOID)__readgsqword(FIELD_OFFSET(NT_TIB,FiberData)); }
10161 FORCEINLINE PVOID GetFiberData(VOID) {
10162 return *(PVOID *)GetCurrentFiber();
10352
10353#if defined (__aarch64__) || defined(__arm64ec__)
10354 register struct _TEB *__mingw_current_teb __asm__("x18");
10355 FORCEINLINE struct _TEB *NtCurrentTeb(VOID)
10356 {
10357 return __mingw_current_teb;
1016310358 }
10164#endif /* __x86_64 */
10359 FORCEINLINE PVOID GetCurrentFiber(VOID)
10360 {
10361 return (PVOID)(((PNT_TIB)NtCurrentTeb())->FiberData);
10362 }
10363#elif defined(__x86_64__)
10364 FORCEINLINE struct _TEB *NtCurrentTeb(VOID)
10365 {
10366 return (struct _TEB *)__readgsqword(FIELD_OFFSET(NT_TIB,Self));
10367 }
10368 FORCEINLINE PVOID GetCurrentFiber(VOID)
10369 {
10370 return (PVOID)__readgsqword(FIELD_OFFSET(NT_TIB,FiberData));
10371 }
10372#elif defined(__i386__)
10373# define PcTeb 0x18
10374 FORCEINLINE struct _TEB *NtCurrentTeb(void)
10375 {
10376 return (struct _TEB *)__readfsdword(PcTeb);
10377 }
10378 FORCEINLINE PVOID GetCurrentFiber(void)
10379 {
10380 return (PVOID)__readfsdword(0x10);
10381 }
10382#elif defined (__arm__)
10383 FORCEINLINE struct _TEB *NtCurrentTeb(VOID)
10384 {
10385 struct _TEB *teb;
10386 __asm ("mrc p15, 0, %0, c13, c0, 2" : "=r" (teb));
10387 return teb;
10388 }
10389 FORCEINLINE PVOID GetCurrentFiber(VOID)
10390 {
10391 return (PVOID)(((PNT_TIB)NtCurrentTeb())->FiberData);
10392 }
10393#endif
1016510394
10166#if defined (__arm__) && !defined (__WIDL__)
10167 struct _TEB *NtCurrentTeb (VOID);
10168 PVOID GetCurrentFiber (VOID);
10169 PVOID GetFiberData (VOID);
10170 FORCEINLINE struct _TEB *NtCurrentTeb(VOID) { struct _TEB *teb;
10171 __asm ("mrc p15, 0, %0, c13, c0, 2" : "=r" (teb));
10172 return teb; }
10173 FORCEINLINE PVOID GetCurrentFiber(VOID) { return (PVOID)(((PNT_TIB)NtCurrentTeb())->FiberData); }
10174 FORCEINLINE PVOID GetFiberData (VOID) { return *(PVOID *)GetCurrentFiber (); }
10175#endif /* arm */
10176
10177#if defined (__aarch64__) && !defined (__WIDL__)
10178 struct _TEB *NtCurrentTeb (VOID);
10179 PVOID GetCurrentFiber (VOID);
10180 PVOID GetFiberData (VOID);
10181 FORCEINLINE struct _TEB *NtCurrentTeb(VOID) { struct _TEB *teb;
10182 __asm ("mov %0, x18" : "=r" (teb));
10183 return teb; }
10184 FORCEINLINE PVOID GetCurrentFiber(VOID) { return (PVOID)(((PNT_TIB)NtCurrentTeb())->FiberData); }
10185 FORCEINLINE PVOID GetFiberData (VOID) { return *(PVOID *)GetCurrentFiber (); }
10186#endif /* aarch64 */
10395 FORCEINLINE PVOID GetFiberData (VOID) { return *(void **)GetCurrentFiber (); }
10396#endif /* !defined(__ia64__) && !defined (__WIDL__) */
1018710397
1018810398#ifndef _NTTMAPI_
1018910399#define _NTTMAPI_
lib/libc/include/any-windows-any/winnt.rh+218
......@@ -16,84 +16,154 @@
1616
1717#define LANG_AFRIKAANS 0x36
1818#define LANG_ALBANIAN 0x1c
19#define LANG_ALSATIAN 0x84
20#define LANG_AMHARIC 0x5e
1921#define LANG_ARABIC 0x01
2022#define LANG_ARMENIAN 0x2b
2123#define LANG_ASSAMESE 0x4d
2224#define LANG_AZERI 0x2c
25#define LANG_AZERBAIJANI 0x2c
26#define LANG_BANGLA 0x45
27#define LANG_BASHKIR 0x6d
2328#define LANG_BASQUE 0x2d
2429#define LANG_BELARUSIAN 0x23
2530#define LANG_BENGALI 0x45
31#define LANG_BRETON 0x7e
32#define LANG_BOSNIAN 0x1a
33#define LANG_BOSNIAN_NEUTRAL 0x781a
2634#define LANG_BULGARIAN 0x02
2735#define LANG_CATALAN 0x03
36#define LANG_CENTRAL_KURDISH 0x92
37#define LANG_CHEROKEE 0x5c
2838#define LANG_CHINESE 0x04
39#define LANG_CHINESE_SIMPLIFIED 0x04
40#define LANG_CHINESE_TRADITIONAL 0x7c04
41#define LANG_CORSICAN 0x83
2942#define LANG_CROATIAN 0x1a
3043#define LANG_CZECH 0x05
3144#define LANG_DANISH 0x06
45#define LANG_DARI 0x8c
3246#define LANG_DIVEHI 0x65
3347#define LANG_DUTCH 0x13
3448#define LANG_ENGLISH 0x09
3549#define LANG_ESTONIAN 0x25
3650#define LANG_FAEROESE 0x38
3751#define LANG_FARSI 0x29
52#define LANG_FILIPINO 0x64
3853#define LANG_FINNISH 0x0b
3954#define LANG_FRENCH 0x0c
55#define LANG_FRISIAN 0x62
56#define LANG_FULAH 0x67
4057#define LANG_GALICIAN 0x56
4158#define LANG_GEORGIAN 0x37
4259#define LANG_GERMAN 0x07
4360#define LANG_GREEK 0x08
61#define LANG_GREENLANDIC 0x6f
4462#define LANG_GUJARATI 0x47
63#define LANG_HAUSA 0x68
64#define LANG_HAWAIIAN 0x75
4565#define LANG_HEBREW 0x0d
4666#define LANG_HINDI 0x39
4767#define LANG_HUNGARIAN 0x0e
4868#define LANG_ICELANDIC 0x0f
69#define LANG_IGBO 0x70
4970#define LANG_INDONESIAN 0x21
71#define LANG_INUKTITUT 0x5d
72#define LANG_IRISH 0x3c
5073#define LANG_ITALIAN 0x10
5174#define LANG_JAPANESE 0x11
5275#define LANG_KANNADA 0x4b
5376#define LANG_KASHMIRI 0x60
5477#define LANG_KAZAK 0x3f
78#define LANG_KHMER 0x53
79#define LANG_KICHE 0x86
80#define LANG_KINYARWANDA 0x87
5581#define LANG_KONKANI 0x57
5682#define LANG_KOREAN 0x12
5783#define LANG_KYRGYZ 0x40
84#define LANG_LAO 0x54
5885#define LANG_LATVIAN 0x26
5986#define LANG_LITHUANIAN 0x27
87#define LANG_LOWER_SORBIAN 0x2e
88#define LANG_LUXEMBOURGISH 0x6e
6089#define LANG_MACEDONIAN 0x2f
6190#define LANG_MALAY 0x3e
6291#define LANG_MALAYALAM 0x4c
92#define LANG_MALTESE 0x3a
6393#define LANG_MANIPURI 0x58
94#define LANG_MAORI 0x81
95#define LANG_MAPUDUNGUN 0x7a
6496#define LANG_MARATHI 0x4e
97#define LANG_MOHAWK 0x7c
6598#define LANG_MONGOLIAN 0x50
6699#define LANG_NEPALI 0x61
67100#define LANG_NORWEGIAN 0x14
101#define LANG_OCCITAN 0x82
102#define LANG_ODIA 0x48
68103#define LANG_ORIYA 0x48
104#define LANG_PASHTO 0x63
105#define LANG_PERSIAN 0x29
69106#define LANG_POLISH 0x15
70107#define LANG_PORTUGUESE 0x16
108#define LANG_PULAR 0x67
71109#define LANG_PUNJABI 0x46
110#define LANG_QUECHUA 0x6b
72111#define LANG_ROMANIAN 0x18
112#define LANG_ROMANSH 0x17
73113#define LANG_RUSSIAN 0x19
114#define LANG_SAKHA 0x85
115#define LANG_SAMI 0x3b
74116#define LANG_SANSKRIT 0x4f
117#define LANG_SCOTTISH_GAELIC 0x91
75118#define LANG_SERBIAN 0x1a
119#define LANG_SERBIAN_NEUTRAL 0x7c1a
76120#define LANG_SINDHI 0x59
121#define LANG_SINHALESE 0x5b
77122#define LANG_SLOVAK 0x1b
78123#define LANG_SLOVENIAN 0x24
124#define LANG_SOTHO 0x6c
79125#define LANG_SPANISH 0x0a
80126#define LANG_SWAHILI 0x41
81127#define LANG_SWEDISH 0x1d
82128#define LANG_SYRIAC 0x5a
129#define LANG_TAJIK 0x28
130#define LANG_TAMAZIGHT 0x5f
83131#define LANG_TAMIL 0x49
84132#define LANG_TATAR 0x44
85133#define LANG_TELUGU 0x4a
86134#define LANG_THAI 0x1e
135#define LANG_TIBETAN 0x51
136#define LANG_TIGRIGNA 0x73
137#define LANG_TIGRINYA 0x73
138#define LANG_TSWANA 0x32
87139#define LANG_TURKISH 0x1f
140#define LANG_TURKMEN 0x42
141#define LANG_UIGHUR 0x80
88142#define LANG_UKRAINIAN 0x22
143#define LANG_UPPER_SORBIAN 0x2e
89144#define LANG_URDU 0x20
90145#define LANG_UZBEK 0x43
146#define LANG_VALENCIAN 0x03
91147#define LANG_VIETNAMESE 0x2a
148#define LANG_WELSH 0x52
149#define LANG_WOLOF 0x88
150#define LANG_XHOSA 0x34
151#define LANG_YAKUT 0x85
152#define LANG_YI 0x78
153#define LANG_YORUBA 0x6a
154#define LANG_ZULU 0x35
92155
93156#define SUBLANG_NEUTRAL 0x00
94157#define SUBLANG_DEFAULT 0x01
95158#define SUBLANG_SYS_DEFAULT 0x02
159#define SUBLANG_CUSTOM_DEFAULT 0x03
160#define SUBLANG_CUSTOM_UNSPECIFIED 0x04
161#define SUBLANG_UI_CUSTOM_DEFAULT 0x05
96162
163#define SUBLANG_AFRIKAANS_SOUTH_AFRICA 0x01
164#define SUBLANG_ALBANIAN_ALBANIA 0x01
165#define SUBLANG_ALSATIAN_FRANCE 0x01
166#define SUBLANG_AMHARIC_ETHIOPIA 0x01
97167#define SUBLANG_ARABIC_SAUDI_ARABIA 0x01
98168#define SUBLANG_ARABIC_IRAQ 0x02
99169#define SUBLANG_ARABIC_EGYPT 0x03
......@@ -110,13 +180,38 @@
110180#define SUBLANG_ARABIC_UAE 0x0e
111181#define SUBLANG_ARABIC_BAHRAIN 0x0f
112182#define SUBLANG_ARABIC_QATAR 0x10
183#define SUBLANG_ARMENIAN_ARMENIA 0x01
184#define SUBLANG_ASSAMESE_INDIA 0x01
113185#define SUBLANG_AZERI_LATIN 0x01
114186#define SUBLANG_AZERI_CYRILLIC 0x02
187#define SUBLANG_AZERBAIJANI_AZERBAIJAN_LATIN 0x01
188#define SUBLANG_AZERBAIJANI_AZERBAIJAN_CYRILLIC 0x02
189#define SUBLANG_BANGLA_INDIA 0x01
190#define SUBLANG_BANGLA_BANGLADESH 0x02
191#define SUBLANG_BASHKIR_RUSSIA 0x01
192#define SUBLANG_BASQUE_BASQUE 0x01
193#define SUBLANG_BELARUSIAN_BELARUS 0x01
194#define SUBLANG_BENGALI_INDIA 0x01
195#define SUBLANG_BENGALI_BANGLADESH 0x02
196#define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN 0x05
197#define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC 0x08
198#define SUBLANG_BRETON_FRANCE 0x01
199#define SUBLANG_BULGARIAN_BULGARIA 0x01
200#define SUBLANG_CATALAN_CATALAN 0x01
201#define SUBLANG_CENTRAL_KURDISH_IRAQ 0x01
202#define SUBLANG_CHEROKEE_CHEROKEE 0x01
115203#define SUBLANG_CHINESE_TRADITIONAL 0x01
116204#define SUBLANG_CHINESE_SIMPLIFIED 0x02
117205#define SUBLANG_CHINESE_HONGKONG 0x03
118206#define SUBLANG_CHINESE_SINGAPORE 0x04
119207#define SUBLANG_CHINESE_MACAU 0x05
208#define SUBLANG_CORSICAN_FRANCE 0x01
209#define SUBLANG_CZECH_CZECH_REPUBLIC 0x01
210#define SUBLANG_CROATIAN_CROATIA 0x01
211#define SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN 0x04
212#define SUBLANG_DANISH_DENMARK 0x01
213#define SUBLANG_DARI_AFGHANISTAN 0x01
214#define SUBLANG_DIVEHI_MALDIVES 0x01
120215#define SUBLANG_DUTCH 0x01
121216#define SUBLANG_DUTCH_BELGIAN 0x02
122217#define SUBLANG_ENGLISH_US 0x01
......@@ -132,32 +227,120 @@
132227#define SUBLANG_ENGLISH_TRINIDAD 0x0b
133228#define SUBLANG_ENGLISH_ZIMBABWE 0x0c
134229#define SUBLANG_ENGLISH_PHILIPPINES 0x0d
230#define SUBLANG_ENGLISH_INDIA 0x10
231#define SUBLANG_ENGLISH_MALAYSIA 0x11
232#define SUBLANG_ENGLISH_SINGAPORE 0x12
233#define SUBLANG_ESTONIAN_ESTONIA 0x01
234#define SUBLANG_FAEROESE_FAROE_ISLANDS 0x01
235#define SUBLANG_FILIPINO_PHILIPPINES 0x01
236#define SUBLANG_FINNISH_FINLAND 0x01
135237#define SUBLANG_FRENCH 0x01
136238#define SUBLANG_FRENCH_BELGIAN 0x02
137239#define SUBLANG_FRENCH_CANADIAN 0x03
138240#define SUBLANG_FRENCH_SWISS 0x04
139241#define SUBLANG_FRENCH_LUXEMBOURG 0x05
140242#define SUBLANG_FRENCH_MONACO 0x06
243#define SUBLANG_FRISIAN_NETHERLANDS 0x01
244#define SUBLANG_FULAH_SENEGAL 0x02
245#define SUBLANG_GALICIAN_GALICIAN 0x01
246#define SUBLANG_GEORGIAN_GEORGIA 0x01
141247#define SUBLANG_GERMAN 0x01
142248#define SUBLANG_GERMAN_SWISS 0x02
143249#define SUBLANG_GERMAN_AUSTRIAN 0x03
144250#define SUBLANG_GERMAN_LUXEMBOURG 0x04
145251#define SUBLANG_GERMAN_LIECHTENSTEIN 0x05
252#define SUBLANG_GREEK_GREECE 0x01
253#define SUBLANG_GREENLANDIC_GREENLAND 0x01
254#define SUBLANG_GUJARATI_INDIA 0x01
255#define SUBLANG_HAUSA_NIGERIA_LATIN 0x01
256#define SUBLANG_HAWAIIAN_US 0x01
257#define SUBLANG_HEBREW_ISRAEL 0x01
258#define SUBLANG_HINDI_INDIA 0x01
259#define SUBLANG_HUNGARIAN_HUNGARY 0x01
260#define SUBLANG_ICELANDIC_ICELAND 0x01
261#define SUBLANG_IGBO_NIGERIA 0x01
262#define SUBLANG_INDONESIAN_INDONESIA 0x01
263#define SUBLANG_INUKTITUT_CANADA 0x01
264#define SUBLANG_INUKTITUT_CANADA_LATIN 0x02
265#define SUBLANG_IRISH_IRELAND 0x02
146266#define SUBLANG_ITALIAN 0x01
147267#define SUBLANG_ITALIAN_SWISS 0x02
268#define SUBLANG_JAPANESE_JAPAN 0x01
269#define SUBLANG_KANNADA_INDIA 0x01
148270#define SUBLANG_KASHMIRI_SASIA 0x02
149271#define SUBLANG_KASHMIRI_INDIA 0x02
272#define SUBLANG_KAZAK_KAZAKHSTAN 0x01
273#define SUBLANG_KHMER_CAMBODIA 0x01
274#define SUBLANG_KICHE_GUATEMALA 0x01
275#define SUBLANG_KINYARWANDA_RWANDA 0x01
276#define SUBLANG_KONKANI_INDIA 0x01
150277#define SUBLANG_KOREAN 0x01
278#define SUBLANG_KYRGYZ_KYRGYZSTAN 0x01
279#define SUBLANG_LAO_LAO 0x01
280#define SUBLANG_LATVIAN_LATVIA 0x01
151281#define SUBLANG_LITHUANIAN 0x01
282#define SUBLANG_LOWER_SORBIAN_GERMANY 0x02
283#define SUBLANG_LUXEMBOURGISH_LUXEMBOURG 0x01
284#define SUBLANG_MACEDONIAN_MACEDONIA 0x01
152285#define SUBLANG_MALAY_MALAYSIA 0x01
153286#define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02
287#define SUBLANG_MALAYALAM_INDIA 0x01
288#define SUBLANG_MALTESE_MALTA 0x01
289#define SUBLANG_MAORI_NEW_ZEALAND 0x01
290#define SUBLANG_MAPUDUNGUN_CHILE 0x01
291#define SUBLANG_MARATHI_INDIA 0x01
292#define SUBLANG_MOHAWK_MOHAWK 0x01
293#define SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA 0x01
294#define SUBLANG_MONGOLIAN_PRC 0x02
154295#define SUBLANG_NEPALI_INDIA 0x02
296#define SUBLANG_NEPALI_NEPAL 0x01
155297#define SUBLANG_NORWEGIAN_BOKMAL 0x01
156298#define SUBLANG_NORWEGIAN_NYNORSK 0x02
299#define SUBLANG_OCCITAN_FRANCE 0x01
300#define SUBLANG_ODIA_INDIA 0x01
301#define SUBLANG_ORIYA_INDIA 0x01
302#define SUBLANG_PASHTO_AFGHANISTAN 0x01
303#define SUBLANG_PERSIAN_IRAN 0x01
304#define SUBLANG_POLISH_POLAND 0x01
157305#define SUBLANG_PORTUGUESE 0x02
158306#define SUBLANG_PORTUGUESE_BRAZILIAN 0x01
307#define SUBLANG_PULAR_SENEGAL 0x02
308#define SUBLANG_PUNJABI_INDIA 0x01
309#define SUBLANG_PUNJABI_PAKISTAN 0x02
310#define SUBLANG_QUECHUA_BOLIVIA 0x01
311#define SUBLANG_QUECHUA_ECUADOR 0x02
312#define SUBLANG_QUECHUA_PERU 0x03
313#define SUBLANG_ROMANIAN_ROMANIA 0x01
314#define SUBLANG_ROMANSH_SWITZERLAND 0x01
315#define SUBLANG_RUSSIAN_RUSSIA 0x01
316#define SUBLANG_SAKHA_RUSSIA 0x01
317#define SUBLANG_SAMI_NORTHERN_NORWAY 0x01
318#define SUBLANG_SAMI_NORTHERN_SWEDEN 0x02
319#define SUBLANG_SAMI_NORTHERN_FINLAND 0x03
320#define SUBLANG_SAMI_LULE_NORWAY 0x04
321#define SUBLANG_SAMI_LULE_SWEDEN 0x05
322#define SUBLANG_SAMI_SOUTHERN_NORWAY 0x06
323#define SUBLANG_SAMI_SOUTHERN_SWEDEN 0x07
324#define SUBLANG_SAMI_SKOLT_FINLAND 0x08
325#define SUBLANG_SAMI_INARI_FINLAND 0x09
326#define SUBLANG_SANSKRIT_INDIA 0x01
327#define SUBLANG_SCOTTISH_GAELIC 0x01
328#define SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN 0x06
329#define SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC 0x07
330#define SUBLANG_SERBIAN_MONTENEGRO_LATIN 0x0b
331#define SUBLANG_SERBIAN_MONTENEGRO_CYRILLIC 0x0c
332#define SUBLANG_SERBIAN_SERBIA_LATIN 0x09
333#define SUBLANG_SERBIAN_SERBIA_CYRILLIC 0x0a
334#define SUBLANG_SERBIAN_CROATIA 0x01
159335#define SUBLANG_SERBIAN_LATIN 0x02
160336#define SUBLANG_SERBIAN_CYRILLIC 0x03
337#define SUBLANG_SINDHI_INDIA 0x01
338#define SUBLANG_SINDHI_PAKISTAN 0x02
339#define SUBLANG_SINDHI_AFGHANISTAN 0x02
340#define SUBLANG_SINHALESE_SRI_LANKA 0x01
341#define SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA 0x01
342#define SUBLANG_SLOVAK_SLOVAKIA 0x01
343#define SUBLANG_SLOVENIAN_SLOVENIA 0x01
161344#define SUBLANG_SPANISH 0x01
162345#define SUBLANG_SPANISH_MEXICAN 0x02
163346#define SUBLANG_SPANISH_MODERN 0x03
......@@ -178,23 +361,58 @@
178361#define SUBLANG_SPANISH_HONDURAS 0x12
179362#define SUBLANG_SPANISH_NICARAGUA 0x13
180363#define SUBLANG_SPANISH_PUERTO_RICO 0x14
364#define SUBLANG_SPANISH_US 0x15
365#define SUBLANG_SWAHILI_KENYA 0x01
181366#define SUBLANG_SWEDISH 0x01
182367#define SUBLANG_SWEDISH_FINLAND 0x02
368#define SUBLANG_SYRIAC_SYRIA 0x01
369#define SUBLANG_TAJIK_TAJIKISTAN 0x01
370#define SUBLANG_TAMAZIGHT_ALGERIA_LATIN 0x02
371#define SUBLANG_TAMAZIGHT_MOROCCO_TIFINAGH 0x04
372#define SUBLANG_TAMIL_INDIA 0x01
373#define SUBLANG_TAMIL_SRI_LANKA 0x02
374#define SUBLANG_TATAR_RUSSIA 0x01
375#define SUBLANG_TELUGU_INDIA 0x01
376#define SUBLANG_THAI_THAILAND 0x01
377#define SUBLANG_TIBETAN_PRC 0x01
378#define SUBLANG_TIGRIGNA_ERITREA 0x02
379#define SUBLANG_TIGRINYA_ERITREA 0x02
380#define SUBLANG_TIGRINYA_ETHIOPIA 0x01
381#define SUBLANG_TSWANA_BOTSWANA 0x02
382#define SUBLANG_TSWANA_SOUTH_AFRICA 0x01
383#define SUBLANG_TURKISH_TURKEY 0x01
384#define SUBLANG_TURKMEN_TURKMENISTAN 0x01
385#define SUBLANG_UIGHUR_PRC 0x01
386#define SUBLANG_UKRAINIAN_UKRAINE 0x01
387#define SUBLANG_UPPER_SORBIAN_GERMANY 0x01
183388#define SUBLANG_URDU_PAKISTAN 0x01
184389#define SUBLANG_URDU_INDIA 0x02
185390#define SUBLANG_UZBEK_LATIN 0x01
186391#define SUBLANG_UZBEK_CYRILLIC 0x02
392#define SUBLANG_VALENCIAN_VALENCIA 0x02
393#define SUBLANG_VIETNAMESE_VIETNAM 0x01
394#define SUBLANG_WELSH_UNITED_KINGDOM 0x01
395#define SUBLANG_WOLOF_SENEGAL 0x01
396#define SUBLANG_XHOSA_SOUTH_AFRICA 0x01
397#define SUBLANG_YAKUT_RUSSIA 0x01
398#define SUBLANG_YI_PRC 0x01
399#define SUBLANG_YORUBA_NIGERIA 0x01
400#define SUBLANG_ZULU_SOUTH_AFRICA 0x01
187401
188402#define SORT_DEFAULT 0x0
189403
404#define SORT_INVARIANT_MATH 0x1
405
190406#define SORT_JAPANESE_XJIS 0x0
191407#define SORT_JAPANESE_UNICODE 0x1
408#define SORT_JAPANESE_RADICALSTROKE 0x4
192409
193410#define SORT_CHINESE_BIG5 0x0
194411#define SORT_CHINESE_PRCP 0x0
195412#define SORT_CHINESE_UNICODE 0x1
196413#define SORT_CHINESE_PRC 0x2
197414#define SORT_CHINESE_BOPOMOFO 0x3
415#define SORT_CHINESE_RADICALSTROKE 0x4
198416
199417#define SORT_KOREAN_KSC 0x0
200418#define SORT_KOREAN_UNICODE 0x1
lib/libc/include/any-windows-any/wmcodecdsp.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmcodecdsp.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmcodecdsp.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmcontainer.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmcontainer.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmcontainer.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmdrmsdk.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmdrmsdk.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmdrmsdk.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmp.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmp.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmp.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmprealestate.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmprealestate.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmprealestate.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmpservices.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmpservices.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmpservices.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmsbuffer.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmsbuffer.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmsbuffer.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmsdkidl.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmsdkidl.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmsdkidl.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wmsecure.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wmsecure.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wmsecure.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wpcapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wpcapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wpcapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wsdattachment.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wsdattachment.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wsdattachment.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wsdbase.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wsdbase.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wsdbase.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wsdclient.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wsdclient.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wsdclient.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wsddisco.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wsddisco.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wsddisco.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wsdhost.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wsdhost.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wsdhost.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wsdxml.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wsdxml.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wsdxml.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wsmandisp.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wsmandisp.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wsmandisp.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wtypes.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wtypes.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wtypes.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wtypesbase.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wtypesbase.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wtypesbase.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/wuapi.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/wuapi.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/wuapi.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xamlom.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xamlom.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xamlom.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xapo.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xapo.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xapo.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xaudio2.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xaudio2.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xaudio2.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xaudio2fx.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xaudio2fx.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xaudio2fx.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xmllite.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xmllite.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xmllite.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xpsdigitalsignature.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xpsdigitalsignature.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xpsdigitalsignature.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xpsobjectmodel.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xpsobjectmodel.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xpsobjectmodel.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xpsobjectmodel_1.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xpsobjectmodel_1.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xpsobjectmodel_1.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xpsprint.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xpsprint.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xpsprint.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__
lib/libc/include/any-windows-any/xpsrassvc.h+1-1
......@@ -1,4 +1,4 @@
1/*** Autogenerated by WIDL 9.20 from include/xpsrassvc.idl - Do not edit ***/
1/*** Autogenerated by WIDL 10.0-rc1 from include/xpsrassvc.idl - Do not edit ***/
22
33#ifdef _WIN32
44#ifndef __REQUIRED_RPCNDR_H_VERSION__