cmd.exe: Support cd .. when saving current directory.
[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 LONG INKOBJ_refCount = 0;
23 HINSTANCE INKOBJ_hInstance;
24
25 /*****************************************************
26  *    DllMain (INKOBJ.init)
27  */
28 BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
29 {
30     TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
31
32     switch(reason)
33     {
34     case DLL_WINE_PREATTACH:
35         return FALSE; /* prefer native version */
36     case DLL_PROCESS_ATTACH:
37         DisableThreadLibraryCalls( hinst );
38         INKOBJ_hInstance = hinst;
39         break;
40     }
41     return TRUE;
42 }
43
44 /*****************************************************
45  *    DllCanUnloadNow (INKOBJ.@)
46  */
47 HRESULT WINAPI DllCanUnloadNow(void)
48 {
49     return (INKOBJ_refCount != 0)? S_FALSE : S_OK;
50 }
51
52 /*****************************************************
53  *    DllGetClassObject [INKOBJ.@]
54  */
55 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
56 {
57     FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid));
58     return CLASS_E_CLASSNOTAVAILABLE;
59 }
60
61 /*****************************************************
62  *    DllRegisterServer (INKOBJ.@)
63  */
64 HRESULT WINAPI DllRegisterServer(void)
65 {
66     FIXME("Not implemented.\n");
67     return E_UNEXPECTED; /* unable to register */
68 }
69
70 /*****************************************************
71  *    DllUnregisterServer (INKOBJ.@)
72  */
73 HRESULT WINAPI DllUnregisterServer(void)
74 {
75     FIXME("Not implemented.\n");
76     return E_UNEXPECTED; /* unable to register */
77 }