1c2c66affSColin Finck /*
2c2c66affSColin Finck * Query Implementation
3c2c66affSColin Finck *
4c2c66affSColin Finck * Copyright 2006 Mike McCormack
5c2c66affSColin Finck *
6c2c66affSColin Finck * This library is free software; you can redistribute it and/or
7c2c66affSColin Finck * modify it under the terms of the GNU Lesser General Public
8c2c66affSColin Finck * License as published by the Free Software Foundation; either
9c2c66affSColin Finck * version 2.1 of the License, or (at your option) any later version.
10c2c66affSColin Finck *
11c2c66affSColin Finck * This library is distributed in the hope that it will be useful,
12c2c66affSColin Finck * but WITHOUT ANY WARRANTY; without even the implied warranty of
13c2c66affSColin Finck * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14c2c66affSColin Finck * Lesser General Public License for more details.
15c2c66affSColin Finck *
16c2c66affSColin Finck * You should have received a copy of the GNU Lesser General Public
17c2c66affSColin Finck * License along with this library; if not, write to the Free Software
18c2c66affSColin Finck * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19c2c66affSColin Finck */
20c2c66affSColin Finck
21c2c66affSColin Finck #define COBJMACROS
22c2c66affSColin Finck
23c2c66affSColin Finck
24c2c66affSColin Finck #include <stdarg.h>
25c2c66affSColin Finck
26*84278300SAmine Khaldi #include "windef.h"
27*84278300SAmine Khaldi #include "winbase.h"
28*84278300SAmine Khaldi #include "winuser.h"
29*84278300SAmine Khaldi #include "winreg.h"
30*84278300SAmine Khaldi #include "ole2.h"
31*84278300SAmine Khaldi #include "ntquery.h"
32*84278300SAmine Khaldi #include "cierror.h"
33*84278300SAmine Khaldi #include "initguid.h"
34c2c66affSColin Finck
35*84278300SAmine Khaldi #include "wine/debug.h"
36c2c66affSColin Finck
37c2c66affSColin Finck WINE_DEFAULT_DEBUG_CHANNEL(query);
38c2c66affSColin Finck
DllMain(HINSTANCE hInstDLL,DWORD fdwReason,LPVOID lpv)39c2c66affSColin Finck BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
40c2c66affSColin Finck {
41c2c66affSColin Finck switch(fdwReason)
42c2c66affSColin Finck {
43c2c66affSColin Finck case DLL_WINE_PREATTACH:
44c2c66affSColin Finck return FALSE; /* prefer native version */
45c2c66affSColin Finck case DLL_PROCESS_ATTACH:
46c2c66affSColin Finck DisableThreadLibraryCalls(hInstDLL);
47c2c66affSColin Finck break;
48c2c66affSColin Finck }
49c2c66affSColin Finck return TRUE;
50c2c66affSColin Finck }
51c2c66affSColin Finck
52c2c66affSColin Finck /***********************************************************************
53c2c66affSColin Finck * DllGetClassObject (QUERY.@)
54c2c66affSColin Finck */
DllGetClassObject(REFCLSID rclsid,REFIID iid,LPVOID * ppv)55c2c66affSColin Finck HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
56c2c66affSColin Finck {
57c2c66affSColin Finck FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
58c2c66affSColin Finck
59c2c66affSColin Finck return CLASS_E_CLASSNOTAVAILABLE;
60c2c66affSColin Finck }
61c2c66affSColin Finck
DllCanUnloadNow(void)62c2c66affSColin Finck HRESULT WINAPI DllCanUnloadNow(void)
63c2c66affSColin Finck {
64c2c66affSColin Finck return S_FALSE;
65c2c66affSColin Finck }
66c2c66affSColin Finck
DllRegisterServer(void)67c2c66affSColin Finck HRESULT WINAPI DllRegisterServer(void)
68c2c66affSColin Finck {
69c2c66affSColin Finck FIXME("\n");
70c2c66affSColin Finck return S_OK;
71c2c66affSColin Finck }
72c2c66affSColin Finck
CIState(WCHAR const * pwcsCat,WCHAR const * pwcsMachine,CI_STATE * pCiState)73c2c66affSColin Finck HRESULT WINAPI CIState( WCHAR const *pwcsCat, WCHAR const *pwcsMachine, CI_STATE *pCiState)
74c2c66affSColin Finck {
75c2c66affSColin Finck FIXME("%s %s %p\n", debugstr_w(pwcsCat), debugstr_w(pwcsMachine), pCiState);
76c2c66affSColin Finck return CI_E_NOT_RUNNING;
77c2c66affSColin Finck }
78c2c66affSColin Finck
LocateCatalogsA(CHAR const * pwszScope,ULONG iBm,CHAR * pwszMachine,ULONG * pcMachine,CHAR * pwszCat,ULONG * pcCat)79c2c66affSColin Finck HRESULT WINAPI LocateCatalogsA(CHAR const *pwszScope, ULONG iBm,
80c2c66affSColin Finck CHAR *pwszMachine, ULONG *pcMachine,
81c2c66affSColin Finck CHAR *pwszCat, ULONG *pcCat)
82c2c66affSColin Finck {
83c2c66affSColin Finck
84c2c66affSColin Finck FIXME("%s %u %p %p %p %p\n", debugstr_a(pwszScope),
85c2c66affSColin Finck iBm, pwszMachine, pcMachine, pwszCat, pcCat);
86c2c66affSColin Finck return CI_E_NOT_RUNNING;
87c2c66affSColin Finck }
88c2c66affSColin Finck
LocateCatalogsW(WCHAR const * pwszScope,ULONG iBm,WCHAR * pwszMachine,ULONG * pcMachine,WCHAR * pwszCat,ULONG * pcCat)89c2c66affSColin Finck HRESULT WINAPI LocateCatalogsW(WCHAR const *pwszScope, ULONG iBm,
90c2c66affSColin Finck WCHAR *pwszMachine, ULONG *pcMachine,
91c2c66affSColin Finck WCHAR *pwszCat, ULONG *pcCat)
92c2c66affSColin Finck {
93c2c66affSColin Finck
94c2c66affSColin Finck FIXME("%s %u %p %p %p %p\n", debugstr_w(pwszScope),
95c2c66affSColin Finck iBm, pwszMachine, pcMachine, pwszCat, pcCat);
96c2c66affSColin Finck return CI_E_NOT_RUNNING;
97c2c66affSColin Finck }
98c2c66affSColin Finck
LoadIFilter(WCHAR const * pwcsPath,IUnknown * pUnkOuter,void ** ppIUnk)99c2c66affSColin Finck HRESULT WINAPI LoadIFilter(WCHAR const *pwcsPath, IUnknown *pUnkOuter, void **ppIUnk)
100c2c66affSColin Finck {
101c2c66affSColin Finck FIXME("%s %p %p\n", debugstr_w(pwcsPath), pUnkOuter, ppIUnk);
102c2c66affSColin Finck *ppIUnk = NULL;
103c2c66affSColin Finck return E_NOTIMPL;
104c2c66affSColin Finck }
105