wined3d: Implement texbeml in arb shaders.
[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 <stdarg.h>
19
20 #include "windef.h"
21 #include "winbase.h"
22 #include "winerror.h"
23 #include "wine/debug.h"
24
25 WINE_DEFAULT_DEBUG_CHANNEL(inkobj);
26
27 static LONG INKOBJ_refCount;
28 static HINSTANCE INKOBJ_hInstance;
29
30 /*****************************************************
31  *    DllMain (INKOBJ.init)
32  */
33 BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
34 {
35     TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
36
37     switch(reason)
38     {
39     case DLL_WINE_PREATTACH:
40         return FALSE; /* prefer native version */
41     case DLL_PROCESS_ATTACH:
42         DisableThreadLibraryCalls( hinst );
43         INKOBJ_hInstance = hinst;
44         break;
45     }
46     return TRUE;
47 }
48
49 /*****************************************************
50  *    DllCanUnloadNow (INKOBJ.@)
51  */
52 HRESULT WINAPI DllCanUnloadNow(void)
53 {
54     return (INKOBJ_refCount != 0)? S_FALSE : S_OK;
55 }
56
57 /*****************************************************
58  *    DllGetClassObject [INKOBJ.@]
59  */
60 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
61 {
62     FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid));
63     return CLASS_E_CLASSNOTAVAILABLE;
64 }
65
66 /*****************************************************
67  *    DllRegisterServer (INKOBJ.@)
68  */
69 HRESULT WINAPI DllRegisterServer(void)
70 {
71     FIXME("Not implemented.\n");
72     return E_UNEXPECTED; /* unable to register */
73 }
74
75 /*****************************************************
76  *    DllUnregisterServer (INKOBJ.@)
77  */
78 HRESULT WINAPI DllUnregisterServer(void)
79 {
80     FIXME("Not implemented.\n");
81     return E_UNEXPECTED; /* unable to register */
82 }