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
8f5d90b4
Commit
8f5d90b4
authored
Jun 13, 2006
by
Christian Gmeiner
Committed by
Alexandre Julliard
Jun 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implement SetupDiCreateDeviceInfoListExW.
parent
682679b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
1 deletion
+72
-1
Makefile.in
dlls/setupapi/Makefile.in
+1
-1
devinst.c
dlls/setupapi/devinst.c
+0
-0
.gitignore
dlls/setupapi/tests/.gitignore
+1
-0
Makefile.in
dlls/setupapi/tests/Makefile.in
+1
-0
devinst.c
dlls/setupapi/tests/devinst.c
+69
-0
No files found.
dlls/setupapi/Makefile.in
View file @
8f5d90b4
...
...
@@ -7,7 +7,7 @@ MODULE = setupapi.dll
IMPORTLIB
=
libsetupapi.
$(IMPLIBEXT)
IMPORTS
=
user32 version advapi32 rpcrt4 kernel32 ntdll
DELAYIMPORTS
=
shell32
EXTRALIBS
=
$(LIBUNICODE)
EXTRALIBS
=
$(LIBUNICODE)
-luuid
C_SRCS
=
\
devinst.c
\
...
...
dlls/setupapi/devinst.c
View file @
8f5d90b4
This diff is collapsed.
Click to expand it.
dlls/setupapi/tests/.gitignore
View file @
8f5d90b4
Makefile
devinst.ok
parser.ok
query.ok
stringtable.ok
...
...
dlls/setupapi/tests/Makefile.in
View file @
8f5d90b4
...
...
@@ -6,6 +6,7 @@ TESTDLL = setupapi.dll
IMPORTS
=
setupapi kernel32
CTESTS
=
\
devinst.c
\
parser.c
\
query.c
\
stringtable.c
...
...
dlls/setupapi/tests/devinst.c
0 → 100644
View file @
8f5d90b4
/*
* Devinst tests
*
* Copyright 2006 Christian Gmeiner
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winreg.h"
#include "setupapi.h"
#include "wine/test.h"
static
void
test_Device_Info_List
(
void
)
{
HDEVINFO
devlist
;
BOOL
ret
;
DWORD
error
;
static
const
WCHAR
machine
[]
=
{
'd'
,
'u'
,
'm'
,
'm'
,
'y'
,
0
};
SetLastError
(
0xdeadbeef
);
/* create empty DeviceInfoList, but set Reserved to a value, which is not NULL */
devlist
=
SetupDiCreateDeviceInfoListExW
(
NULL
,
NULL
,
NULL
,
"NotNull"
);
error
=
GetLastError
();
ok
(
devlist
==
INVALID_HANDLE_VALUE
,
"SetupDiCreateDeviceInfoListExW failed : %p %ld (expected %p)
\n
"
,
devlist
,
error
,
INVALID_HANDLE_VALUE
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"GetLastError returned wrong value : %ld, (expected %d)"
,
error
,
ERROR_INVALID_PARAMETER
);
SetLastError
(
0xdeadbeef
);
/* create empty DeviceInfoList, but set MachineName to something */
devlist
=
SetupDiCreateDeviceInfoListExW
(
NULL
,
NULL
,
machine
,
NULL
);
error
=
GetLastError
();
ok
(
devlist
==
INVALID_HANDLE_VALUE
,
"SetupDiCreateDeviceInfoListExW failed : %p %ld (expected %p)
\n
"
,
devlist
,
error
,
INVALID_HANDLE_VALUE
);
ok
(
error
==
ERROR_INVALID_MACHINENAME
,
"GetLastError returned wrong value : %ld, (expected %d)"
,
error
,
ERROR_INVALID_MACHINENAME
);
/* create empty DeviceInfoList */
devlist
=
SetupDiCreateDeviceInfoListExW
(
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
devlist
&&
devlist
!=
INVALID_HANDLE_VALUE
,
"SetupDiCreateDeviceInfoListExW failed : %p %ld (expected != %p)
\n
"
,
devlist
,
error
,
INVALID_HANDLE_VALUE
);
/* destroy DeviceInfoList */
ret
=
SetupDiDestroyDeviceInfoList
(
devlist
);
ok
(
ret
,
"SetupDiDestroyDeviceInfoList failed : %ld"
,
error
);
}
START_TEST
(
devinst
)
{
test_Device_Info_List
();
}
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