1 | /*
|
---|
2 | * cmnquery.h - Active Directory
|
---|
3 | *
|
---|
4 | * THIS SOFTWARE IS NOT COPYRIGHTED
|
---|
5 | *
|
---|
6 | * This source code is offered for use in the public domain. You may use,
|
---|
7 | * modify or distribute it freely.
|
---|
8 | *
|
---|
9 | * This code is distributed in the hope that it will be useful but
|
---|
10 | * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
---|
11 | * DISCLAIMED. This includes but is not limited to warranties of
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
13 | *
|
---|
14 | */
|
---|
15 | #ifndef _CMNQUERY_H
|
---|
16 | #define _CMNQUERY_H
|
---|
17 | #if __GNUC__ >= 3
|
---|
18 | #pragma GCC system_header
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | #ifdef __cplusplus
|
---|
22 | extern "C" {
|
---|
23 | #endif
|
---|
24 |
|
---|
25 | /*--- Active Directory Reference - Active Directory Structures - Active Directory Display Structures */
|
---|
26 | #if (_WIN32_WINNT >= 0x0500)
|
---|
27 | typedef struct {
|
---|
28 | DWORD cbStruct;
|
---|
29 | DWORD dwFlags;
|
---|
30 | CLSID clsid;
|
---|
31 | HICON hIcon;
|
---|
32 | LPWSTR pszTitle;
|
---|
33 | } CQFORM,*LPCQFORM;
|
---|
34 | #define CQFF_NOGLOBALPAGES 0x00000001
|
---|
35 | #define CQFF_ISOPTIONAL 0x00000002
|
---|
36 | typedef struct {
|
---|
37 | DWORD cbStruct;
|
---|
38 | DWORD dwFlags;
|
---|
39 | LPCQPAGEPROC pPageProc;
|
---|
40 | HINSTANCE hInstance;
|
---|
41 | INT idPageName;
|
---|
42 | INT idPageTemplate;
|
---|
43 | DLGPROC pDlgProc;
|
---|
44 | LPARAM lParam;
|
---|
45 | } CQPAGE,*LPCQPAGE;
|
---|
46 | /*********
|
---|
47 | typedef struct {
|
---|
48 | DWORD cbStruct;
|
---|
49 | DWORD dwFlags;
|
---|
50 | CLSID clsidHandler;
|
---|
51 | LPVOID pHandlerParameters;
|
---|
52 | CLSID clsidDefaultForm;
|
---|
53 | IPersistQuery* pPersistQuery;
|
---|
54 | union {
|
---|
55 | void* pFormParameters;
|
---|
56 | IPropertyBag* ppbFormParameters;
|
---|
57 | };
|
---|
58 | } OPENQUERYWINDOW,*LPOPENQUERYWINDOW;
|
---|
59 | *********/
|
---|
60 | #define OQWF_OKCANCEL 0x00000001
|
---|
61 | #define OQWF_DEFAULTFORM 0x00000002
|
---|
62 | #define OQWF_SINGLESELECT 0x00000004
|
---|
63 | #define OQWF_LOADQUERY 0x00000008
|
---|
64 | #define OQWF_REMOVESCOPES 0x00000010
|
---|
65 | #define OQWF_REMOVEFORMS 0x00000020
|
---|
66 | #define OQWF_ISSUEONOPEN 0x00000040
|
---|
67 | #define OQWF_SHOWOPTIONAL 0x00000080
|
---|
68 | #define OQWF_SAVEQUERYONOK 0x00000200
|
---|
69 | #define OQWF_HIDEMENUS 0x00000400
|
---|
70 | #define OQWF_HIDESEARCHUI 0x00000800
|
---|
71 | #define OQWF_PARAMISPROPERTYBAG 0x80000000
|
---|
72 | /*--- Active Directory Reference - Active Directory Functions - Active Directory Display Functions */
|
---|
73 | typedef HRESULT (CALLBACK* CQAddFormsProc)(LPARAM,LPCQFORM);
|
---|
74 | typedef HRESULT (CALLBACK* CQAddPagesProc)(LPARAM,REFCLSID,LPCQPAGE);
|
---|
75 | typedef HRESULT (CALLBACK* CQPageProc)(LPCQPAGE,HWND,UINT,WPARAM,LPARAM);
|
---|
76 | #endif /* (_WIN32_WINNT >= 0x0500) */
|
---|
77 |
|
---|
78 | #ifdef __cplusplus
|
---|
79 | }
|
---|
80 | #endif
|
---|
81 | #endif
|
---|