atl80: Added AtlComModuleRegisterServer implementation (based on AtlModuleRegisterSer...
[wine] / dlls / mmdevldr.vxd / mmdevldr.c
1 /*
2  * MMDEVLDR VxD implementation
3  *
4  * Copyright 1998 Marcus Meissner
5  * Copyright 1998 Ulrich Weigand
6  * Copyright 1998 Patrik Stridvall
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21  */
22
23 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wine/debug.h"
27
28 WINE_DEFAULT_DEBUG_CHANNEL(vxd);
29
30
31 /***********************************************************************
32  *           DeviceIoControl   (MMDEVLDR.VXD.@)
33  */
34 BOOL WINAPI MMDEVLDR_DeviceIoControl(DWORD dwIoControlCode,
35                                      LPVOID lpvInBuffer, DWORD cbInBuffer,
36                                      LPVOID lpvOutBuffer, DWORD cbOutBuffer,
37                                      LPDWORD lpcbBytesReturned,
38                                      LPOVERLAPPED lpOverlapped)
39 {
40     FIXME("(%d,%p,%d,%p,%d,%p,%p): stub\n",
41           dwIoControlCode,
42           lpvInBuffer,cbInBuffer,
43           lpvOutBuffer,cbOutBuffer,
44           lpcbBytesReturned,
45           lpOverlapped );
46
47     switch (dwIoControlCode)
48     {
49     case 5:
50         /* Hmm. */
51         *(DWORD*)lpvOutBuffer=0;
52         *lpcbBytesReturned=sizeof(DWORD);
53         return TRUE;
54     default:
55         return FALSE;
56     }
57 }