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
f1748420
Commit
f1748420
authored
Nov 10, 2009
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avrt: Add stub for Av(Set,Revert)MmThreadCharacteristics.
parent
201d3ce3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
3 deletions
+48
-3
avrt.spec
dlls/avrt/avrt.spec
+3
-3
main.c
dlls/avrt/main.c
+45
-0
No files found.
dlls/avrt/avrt.spec
View file @
f1748420
@ stub AvQuerySystemResponsiveness
@ stub AvQuerySystemResponsiveness
@ st
ub AvRevertMmThreadCharacteristics
@ st
dcall AvRevertMmThreadCharacteristics(long)
@ stub AvRtCreateThreadOrderingGroup
@ stub AvRtCreateThreadOrderingGroup
@ stub AvRtCreateThreadOrderingGroupExA
@ stub AvRtCreateThreadOrderingGroupExA
@ stub AvRtCreateThreadOrderingGroupExW
@ stub AvRtCreateThreadOrderingGroupExW
...
@@ -9,6 +9,6 @@
...
@@ -9,6 +9,6 @@
@ stub AvRtWaitOnThreadOrderingGroup
@ stub AvRtWaitOnThreadOrderingGroup
@ stub AvSetMmMaxThreadCharacteristicsA
@ stub AvSetMmMaxThreadCharacteristicsA
@ stub AvSetMmMaxThreadCharacteristicsW
@ stub AvSetMmMaxThreadCharacteristicsW
@ st
ub AvSetMmThreadCharacteristicsA
@ st
dcall AvSetMmThreadCharacteristicsA(str ptr)
@ st
ub AvSetMmThreadCharacteristicsW
@ st
dcall AvSetMmThreadCharacteristicsW(wstr ptr)
@ stub AvSetMmThreadPriority
@ stub AvSetMmThreadPriority
dlls/avrt/main.c
View file @
f1748420
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "winnls.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "avrt.h"
#include "avrt.h"
...
@@ -45,3 +46,47 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
...
@@ -45,3 +46,47 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return
TRUE
;
return
TRUE
;
}
}
HANDLE
WINAPI
AvSetMmThreadCharacteristicsA
(
LPCSTR
TaskName
,
LPDWORD
TaskIndex
)
{
HANDLE
ret
;
LPWSTR
str
=
NULL
;
if
(
TaskName
)
{
DWORD
len
=
(
lstrlenA
(
TaskName
)
+
1
);
str
=
HeapAlloc
(
GetProcessHeap
,
0
,
len
*
sizeof
(
WCHAR
));
if
(
!
str
)
{
SetLastError
(
ERROR_OUTOFMEMORY
);
return
NULL
;
}
MultiByteToWideChar
(
CP_ACP
,
0
,
TaskName
,
len
,
str
,
len
);
}
ret
=
AvSetMmThreadCharacteristicsW
(
str
,
TaskIndex
);
HeapFree
(
GetProcessHeap
(),
0
,
str
);
return
ret
;
}
HANDLE
WINAPI
AvSetMmThreadCharacteristicsW
(
LPCWSTR
TaskName
,
LPDWORD
TaskIndex
)
{
FIXME
(
"(%s,%p): stub
\n
"
,
debugstr_w
(
TaskName
),
TaskIndex
);
if
(
!
TaskName
)
{
SetLastError
(
ERROR_INVALID_TASK_NAME
);
return
NULL
;
}
if
(
!
TaskIndex
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
NULL
;
}
return
(
HANDLE
)
0x12345678
;
}
BOOL
WINAPI
AvRevertMmThreadCharacteristics
(
HANDLE
AvrtHandle
)
{
FIXME
(
"(%p): stub
\n
"
,
AvrtHandle
);
return
1
;
}
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