Hi,
the below patch changes oleacc.idl to use ULONG rather than unsigned long
in all calls to the XXX_UserYYY automation functions. MSDN documents the
BSTR and VARIANT functions to use ULONG. I couldn't find documentation
for the equivalent HMENU and HWND functions, but I changed them as well
on the grounds of analogy and symmetry. Ok to apply?
Thanks,
Corinna
* oleacc.idl (BSTR_UserSize): Use ULONG rather than unsigned long.
(BSTR_UserMarshal): Ditto.
(BSTR_UserUnmarshal): Ditto.
(BSTR_UserFree): Ditto.
(HMENU_UserSize): Ditto.
(HMENU_UserMarshal): Ditto.
(HMENU_UserUnmarshal): Ditto.
(HMENU_UserFree): Ditto.
(HWND_UserSize): Ditto.
(HWND_UserMarshal): Ditto.
(HWND_UserUnmarshal): Ditto.
(HWND_UserFree): Ditto.
(VARIANT_UserSize): Ditto.
(VARIANT_UserMarshal): Ditto.
(VARIANT_UserUnmarshal): Ditto.
(VARIANT_UserFree): Ditto.
* oleacc.h: Regenerate.
Index: oleacc.idl
===================================================================
--- oleacc.idl (revision 5302)
+++ oleacc.idl (working copy)
@@ -603,19 +603,19 @@
cpp_quote("#endif")
cpp_quote("#endif")
cpp_quote("")
-cpp_quote(" unsigned long __RPC_API BSTR_UserSize(unsigned long *,unsigned
long,BSTR *);")
-cpp_quote(" unsigned char *__RPC_API BSTR_UserMarshal(unsigned long
*,unsigned char *,BSTR *);")
-cpp_quote(" unsigned char *__RPC_API BSTR_UserUnmarshal(unsigned long
*,unsigned char *,BSTR *);")
-cpp_quote(" void __RPC_API BSTR_UserFree(unsigned long *,BSTR *);")
-cpp_quote(" unsigned long __RPC_API HMENU_UserSize(unsigned long *,unsigned
long,HMENU *);")
-cpp_quote(" unsigned char *__RPC_API HMENU_UserMarshal(unsigned long
*,unsigned char *,HMENU *);")
-cpp_quote(" unsigned char *__RPC_API HMENU_UserUnmarshal(unsigned long
*,unsigned char *,HMENU *);")
-cpp_quote(" void __RPC_API HMENU_UserFree(unsigned long *,HMENU *);")
-cpp_quote(" unsigned long __RPC_API HWND_UserSize(unsigned long *,unsigned
long,HWND *);")
-cpp_quote(" unsigned char *__RPC_API HWND_UserMarshal(unsigned long
*,unsigned char *,HWND *);")
-cpp_quote(" unsigned char *__RPC_API HWND_UserUnmarshal(unsigned long
*,unsigned char *,HWND *);")
-cpp_quote(" void __RPC_API HWND_UserFree(unsigned long *,HWND *);")
-cpp_quote(" unsigned long __RPC_API VARIANT_UserSize(unsigned long *,unsigned
long,VARIANT *);")
-cpp_quote(" unsigned char *__RPC_API VARIANT_UserMarshal(unsigned long
*,unsigned char *,VARIANT *);")
-cpp_quote(" unsigned char *__RPC_API VARIANT_UserUnmarshal(unsigned long
*,unsigned char *,VARIANT *);")
-cpp_quote(" void __RPC_API VARIANT_UserFree(unsigned long *,VARIANT *);")
+cpp_quote(" ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);")
+cpp_quote(" unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char
*,BSTR *);")
+cpp_quote(" unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char
*,BSTR *);")
+cpp_quote(" void __RPC_API BSTR_UserFree(ULONG *,BSTR *);")
+cpp_quote(" ULONG __RPC_API HMENU_UserSize(ULONG *,ULONG,HMENU *);")
+cpp_quote(" unsigned char *__RPC_API HMENU_UserMarshal(ULONG *,unsigned char
*,HMENU *);")
+cpp_quote(" unsigned char *__RPC_API HMENU_UserUnmarshal(ULONG *,unsigned
char *,HMENU *);")
+cpp_quote(" void __RPC_API HMENU_UserFree(ULONG *,HMENU *);")
+cpp_quote(" ULONG __RPC_API HWND_UserSize(ULONG *,ULONG,HWND *);")
+cpp_quote(" unsigned char *__RPC_API HWND_UserMarshal(ULONG *,unsigned char
*,HWND *);")
+cpp_quote(" unsigned char *__RPC_API HWND_UserUnmarshal(ULONG *,unsigned char
*,HWND *);")
+cpp_quote(" void __RPC_API HWND_UserFree(ULONG *,HWND *);")
+cpp_quote(" ULONG __RPC_API VARIANT_UserSize(ULONG *,ULONG,VARIANT *);")
+cpp_quote(" unsigned char *__RPC_API VARIANT_UserMarshal(ULONG *,unsigned
char *,VARIANT *);")
+cpp_quote(" unsigned char *__RPC_API VARIANT_UserUnmarshal(ULONG *,unsigned
char *,VARIANT *);")
+cpp_quote(" void __RPC_API VARIANT_UserFree(ULONG *,VARIANT *);")
Index: oleacc.h
===================================================================
--- oleacc.h (revision 5302)
+++ oleacc.h (working copy)
@@ -1110,22 +1110,22 @@
#endif
#endif
- unsigned long __RPC_API BSTR_UserSize(unsigned long *,unsigned long,BSTR *);
- unsigned char *__RPC_API BSTR_UserMarshal(unsigned long *,unsigned char
*,BSTR *);
- unsigned char *__RPC_API BSTR_UserUnmarshal(unsigned long *,unsigned char
*,BSTR *);
- void __RPC_API BSTR_UserFree(unsigned long *,BSTR *);
- unsigned long __RPC_API HMENU_UserSize(unsigned long *,unsigned long,HMENU
*);
- unsigned char *__RPC_API HMENU_UserMarshal(unsigned long *,unsigned char
*,HMENU *);
- unsigned char *__RPC_API HMENU_UserUnmarshal(unsigned long *,unsigned char
*,HMENU *);
- void __RPC_API HMENU_UserFree(unsigned long *,HMENU *);
- unsigned long __RPC_API HWND_UserSize(unsigned long *,unsigned long,HWND *);
- unsigned char *__RPC_API HWND_UserMarshal(unsigned long *,unsigned char
*,HWND *);
- unsigned char *__RPC_API HWND_UserUnmarshal(unsigned long *,unsigned char
*,HWND *);
- void __RPC_API HWND_UserFree(unsigned long *,HWND *);
- unsigned long __RPC_API VARIANT_UserSize(unsigned long *,unsigned
long,VARIANT *);
- unsigned char *__RPC_API VARIANT_UserMarshal(unsigned long *,unsigned char
*,VARIANT *);
- unsigned char *__RPC_API VARIANT_UserUnmarshal(unsigned long *,unsigned char
*,VARIANT *);
- void __RPC_API VARIANT_UserFree(unsigned long *,VARIANT *);
+ ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);
+ unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char *,BSTR *);
+ unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char *,BSTR *);
+ void __RPC_API BSTR_UserFree(ULONG *,BSTR *);
+ ULONG __RPC_API HMENU_UserSize(ULONG *,ULONG,HMENU *);
+ unsigned char *__RPC_API HMENU_UserMarshal(ULONG *,unsigned char *,HMENU *);
+ unsigned char *__RPC_API HMENU_UserUnmarshal(ULONG *,unsigned char *,HMENU
*);
+ void __RPC_API HMENU_UserFree(ULONG *,HMENU *);
+ ULONG __RPC_API HWND_UserSize(ULONG *,ULONG,HWND *);
+ unsigned char *__RPC_API HWND_UserMarshal(ULONG *,unsigned char *,HWND *);
+ unsigned char *__RPC_API HWND_UserUnmarshal(ULONG *,unsigned char *,HWND *);
+ void __RPC_API HWND_UserFree(ULONG *,HWND *);
+ ULONG __RPC_API VARIANT_UserSize(ULONG *,ULONG,VARIANT *);
+ unsigned char *__RPC_API VARIANT_UserMarshal(ULONG *,unsigned char *,VARIANT
*);
+ unsigned char *__RPC_API VARIANT_UserUnmarshal(ULONG *,unsigned char
*,VARIANT *);
+ void __RPC_API VARIANT_UserFree(ULONG *,VARIANT *);
/* Begin additional prototypes for all interfaces */
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public