-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAXCtrl.h
More file actions
32 lines (26 loc) · 726 Bytes
/
AXCtrl.h
File metadata and controls
32 lines (26 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Created by patryk on 23.06.16.
*/
#ifndef AXCTRL_H
#define AXCTRL_H
#include <windows.h>
#include <ocidl.h>
/*
* totally not stoeled from glib
*/
#if __GNUC__ >= 4
#define GNUC_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define GNUC_NULL_TERMINATED
#endif
typedef struct {
IPersistStreamInit *stream;
IDispatch *dispatch;
} AX_object;
HRESULT AX_init(void);
void AX_deinit(void);
HRESULT AX_getControl(AX_object *obj, LPCOLESTR name);
HRESULT AX_destroyControl(AX_object *obj);
HRESULT AX_callMethod(AX_object *obj, OLECHAR *name, enum VARENUM ret_type, void *ret_val, ...) GNUC_NULL_TERMINATED;
HRESULT AX_setValue(AX_object *obj, OLECHAR *name, enum VARENUM type, void *var);
#endif //AXCTRL_H