5 * Some class IDs. Let's hope they are unique enough.
8 static const IID LIBID
= {
9 0xca586c7f, 0x7c84, 0x4b88,
10 {0x85, 0x37, 0x72, 0x67, 0x24, 0xdf, 0x69, 0x29}
13 static const CLSID CLSID_git_shell_ext
= {
14 0xca586c80, 0x7c84, 0x4b88,
15 {0x85, 0x37, 0x72, 0x67, 0x24, 0xdf, 0x69, 0x29}
18 static const IID IID_git_shell_ext
= {
19 0xca586c81, 0x7c84, 0x4b88,
20 {0x85, 0x37, 0x72, 0x67, 0x24, 0xdf, 0x69, 0x29}
23 static const CLSID CLSID_git_menu
= {
24 0xca586c82, 0x7c84, 0x4b88,
25 {0x85, 0x37, 0x72, 0x67, 0x24, 0xdf, 0x69, 0x29}
28 static const IID IID_git_menu
= {
29 0xca586c83, 0x7c84, 0x4b88,
30 {0x85, 0x37, 0x72, 0x67, 0x24, 0xdf, 0x69, 0x29}
33 // {62871171-DCED-4caf-8483-952EE3D610F9}
34 static const IID IID_git_columns
= {
35 0x62871171, 0xdced, 0x4caf,
36 {0x84, 0x83, 0x95, 0x2e, 0xe3, 0xd6, 0x10, 0xf9}
39 extern struct git_shell_ext_virtual_table
41 STDMETHOD(query_interface
)(void *, REFIID
, PVOID
*);
42 STDMETHOD_(ULONG
, add_ref
)(void *);
43 STDMETHOD_(ULONG
, release
)(void *);
44 STDMETHOD(initialize
)(void *,
45 LPCITEMIDLIST
, LPDATAOBJECT
, HKEY
);
46 } git_shell_ext_virtual_table
;
48 #define DEFINE_STANDARD_METHODS(name) \
49 static ULONG STDMETHODCALLTYPE add_ref_##name(void *p) { \
50 struct name *this_ = p; \
51 return add_ref_git_data(this_->git_data); \
54 static ULONG STDMETHODCALLTYPE \
55 release_##name(void *p) { \
56 struct name *this_ = p; \
57 return release_git_data(this_->git_data); \
60 static STDMETHODIMP query_interface_##name(void *p, \
61 REFIID iid, LPVOID FAR *pointer) { \
62 struct name *this_ = p; \
63 return query_interface_git_data(this_->git_data, \
67 static STDMETHODIMP initialize_##name(void *p, \
68 LPCITEMIDLIST folder, LPDATAOBJECT data, HKEY id) { \
69 struct name *this_ = p; \
70 return initialize_git_data(this_->git_data, folder, data, id); \
73 extern DWORD object_count
;
74 extern DWORD lock_count
;
76 inline STDMETHODIMP
query_interface_git_data(struct git_data
*this_
,
77 REFIID iid
, LPVOID FAR
*pointer
);
78 inline ULONG STDMETHODCALLTYPE
add_ref_git_data(struct git_data
*this_
);
79 inline ULONG STDMETHODCALLTYPE
release_git_data(struct git_data
*this_
);
80 inline STDMETHODIMP
initialize_git_data(struct git_data
*this_
,
82 LPDATAOBJECT data
, HKEY id
);