Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
555d8fe0
Commit
555d8fe0
authored
Mar 17, 2010
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Mar 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement IoIsWdmVersionAvailable.
parent
c1660c9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
1 deletion
+68
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+67
-0
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
555d8fe0
...
...
@@ -2,6 +2,7 @@
* ntoskrnl.exe implementation
*
* Copyright (C) 2007 Alexandre Julliard
* Copyright (C) 2010 Damjan Jovanovic
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -678,6 +679,72 @@ PCONFIGURATION_INFORMATION WINAPI IoGetConfigurationInformation(void)
/***********************************************************************
* IoIsWdmVersionAvailable (NTOSKRNL.EXE.@)
*/
NTSTATUS
WINAPI
IoIsWdmVersionAvailable
(
UCHAR
MajorVersion
,
UCHAR
MinorVersion
)
{
DWORD
version
;
DWORD
major
;
DWORD
minor
;
TRACE
(
"%d, 0x%X
\n
"
,
MajorVersion
,
MinorVersion
);
version
=
GetVersion
();
major
=
LOBYTE
(
version
);
minor
=
HIBYTE
(
LOWORD
(
version
));
if
(
MajorVersion
==
6
&&
MinorVersion
==
0
)
{
/* Windows Vista, Windows Server 2008, Windows 7 */
}
else
if
(
MajorVersion
==
1
)
{
if
(
MinorVersion
==
0x30
)
{
/* Windows server 2003 */
MajorVersion
=
6
;
MinorVersion
=
0
;
}
else
if
(
MinorVersion
==
0x20
)
{
/* Windows XP */
MajorVersion
=
5
;
MinorVersion
=
1
;
}
else
if
(
MinorVersion
==
0x10
)
{
/* Windows 2000 */
MajorVersion
=
5
;
MinorVersion
=
0
;
}
else
if
(
MinorVersion
==
0x05
)
{
/* Windows ME */
MajorVersion
=
4
;
MinorVersion
=
0x5a
;
}
else
if
(
MinorVersion
==
0x00
)
{
/* Windows 98 */
MajorVersion
=
4
;
MinorVersion
=
0x0a
;
}
else
{
FIXME
(
"unknown major %d minor 0x%X
\n
"
,
MajorVersion
,
MinorVersion
);
return
FALSE
;
}
}
else
{
FIXME
(
"unknown major %d minor 0x%X
\n
"
,
MajorVersion
,
MinorVersion
);
return
FALSE
;
}
return
major
>
MajorVersion
||
(
major
==
MajorVersion
&&
minor
>=
MinorVersion
);
}
/***********************************************************************
* IoQueryDeviceDescription (NTOSKRNL.EXE.@)
*/
NTSTATUS
WINAPI
IoQueryDeviceDescription
(
PINTERFACE_TYPE
itype
,
PULONG
bus
,
PCONFIGURATION_TYPE
ctype
,
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
555d8fe0
...
...
@@ -406,7 +406,7 @@
@ stub IoIsOperationSynchronous
@ stub IoIsSystemThread
@ stub IoIsValidNameGraftingBuffer
@ st
ub IoIsWdmVersionAvailable
@ st
dcall IoIsWdmVersionAvailable(long long)
@ stub IoMakeAssociatedIrp
@ stub IoOpenDeviceInterfaceRegistryKey
@ stub IoOpenDeviceRegistryKey
...
...
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