:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / include / ole32 / obj_queryassociations.h
1 /************************************************************
2  *    IQueryAssociations
3  */
4
5 #ifndef __WINE_WINE_OBJ_QUERYASSOCIATIONS_H
6 #define __WINE_WINE_OBJ_QUERYASSOCIATIONS_H
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif /* defined(__cplusplus) */
11
12 DEFINE_GUID(IID_IQueryAssociations, 0xc46ca590, 0x3c3f, 0x11d2, 0xbe, 0xe6, 0x00, 0x00, 0xf8, 0x05, 0xca, 0x57);
13
14 typedef struct IQueryAssociations IQueryAssociations,*LPQUERYASSOCIATIONS;
15
16 #define ASSOCF_INIT_BYEXENAME           0x00000002
17 #define ASSOCF_OPEN_BYEXENAME           0x00000002
18 #define ASSOCF_INIT_DEFAULTTOSTAR       0x00000004
19 #define ASSOCF_INIT_DEFAULTTOFOLDER     0x00000008
20 #define ASSOCF_NOUSERSETTINGS           0x00000010
21 #define ASSOCF_NOTRUNCATE               0x00000020
22 #define ASSOCF_VERIFY                   0x00000040
23 #define ASSOCF_REMAPRUNDLL              0x00000080
24 #define ASSOCF_NOFIXUPS                 0x00000100
25 #define ASSOCF_IGNOREBASECLASS          0x00000200
26
27 typedef DWORD ASSOCF;
28
29 typedef enum
30 {
31         ASSOCSTR_COMMAND      = 1,
32         ASSOCSTR_EXECUTABLE,
33         ASSOCSTR_FRIENDLYDOCNAME,
34         ASSOCSTR_FRIENDLYAPPNAME,
35         ASSOCSTR_NOOPEN,
36         ASSOCSTR_SHELLNEWVALUE,
37         ASSOCSTR_DDECOMMAND,
38         ASSOCSTR_DDEIFEXEC,
39         ASSOCSTR_DDEAPPLICATION,
40         ASSOCSTR_DDETOPIC,
41         ASSOCSTR_MAX 
42 } ASSOCSTR;
43
44 typedef enum
45 {
46         ASSOCKEY_SHELLEXECCLASS = 1,
47         ASSOCKEY_APP,  
48         ASSOCKEY_CLASS,
49         ASSOCKEY_BASECLASS,
50         ASSOCKEY_MAX   
51 } ASSOCKEY;
52
53 typedef enum
54 {
55         ASSOCDATA_MSIDESCRIPTOR = 1,
56         ASSOCDATA_NOACTIVATEHANDLER,
57         ASSOCDATA_QUERYCLASSSTORE,
58         ASSOCDATA_HASPERUSERASSOC,
59         ASSOCDATA_MAX
60 } ASSOCDATA;
61
62 typedef enum
63 {
64         ASSOCENUM_NONE
65 } ASSOCENUM;
66
67 #define ICOM_INTERFACE IQueryAssociations
68 #define IQueryAssociations_METHODS \
69     ICOM_METHOD4 (HRESULT, Init, ASSOCF, flags, LPCWSTR, pszAssoc, HKEY, hkProgid, HWND, hwnd) \
70     ICOM_METHOD5 (HRESULT, GetString, ASSOCF, flags, ASSOCSTR, str, LPCWSTR, pszExtra, LPWSTR, pszOut, DWORD*, pcchOut) \
71     ICOM_METHOD4 (HRESULT, GetKey, ASSOCF, flags, ASSOCKEY, key, LPCWSTR, pszExtra, HKEY*, phkeyOut) \
72     ICOM_METHOD5 (HRESULT, GetData, ASSOCF, flags, ASSOCDATA, data, LPCWSTR, pszExtra, LPVOID, pvOut, DWORD*, pcbOut) \
73     ICOM_METHOD5 (HRESULT, GetEnum, ASSOCF, flags, ASSOCENUM, assocenum, LPCWSTR, pszExtra, REFIID, riid, LPVOID*, ppvOut)
74 #define IQueryAssociations_IMETHODS \
75         IUnknown_IMETHODS \
76         IQueryAssociations_METHODS
77 ICOM_DEFINE(IQueryAssociations,IUnknown)
78 #undef ICOM_INTERFACE
79
80 #define IQueryAssociations_QueryInterface(p,a,b)        ICOM_CALL2(QueryInterface,p,a,b)
81 #define IQueryAssociations_AddRef(p)                    ICOM_CALL(AddRef,p)
82 #define IQueryAssociations_Release(p)                   ICOM_CALL(Release,p)
83 #define IQueryAssociations_Init(p,a,b,c,d)              ICOM_CALL4(Init,p,a,b,c,d)
84 #define IQueryAssociations_GetString(p,a,b,c,d,e)       ICOM_CALL5(GetString,p,a,b,c,d,e)
85 #define IQueryAssociations_GetKey(p,a,b,c,d)            ICOM_CALL4(GetKey,p,a,b,c,d)
86 #define IQueryAssociations_GetData(p,a,b,c,d,e)         ICOM_CALL5(GetData,p,a,b,c,d,e)
87 #define IQueryAssociations_GetEnum(p,a,b,c,d,e)         ICOM_CALL5(GetEnum,p,a,b,c,d,e)
88
89 #ifdef __cplusplus
90 } /* extern "C" */
91 #endif /* defined(__cplusplus) */
92
93 #endif /* __WINE_WINE_OBJ_QUERYASSOCIATIONS_H */
94