wineps.drv: Ignore requested resolutions not supported by device.
[wine] / dlls / inkobj / inkobj.c
1 /* Copyright (C) 2007 C John Klehm
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17
18 #include "inkobj_internal.h"
19
20 WINE_DEFAULT_DEBUG_CHANNEL(inkobj);
21
22 static LONG INKOBJ_refCount;
23
24 /*****************************************************
25  *    DllMain (INKOBJ.init)
26  */
27 BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
28 {
29     TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
30
31     switch(reason)
32     {
33     case DLL_WINE_PREATTACH:
34         return FALSE; /* prefer native version */
35     case DLL_PROCESS_ATTACH:
36         DisableThreadLibraryCalls( hinst );
37         break;
38     }
39     return TRUE;
40 }
41
42 /*****************************************************
43  *    DllCanUnloadNow (INKOBJ.@)
44  */
45 HRESULT WINAPI DllCanUnloadNow(void)
46 {
47     return (INKOBJ_refCount != 0)? S_FALSE : S_OK;
48 }
49
50 /*****************************************************
51  *    DllGetClassObject [INKOBJ.@]
52  */
53 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
54 {
55     FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid));
56     return CLASS_E_CLASSNOTAVAILABLE;
57 }
58
59 /*****************************************************
60  *    DllRegisterServer (INKOBJ.@)
61  */
62 HRESULT WINAPI DllRegisterServer(void)
63 {
64     FIXME("Not implemented.\n");
65     return E_UNEXPECTED; /* unable to register */
66 }
67
68 /*****************************************************
69  *    DllUnregisterServer (INKOBJ.@)
70  */
71 HRESULT WINAPI DllUnregisterServer(void)
72 {
73     FIXME("Not implemented.\n");
74     return E_UNEXPECTED; /* unable to register */
75 }