summaryrefslogtreecommitdiff
path: root/ext/win32ole/win32ole.h
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-08 15:37:32 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-08 15:37:32 +0000
commit98f1494664886e983902ff1e2466c22344e8c97c (patch)
tree8b560f66aa75d862a302d1eb323e790ce0196170 /ext/win32ole/win32ole.h
parent37e45a7dcaf006b53b13d4fc953bb5f833defb73 (diff)
* ext/win32ole/win32ole.c: separate WIN32OLE_TYPE src from win32ole.c.
* ext/win32ole/win32ole.h: ditto. * ext/win32ole/win32ole_type.c: ditto. * ext/win32ole/win32ole_type.h: ditto. * ext/win32ole/depend: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/win32ole.h')
-rw-r--r--ext/win32ole/win32ole.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/ext/win32ole/win32ole.h b/ext/win32ole/win32ole.h
index 2fc0a09..8bd704a 100644
--- a/ext/win32ole/win32ole.h
+++ b/ext/win32ole/win32ole.h
@@ -82,6 +82,7 @@
#define V_UINTREF(X) V_UNION(X, puintVal)
#endif
+#define OLE_ADDREF(X) (X) ? ((X)->lpVtbl->AddRef(X)) : 0
#define OLE_RELEASE(X) (X) ? ((X)->lpVtbl->Release(X)) : 0
#define OLE_FREE(x) {\
if(ole_initialized() == TRUE) {\
@@ -92,10 +93,14 @@
}\
}
+#define OLE_GET_TYPEATTR(X, Y) ((X)->lpVtbl->GetTypeAttr((X), (Y)))
+#define OLE_RELEASE_TYPEATTR(X, Y) ((X)->lpVtbl->ReleaseTypeAttr((X), (Y)))
+
VALUE cWIN32OLE;
-VALUE cWIN32OLE_TYPE;
+VALUE cWIN32OLE_VARIABLE;
LCID cWIN32OLE_lcid;
+
LPWSTR ole_vstr2wc(VALUE vstr);
LONG reg_open_key(HKEY hkey, const char *name, HKEY *phkey);
LONG reg_open_vkey(HKEY hkey, VALUE key, HKEY *phkey);
@@ -106,14 +111,20 @@ void ole_initialize(void);
VALUE default_inspect(VALUE self, const char *class_name);
VALUE ole_wc2vstr(LPWSTR pw, BOOL isfree);
-
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
BOOL ole_initialized();
-VALUE create_win32ole_type(ITypeInfo *pTypeInfo, VALUE name);
+VALUE ole_methods_from_typeinfo(ITypeInfo *pTypeInfo, int mask);
+HRESULT ole_docinfo_from_type(ITypeInfo *pTypeInfo, BSTR *name, BSTR *helpstr, DWORD *helpcontext, BSTR *helpfile);
+VALUE ole_typedesc2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails);
+VALUE ole_typelib_from_itypeinfo(ITypeInfo *pTypeInfo);
+VALUE ole_type_from_itypeinfo(ITypeInfo *pTypeInfo);
+
+VALUE create_win32ole_variable(ITypeInfo *pTypeInfo, UINT index, VALUE name);
#include "win32ole_variant_m.h"
#include "win32ole_typelib.h"
+#include "win32ole_type.h"
#include "win32ole_error.h"
#endif