Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d8b97af8
Commit
d8b97af8
authored
Jun 16, 2003
by
Steven Edwards
Committed by
Alexandre Julliard
Jun 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split Win16/32 setupapi device installer support.
parent
8e6ae023
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
97 deletions
+125
-97
Makefile.in
dlls/setupapi/Makefile.in
+3
-0
devinst.c
dlls/setupapi/devinst.c
+0
-97
devinst16.c
dlls/setupapi/devinst16.c
+122
-0
No files found.
dlls/setupapi/Makefile.in
View file @
d8b97af8
...
...
@@ -24,6 +24,9 @@ C_SRCS = \
stubs.c
\
virtcopy.c
C_SRCS16
=
\
devinst16.c
RC_SRCS
=
setupapi.rc
@MAKE_DLL_RULES@
...
...
dlls/setupapi/devinst.c
View file @
d8b97af8
...
...
@@ -20,109 +20,12 @@
#include "windef.h"
#include "winbase.h"
#include "setupx16.h"
#include "wine/debug.h"
#include "setupapi.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
setupapi
);
/***********************************************************************
* DiGetClassDevs (SETUPX.304)
* Return a list of installed system devices.
* Uses HKLM\\ENUM to list devices.
*/
RETERR16
WINAPI
DiGetClassDevs16
(
LPLPDEVICE_INFO16
lplpdi
,
LPCSTR
lpszClassName
,
HWND16
hwndParent
,
INT16
iFlags
)
{
LPDEVICE_INFO16
lpdi
;
FIXME
(
"(%p, '%s', %04x, %04x), semi-stub.
\n
"
,
lplpdi
,
lpszClassName
,
hwndParent
,
iFlags
);
lpdi
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DEVICE_INFO16
));
lpdi
->
cbSize
=
sizeof
(
DEVICE_INFO16
);
*
lplpdi
=
(
LPDEVICE_INFO16
)
MapLS
(
lpdi
);
return
OK
;
}
/***********************************************************************
* DiBuildCompatDrvList (SETUPX.300)
*/
RETERR16
WINAPI
DiBuildCompatDrvList16
(
LPDEVICE_INFO16
lpdi
)
{
FIXME
(
"(%p): stub
\n
"
,
lpdi
);
lpdi
->
lpCompatDrvList
=
NULL
;
return
FALSE
;
}
/***********************************************************************
* DiCallClassInstaller (SETUPX.308)
*/
RETERR16
WINAPI
DiCallClassInstaller16
(
/*DI_FUNCTIONS*/
WORD
diFctn
,
LPDEVICE_INFO16
lpdi
)
{
FIXME
(
"(%x, %p): stub
\n
"
,
diFctn
,
lpdi
);
return
FALSE
;
}
/***********************************************************************
* DiCreateDevRegKey (SETUPX.318)
*/
RETERR16
WINAPI
DiCreateDevRegKey16
(
LPDEVICE_INFO16
lpdi
,
VOID
*
p2
,
WORD
w3
,
LPCSTR
s4
,
WORD
w5
)
{
FIXME
(
"(%p, %p, %x, %s, %x): stub
\n
"
,
lpdi
,
p2
,
w3
,
debugstr_a
(
s4
),
w5
);
return
FALSE
;
}
/***********************************************************************
* DiDeleteDevRegKey (SETUPX.344)
*/
RETERR16
WINAPI
DiDeleteDevRegKey16
(
LPDEVICE_INFO16
lpdi
,
INT16
iFlags
)
{
FIXME
(
"(%p, %x): stub
\n
"
,
lpdi
,
iFlags
);
return
FALSE
;
}
/***********************************************************************
* DiCreateDeviceInfo (SETUPX.303)
*/
RETERR16
WINAPI
DiCreateDeviceInfo16
(
LPLPDEVICE_INFO16
lplpdi
,
LPCSTR
lpszDescription
,
DWORD
dnDevnode
,
HKEY16
hkey
,
LPCSTR
lpszRegsubkey
,
LPCSTR
lpszClassName
,
HWND16
hwndParent
)
{
LPDEVICE_INFO16
lpdi
;
FIXME
(
"(%p %s %08lx %x %s %s %x): stub
\n
"
,
lplpdi
,
debugstr_a
(
lpszDescription
),
dnDevnode
,
hkey
,
debugstr_a
(
lpszRegsubkey
),
debugstr_a
(
lpszClassName
),
hwndParent
);
lpdi
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DEVICE_INFO16
));
lpdi
->
cbSize
=
sizeof
(
DEVICE_INFO16
);
strcpy
(
lpdi
->
szClassName
,
lpszClassName
);
lpdi
->
hwndParent
=
hwndParent
;
*
lplpdi
=
(
LPDEVICE_INFO16
)
MapLS
(
lpdi
);
return
OK
;
}
/***********************************************************************
* DiDestroyDeviceInfoList (SETUPX.305)
*/
RETERR16
WINAPI
DiDestroyDeviceInfoList16
(
LPDEVICE_INFO16
lpdi
)
{
FIXME
(
"(%p): stub
\n
"
,
lpdi
);
return
FALSE
;
}
/***********************************************************************
* DiOpenDevRegKey (SETUPX.319)
*/
RETERR16
WINAPI
DiOpenDevRegKey16
(
LPDEVICE_INFO16
lpdi
,
LPHKEY16
lphk
,
INT16
iFlags
)
{
FIXME
(
"(%p %p %d): stub
\n
"
,
lpdi
,
lphk
,
iFlags
);
return
FALSE
;
}
/***********************************************************************
* SetupDiGetDeviceInterfaceDetailA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiGetDeviceInterfaceDetailA
(
...
...
dlls/setupapi/devinst16.c
0 → 100644
View file @
d8b97af8
/*
* SetupAPI device installer
*
* Copyright 2000 Andreas Mohr for Codeweavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "windef.h"
#include "winbase.h"
#include "setupx16.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
setupapi
);
/***********************************************************************
* DiGetClassDevs (SETUPX.304)
* Return a list of installed system devices.
* Uses HKLM\\ENUM to list devices.
*/
RETERR16
WINAPI
DiGetClassDevs16
(
LPLPDEVICE_INFO16
lplpdi
,
LPCSTR
lpszClassName
,
HWND16
hwndParent
,
INT16
iFlags
)
{
LPDEVICE_INFO16
lpdi
;
FIXME
(
"(%p, '%s', %04x, %04x), semi-stub.
\n
"
,
lplpdi
,
lpszClassName
,
hwndParent
,
iFlags
);
lpdi
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DEVICE_INFO16
));
lpdi
->
cbSize
=
sizeof
(
DEVICE_INFO16
);
*
lplpdi
=
(
LPDEVICE_INFO16
)
MapLS
(
lpdi
);
return
OK
;
}
/***********************************************************************
* DiBuildCompatDrvList (SETUPX.300)
*/
RETERR16
WINAPI
DiBuildCompatDrvList16
(
LPDEVICE_INFO16
lpdi
)
{
FIXME
(
"(%p): stub
\n
"
,
lpdi
);
lpdi
->
lpCompatDrvList
=
NULL
;
return
FALSE
;
}
/***********************************************************************
* DiCallClassInstaller (SETUPX.308)
*/
RETERR16
WINAPI
DiCallClassInstaller16
(
/*DI_FUNCTIONS*/
WORD
diFctn
,
LPDEVICE_INFO16
lpdi
)
{
FIXME
(
"(%x, %p): stub
\n
"
,
diFctn
,
lpdi
);
return
FALSE
;
}
/***********************************************************************
* DiCreateDevRegKey (SETUPX.318)
*/
RETERR16
WINAPI
DiCreateDevRegKey16
(
LPDEVICE_INFO16
lpdi
,
VOID
*
p2
,
WORD
w3
,
LPCSTR
s4
,
WORD
w5
)
{
FIXME
(
"(%p, %p, %x, %s, %x): stub
\n
"
,
lpdi
,
p2
,
w3
,
debugstr_a
(
s4
),
w5
);
return
FALSE
;
}
/***********************************************************************
* DiDeleteDevRegKey (SETUPX.344)
*/
RETERR16
WINAPI
DiDeleteDevRegKey16
(
LPDEVICE_INFO16
lpdi
,
INT16
iFlags
)
{
FIXME
(
"(%p, %x): stub
\n
"
,
lpdi
,
iFlags
);
return
FALSE
;
}
/***********************************************************************
* DiCreateDeviceInfo (SETUPX.303)
*/
RETERR16
WINAPI
DiCreateDeviceInfo16
(
LPLPDEVICE_INFO16
lplpdi
,
LPCSTR
lpszDescription
,
DWORD
dnDevnode
,
HKEY16
hkey
,
LPCSTR
lpszRegsubkey
,
LPCSTR
lpszClassName
,
HWND16
hwndParent
)
{
LPDEVICE_INFO16
lpdi
;
FIXME
(
"(%p %s %08lx %x %s %s %x): stub
\n
"
,
lplpdi
,
debugstr_a
(
lpszDescription
),
dnDevnode
,
hkey
,
debugstr_a
(
lpszRegsubkey
),
debugstr_a
(
lpszClassName
),
hwndParent
);
lpdi
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DEVICE_INFO16
));
lpdi
->
cbSize
=
sizeof
(
DEVICE_INFO16
);
strcpy
(
lpdi
->
szClassName
,
lpszClassName
);
lpdi
->
hwndParent
=
hwndParent
;
*
lplpdi
=
(
LPDEVICE_INFO16
)
MapLS
(
lpdi
);
return
OK
;
}
/***********************************************************************
* DiDestroyDeviceInfoList (SETUPX.305)
*/
RETERR16
WINAPI
DiDestroyDeviceInfoList16
(
LPDEVICE_INFO16
lpdi
)
{
FIXME
(
"(%p): stub
\n
"
,
lpdi
);
return
FALSE
;
}
/***********************************************************************
* DiOpenDevRegKey (SETUPX.319)
*/
RETERR16
WINAPI
DiOpenDevRegKey16
(
LPDEVICE_INFO16
lpdi
,
LPHKEY16
lphk
,
INT16
iFlags
)
{
FIXME
(
"(%p %p %d): stub
\n
"
,
lpdi
,
lphk
,
iFlags
);
return
FALSE
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment