Added DLL_WINE_PREATTACH handling in a number of stub-only dlls.
[wine/multimedia.git] / dlls / cfgmgr32 / main.c
blob03129005ec4f7ae38e53973100a81e004d83d044
1 /*
2 * cfgmgr32 implementation
4 * Copyright 2004 Aric Stewart for CodeWeavers
5 * Copyright 2003 Mike McCormack for CodeWeavers
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.
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.
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
22 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winnt.h"
26 #include "ddk/cfgmgr32.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(cfgmgr32);
32 /***********************************************************************
33 * DllMain (CFGMGR32.@)
35 BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
37 switch(reason)
39 case DLL_WINE_PREATTACH:
40 return FALSE; /* prefer native version */
41 case DLL_PROCESS_ATTACH:
42 DisableThreadLibraryCalls( inst );
43 break;
45 return TRUE;
48 CONFIGRET WINAPI CM_Get_Device_ID_ListA(
49 PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
51 FIXME("%p %p %ld %ld\n", pszFilter, Buffer, BufferLen, ulFlags );
52 memset(Buffer,0,2);
53 return CR_SUCCESS;
56 CONFIGRET WINAPI CM_Get_Device_ID_Size( ULONG* pulLen, LPVOID dnDevInst,
57 ULONG ulFlags)
59 FIXME("%p %p %lu\n",pulLen, dnDevInst, ulFlags);
60 *pulLen = 1;
61 return CR_SUCCESS;
64 CONFIGRET WINAPI CM_Get_Device_IDA( LPVOID dnDevInst, LPSTR Buffer,
65 ULONG BufferLen, ULONG ulFlags)
67 FIXME("%p, %p, %lu %lu\n",dnDevInst, Buffer, BufferLen, ulFlags);
68 Buffer[0] = 0;
69 return CR_SUCCESS;