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
e0d5dbae
Commit
e0d5dbae
authored
May 17, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implemented PsGetVersion and added stubs for a couple of other Ps functions.
parent
4cbe5b78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
4 deletions
+58
-4
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+54
-0
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+4
-4
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
e0d5dbae
...
...
@@ -51,6 +51,7 @@ typedef struct _KSERVICE_TABLE_DESCRIPTOR
KSERVICE_TABLE_DESCRIPTOR
KeServiceDescriptorTable
[
4
];
typedef
void
(
WINAPI
*
PCREATE_PROCESS_NOTIFY_ROUTINE
)(
HANDLE
,
HANDLE
,
BOOLEAN
);
#ifdef __i386__
#define DEFINE_FASTCALL1_ENTRYPOINT( name ) \
...
...
@@ -416,6 +417,59 @@ void WINAPI MmFreeNonCachedMemory( void *addr, SIZE_T size )
}
/***********************************************************************
* PsGetCurrentProcessId (NTOSKRNL.EXE.@)
*/
HANDLE
WINAPI
PsGetCurrentProcessId
(
void
)
{
return
(
HANDLE
)
GetCurrentProcessId
();
/* FIXME: not quite right... */
}
/***********************************************************************
* PsGetCurrentThreadId (NTOSKRNL.EXE.@)
*/
HANDLE
WINAPI
PsGetCurrentThreadId
(
void
)
{
return
(
HANDLE
)
GetCurrentThreadId
();
/* FIXME: not quite right... */
}
/***********************************************************************
* PsGetVersion (NTOSKRNL.EXE.@)
*/
BOOLEAN
WINAPI
PsGetVersion
(
ULONG
*
major
,
ULONG
*
minor
,
ULONG
*
build
,
UNICODE_STRING
*
version
)
{
RTL_OSVERSIONINFOEXW
info
;
RtlGetVersion
(
&
info
);
if
(
major
)
*
major
=
info
.
dwMajorVersion
;
if
(
minor
)
*
minor
=
info
.
dwMinorVersion
;
if
(
build
)
*
build
=
info
.
dwBuildNumber
;
if
(
version
)
{
#if 0 /* FIXME: GameGuard passes an uninitialized pointer in version->Buffer */
size_t len = min( strlenW(info.szCSDVersion)*sizeof(WCHAR), version->MaximumLength );
memcpy( version->Buffer, info.szCSDVersion, len );
if (len < version->MaximumLength) version->Buffer[len / sizeof(WCHAR)] = 0;
version->Length = len;
#endif
}
return
TRUE
;
}
/***********************************************************************
* PsSetCreateProcessNotifyRoutine (NTOSKRNL.EXE.@)
*/
NTSTATUS
WINAPI
PsSetCreateProcessNotifyRoutine
(
PCREATE_PROCESS_NOTIFY_ROUTINE
callback
,
BOOLEAN
remove
)
{
FIXME
(
"stub: %p %d
\n
"
,
callback
,
remove
);
return
STATUS_SUCCESS
;
}
/*****************************************************
* DllMain
*/
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
e0d5dbae
...
...
@@ -850,10 +850,10 @@
@ stub PsEstablishWin32Callouts
@ stub PsGetContextThread
@ stub PsGetCurrentProcess
@ st
ub PsGetCurrentProcessId
@ st
dcall PsGetCurrentProcessId()
@ stub PsGetCurrentProcessSessionId
@ stub PsGetCurrentThread
@ st
ub PsGetCurrentThreadId
@ st
dcall PsGetCurrentThreadId()
@ stub PsGetCurrentThreadPreviousMode
@ stub PsGetCurrentThreadStackBase
@ stub PsGetCurrentThreadStackLimit
...
...
@@ -884,7 +884,7 @@
@ stub PsGetThreadSessionId
@ stub PsGetThreadTeb
@ stub PsGetThreadWin32Thread
@ st
ub PsGetVersion
@ st
dcall PsGetVersion(ptr ptr ptr ptr)
@ stub PsImpersonateClient
@ stub PsInitialSystemProcess
@ stub PsIsProcessBeingDebugged
...
...
@@ -907,7 +907,7 @@
@ stub PsRevertThreadToSelf
@ stub PsRevertToSelf
@ stub PsSetContextThread
@ st
ub PsSetCreateProcessNotifyRoutine
@ st
dcall PsSetCreateProcessNotifyRoutine(ptr long)
@ stub PsSetCreateThreadNotifyRoutine
@ stub PsSetJobUIRestrictionsClass
@ stub PsSetLegoNotifyRoutine
...
...
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