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
6b141176
Commit
6b141176
authored
Jul 31, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved toolhelp implementation into kernel32 dll.
parent
fd8a6de9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
34 deletions
+40
-34
Makefile.in
debugger/Makefile.in
+1
-0
Makefile.in
dlls/kernel/Makefile.in
+1
-0
toolhelp.c
dlls/kernel/toolhelp.c
+38
-0
Makefile.in
misc/Makefile.in
+0
-1
user.c
windows/user.c
+0
-33
No files found.
debugger/Makefile.in
View file @
6b141176
...
...
@@ -5,6 +5,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
none
PROGRAMS
=
winedbg
IMPORTS
=
kernel32
C_SRCS
=
\
break.c
\
...
...
dlls/kernel/Makefile.in
View file @
6b141176
...
...
@@ -11,6 +11,7 @@ C_SRCS = \
kernel_main.c
\
stress.c
\
thunk.c
\
toolhelp.c
\
utthunk.c
\
win87em.c
\
windebug.c
\
...
...
misc
/toolhelp.c
→
dlls/kernel
/toolhelp.c
View file @
6b141176
...
...
@@ -12,6 +12,7 @@
#include "winbase.h"
#include "wine/winbase16.h"
#include "winerror.h"
#include "local.h"
#include "process.h"
#include "tlhelp32.h"
#include "toolhelp.h"
...
...
@@ -129,6 +130,43 @@ BOOL16 WINAPI InterruptUnRegister16( HTASK16 task )
}
/***********************************************************************
* TimerCount (TOOLHELP.80)
*/
BOOL16
WINAPI
TimerCount16
(
TIMERINFO
*
pTimerInfo
)
{
/* FIXME
* In standard mode, dwmsSinceStart = dwmsThisVM
*
* I tested this, under Windows in enhanced mode, and
* if you never switch VM (ie start/stop DOS) these
* values should be the same as well.
*
* Also, Wine should adjust for the hardware timer
* to reduce the amount of error to ~1ms.
* I can't be bothered, can you?
*/
pTimerInfo
->
dwmsSinceStart
=
pTimerInfo
->
dwmsThisVM
=
GetTickCount
();
return
TRUE
;
}
/***********************************************************************
* SystemHeapInfo (TOOLHELP.71)
*/
BOOL16
WINAPI
SystemHeapInfo16
(
SYSHEAPINFO
*
pHeapInfo
)
{
WORD
user
=
LoadLibrary16
(
"USER.EXE"
);
WORD
gdi
=
LoadLibrary16
(
"GDI.EXE"
);
pHeapInfo
->
wUserFreePercent
=
(
int
)
LOCAL_CountFree
(
user
)
*
100
/
LOCAL_HeapSize
(
user
);
pHeapInfo
->
wGDIFreePercent
=
(
int
)
LOCAL_CountFree
(
gdi
)
*
100
/
LOCAL_HeapSize
(
gdi
);
pHeapInfo
->
hUserSegment
=
user
;
pHeapInfo
->
hGDISegment
=
gdi
;
FreeLibrary16
(
user
);
FreeLibrary16
(
gdi
);
return
TRUE
;
}
/***********************************************************************
* ToolHelpHook (KERNEL.341)
* see "Undocumented Windows"
*/
...
...
misc/Makefile.in
View file @
6b141176
...
...
@@ -20,7 +20,6 @@ C_SRCS = \
printdrv.c
\
registry.c
\
system.c
\
toolhelp.c
\
tweak.c
\
version.c
\
wsprintf.c
...
...
windows/user.c
View file @
6b141176
...
...
@@ -73,39 +73,6 @@ WORD WINAPI GetFreeSystemResources16( WORD resType )
}
/***********************************************************************
* SystemHeapInfo (TOOLHELP.71)
*/
BOOL16
WINAPI
SystemHeapInfo16
(
SYSHEAPINFO
*
pHeapInfo
)
{
pHeapInfo
->
wUserFreePercent
=
GetFreeSystemResources16
(
GFSR_USERRESOURCES
);
pHeapInfo
->
wGDIFreePercent
=
GetFreeSystemResources16
(
GFSR_GDIRESOURCES
);
pHeapInfo
->
hUserSegment
=
USER_HeapSel
;
pHeapInfo
->
hGDISegment
=
GDI_HeapSel
;
return
TRUE
;
}
/***********************************************************************
* TimerCount (TOOLHELP.80)
*/
BOOL16
WINAPI
TimerCount16
(
TIMERINFO
*
pTimerInfo
)
{
/* FIXME
* In standard mode, dwmsSinceStart = dwmsThisVM
*
* I tested this, under Windows in enhanced mode, and
* if you never switch VM (ie start/stop DOS) these
* values should be the same as well.
*
* Also, Wine should adjust for the hardware timer
* to reduce the amount of error to ~1ms.
* I can't be bothered, can you?
*/
pTimerInfo
->
dwmsSinceStart
=
pTimerInfo
->
dwmsThisVM
=
GetTickCount
();
return
TRUE
;
}
/**********************************************************************
* InitApp (USER.5)
*/
...
...
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