winspool: Remove cross calls W->A for the "Printers" registry path.
[wine] / dlls / cfgmgr32 / main.c
1 /*
2  * cfgmgr32 implementation
3  *
4  * Copyright 2004 Aric Stewart for CodeWeavers
5  * Copyright 2003 Mike McCormack for CodeWeavers
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winnt.h"
26 #include "ddk/cfgmgr32.h"
27
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(cfgmgr32);
31
32 /***********************************************************************
33  *              DllMain  (CFGMGR32.@)
34  */
35 BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
36 {
37     switch(reason)
38     {
39     case DLL_WINE_PREATTACH:
40         return FALSE;  /* prefer native version */
41     case DLL_PROCESS_ATTACH:
42         DisableThreadLibraryCalls( inst );
43         break;
44     }
45     return TRUE;
46 }
47
48 /***********************************************************************
49  *              CM_Get_Device_ID_ListA  (CFGMGR32.@)
50  */
51 CONFIGRET WINAPI CM_Get_Device_ID_ListA( 
52     PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
53 {
54     FIXME("%p %p %ld %ld\n", pszFilter, Buffer, BufferLen, ulFlags );
55     memset(Buffer,0,2);
56     return CR_SUCCESS;
57 }
58
59 /***********************************************************************
60  *              CM_Get_Device_ID_Size  (CFGMGR32.@)
61  */
62 CONFIGRET WINAPI CM_Get_Device_ID_Size( ULONG*  pulLen, LPVOID dnDevInst,
63                                         ULONG  ulFlags)
64 {
65     FIXME("%p %p %lu\n",pulLen, dnDevInst, ulFlags);
66     *pulLen = 1;
67     return CR_SUCCESS;
68 }
69
70 /***********************************************************************
71  *              CM_Get_Device_IDA  (CFGMGR32.@)
72  */
73 CONFIGRET WINAPI CM_Get_Device_IDA( LPVOID dnDevInst, LPSTR Buffer, 
74                                    ULONG  BufferLen, ULONG  ulFlags)
75 {
76     FIXME("%p, %p, %lu %lu\n",dnDevInst, Buffer, BufferLen, ulFlags);
77     Buffer[0] = 0;
78     return CR_SUCCESS;
79 }