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
0b709c5d
Commit
0b709c5d
authored
Jun 25, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Move performance stubs to kernelbase.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
de406c70
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
87 deletions
+80
-87
Makefile.in
dlls/advapi32/Makefile.in
+0
-1
advapi32.spec
dlls/advapi32/advapi32.spec
+7
-7
perf.c
dlls/advapi32/perf.c
+0
-72
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+7
-7
main.c
dlls/kernelbase/main.c
+66
-0
No files found.
dlls/advapi32/Makefile.in
View file @
0b709c5d
...
@@ -14,7 +14,6 @@ C_SRCS = \
...
@@ -14,7 +14,6 @@ C_SRCS = \
crypt_lmhash.c
\
crypt_lmhash.c
\
eventlog.c
\
eventlog.c
\
lsa.c
\
lsa.c
\
perf.c
\
registry.c
\
registry.c
\
security.c
\
security.c
\
service.c
\
service.c
\
...
...
dlls/advapi32/advapi32.spec
View file @
0b709c5d
...
@@ -555,11 +555,11 @@
...
@@ -555,11 +555,11 @@
# @ stub OperationStart
# @ stub OperationStart
# @ stub PerfAddCounters
# @ stub PerfAddCounters
# @ stub PerfCloseQueryHandle
# @ stub PerfCloseQueryHandle
@ stdcall PerfCreateInstance(long ptr wstr long)
@ stdcall
-import
PerfCreateInstance(long ptr wstr long)
# @ stub PerfDecrementULongCounterValue
# @ stub PerfDecrementULongCounterValue
# @ stub PerfDecrementULongLongCounterValue
# @ stub PerfDecrementULongLongCounterValue
# @ stub PerfDeleteCounters
# @ stub PerfDeleteCounters
@ stdcall PerfDeleteInstance(long ptr)
@ stdcall
-import
PerfDeleteInstance(long ptr)
# @ stub PerfEnumerateCounterSet
# @ stub PerfEnumerateCounterSet
# @ stub PerfEnumerateCounterSetInstances
# @ stub PerfEnumerateCounterSetInstances
# @ stub PerfIncrementULongCounterValue
# @ stub PerfIncrementULongCounterValue
...
@@ -575,13 +575,13 @@
...
@@ -575,13 +575,13 @@
# @ stub PerfRegQueryInfoKey
# @ stub PerfRegQueryInfoKey
# @ stub PerfRegQueryValue
# @ stub PerfRegQueryValue
# @ stub PerfRegSetValue
# @ stub PerfRegSetValue
@ stdcall PerfSetCounterRefValue(long ptr long ptr)
@ stdcall
-import
PerfSetCounterRefValue(long ptr long ptr)
@ stdcall PerfSetCounterSetInfo(long ptr long)
@ stdcall
-import
PerfSetCounterSetInfo(long ptr long)
# @ stub PerfSetULongCounterValue
# @ stub PerfSetULongCounterValue
# @ stub PerfSetULongLongCounterValue
# @ stub PerfSetULongLongCounterValue
@ stdcall PerfStartProvider(ptr ptr ptr)
@ stdcall
-import
PerfStartProvider(ptr ptr ptr)
@ stdcall PerfStartProviderEx(ptr ptr ptr)
@ stdcall
-import
PerfStartProviderEx(ptr ptr ptr)
@ stdcall PerfStopProvider(long)
@ stdcall
-import
PerfStopProvider(long)
@ stdcall -import PrivilegeCheck(ptr ptr ptr)
@ stdcall -import PrivilegeCheck(ptr ptr ptr)
@ stdcall PrivilegedServiceAuditAlarmA(str str long ptr long)
@ stdcall PrivilegedServiceAuditAlarmA(str str long ptr long)
@ stdcall -import PrivilegedServiceAuditAlarmW(wstr wstr long ptr long)
@ stdcall -import PrivilegedServiceAuditAlarmW(wstr wstr long ptr long)
...
...
dlls/advapi32/perf.c
deleted
100644 → 0
View file @
de406c70
/*
* advapi32 perf functions
*
* Copyright 2017 Austin English
*
* 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 <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "perflib.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
advapi
);
PPERF_COUNTERSET_INSTANCE
WINAPI
PerfCreateInstance
(
HANDLE
handle
,
LPCGUID
guid
,
const
WCHAR
*
name
,
ULONG
id
)
{
FIXME
(
"%p %s %s %u: stub
\n
"
,
handle
,
debugstr_guid
(
guid
),
debugstr_w
(
name
),
id
);
return
NULL
;
}
ULONG
WINAPI
PerfDeleteInstance
(
HANDLE
provider
,
PPERF_COUNTERSET_INSTANCE
block
)
{
FIXME
(
"%p %p: stub
\n
"
,
provider
,
block
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
ULONG
WINAPI
PerfSetCounterSetInfo
(
HANDLE
handle
,
PPERF_COUNTERSET_INFO
template
,
ULONG
size
)
{
FIXME
(
"%p %p %u: stub
\n
"
,
handle
,
template
,
size
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
ULONG
WINAPI
PerfSetCounterRefValue
(
HANDLE
provider
,
PPERF_COUNTERSET_INSTANCE
instance
,
ULONG
counterid
,
void
*
address
)
{
FIXME
(
"%p %p %u %p: stub
\n
"
,
provider
,
instance
,
counterid
,
address
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
ULONG
WINAPI
PerfStartProvider
(
GUID
*
guid
,
PERFLIBREQUEST
callback
,
HANDLE
*
provider
)
{
FIXME
(
"%s %p %p: stub
\n
"
,
debugstr_guid
(
guid
),
callback
,
provider
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
ULONG
WINAPI
PerfStartProviderEx
(
GUID
*
guid
,
PPERF_PROVIDER_CONTEXT
context
,
HANDLE
*
provider
)
{
FIXME
(
"%s %p %p: stub
\n
"
,
debugstr_guid
(
guid
),
context
,
provider
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
ULONG
WINAPI
PerfStopProvider
(
HANDLE
handle
)
{
FIXME
(
"%p: stub
\n
"
,
handle
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
dlls/kernelbase/kernelbase.spec
View file @
0b709c5d
...
@@ -1145,20 +1145,20 @@
...
@@ -1145,20 +1145,20 @@
@ stdcall PeekConsoleInputA(ptr ptr long ptr) kernel32.PeekConsoleInputA
@ stdcall PeekConsoleInputA(ptr ptr long ptr) kernel32.PeekConsoleInputA
@ stdcall PeekConsoleInputW(ptr ptr long ptr) kernel32.PeekConsoleInputW
@ stdcall PeekConsoleInputW(ptr ptr long ptr) kernel32.PeekConsoleInputW
@ stdcall PeekNamedPipe(long ptr long ptr ptr ptr) kernel32.PeekNamedPipe
@ stdcall PeekNamedPipe(long ptr long ptr ptr ptr) kernel32.PeekNamedPipe
@ stdcall PerfCreateInstance(long ptr wstr long)
advapi32.PerfCreateInstance
@ stdcall PerfCreateInstance(long ptr wstr long)
# @ stub PerfDecrementULongCounterValue
# @ stub PerfDecrementULongCounterValue
# @ stub PerfDecrementULongLongCounterValue
# @ stub PerfDecrementULongLongCounterValue
@ stdcall PerfDeleteInstance(long ptr)
advapi32.PerfDeleteInstance
@ stdcall PerfDeleteInstance(long ptr)
# @ stub PerfIncrementULongCounterValue
# @ stub PerfIncrementULongCounterValue
# @ stub PerfIncrementULongLongCounterValue
# @ stub PerfIncrementULongLongCounterValue
# @ stub PerfQueryInstance
# @ stub PerfQueryInstance
@ stdcall PerfSetCounterRefValue(long ptr long ptr)
advapi32.PerfSetCounterRefValue
@ stdcall PerfSetCounterRefValue(long ptr long ptr)
@ stdcall PerfSetCounterSetInfo(long ptr long)
advapi32.PerfSetCounterSetInfo
@ stdcall PerfSetCounterSetInfo(long ptr long)
# @ stub PerfSetULongCounterValue
# @ stub PerfSetULongCounterValue
# @ stub PerfSetULongLongCounterValue
# @ stub PerfSetULongLongCounterValue
@ stdcall PerfStartProvider(ptr ptr ptr)
advapi32.PerfStartProvider
@ stdcall PerfStartProvider(ptr ptr ptr)
@ stdcall PerfStartProviderEx(ptr ptr ptr)
advapi32.PerfStartProviderEx
@ stdcall PerfStartProviderEx(ptr ptr ptr)
@ stdcall PerfStopProvider(long)
advapi32.PerfStopProvider
@ stdcall PerfStopProvider(long)
# @ stub PoolPerAppKeyStateInternal
# @ stub PoolPerAppKeyStateInternal
@ stdcall PostQueuedCompletionStatus(long long ptr ptr) kernel32.PostQueuedCompletionStatus
@ stdcall PostQueuedCompletionStatus(long long ptr ptr) kernel32.PostQueuedCompletionStatus
# @ stub PrefetchVirtualMemory
# @ stub PrefetchVirtualMemory
...
...
dlls/kernelbase/main.c
View file @
0b709c5d
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "windows.h"
#include "windows.h"
#include "appmodel.h"
#include "appmodel.h"
#include "shlwapi.h"
#include "shlwapi.h"
#include "perflib.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/heap.h"
...
@@ -94,6 +95,71 @@ LONG WINAPI AppPolicyGetWindowingModel(HANDLE token, AppPolicyWindowingModel *po
...
@@ -94,6 +95,71 @@ LONG WINAPI AppPolicyGetWindowingModel(HANDLE token, AppPolicyWindowingModel *po
}
}
/***********************************************************************
/***********************************************************************
* PerfCreateInstance (KERNELBASE.@)
*/
PPERF_COUNTERSET_INSTANCE
WINAPI
PerfCreateInstance
(
HANDLE
handle
,
LPCGUID
guid
,
const
WCHAR
*
name
,
ULONG
id
)
{
FIXME
(
"%p %s %s %u: stub
\n
"
,
handle
,
debugstr_guid
(
guid
),
debugstr_w
(
name
),
id
);
return
NULL
;
}
/***********************************************************************
* PerfDeleteInstance (KERNELBASE.@)
*/
ULONG
WINAPI
PerfDeleteInstance
(
HANDLE
provider
,
PPERF_COUNTERSET_INSTANCE
block
)
{
FIXME
(
"%p %p: stub
\n
"
,
provider
,
block
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* PerfSetCounterSetInfo (KERNELBASE.@)
*/
ULONG
WINAPI
PerfSetCounterSetInfo
(
HANDLE
handle
,
PPERF_COUNTERSET_INFO
template
,
ULONG
size
)
{
FIXME
(
"%p %p %u: stub
\n
"
,
handle
,
template
,
size
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* PerfSetCounterRefValue (KERNELBASE.@)
*/
ULONG
WINAPI
PerfSetCounterRefValue
(
HANDLE
provider
,
PPERF_COUNTERSET_INSTANCE
instance
,
ULONG
counterid
,
void
*
address
)
{
FIXME
(
"%p %p %u %p: stub
\n
"
,
provider
,
instance
,
counterid
,
address
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* PerfStartProvider (KERNELBASE.@)
*/
ULONG
WINAPI
PerfStartProvider
(
GUID
*
guid
,
PERFLIBREQUEST
callback
,
HANDLE
*
provider
)
{
FIXME
(
"%s %p %p: stub
\n
"
,
debugstr_guid
(
guid
),
callback
,
provider
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* PerfStartProviderEx (KERNELBASE.@)
*/
ULONG
WINAPI
PerfStartProviderEx
(
GUID
*
guid
,
PPERF_PROVIDER_CONTEXT
context
,
HANDLE
*
provider
)
{
FIXME
(
"%s %p %p: stub
\n
"
,
debugstr_guid
(
guid
),
context
,
provider
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* PerfStopProvider (KERNELBASE.@)
*/
ULONG
WINAPI
PerfStopProvider
(
HANDLE
handle
)
{
FIXME
(
"%p: stub
\n
"
,
handle
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* QuirkIsEnabled (KERNELBASE.@)
* QuirkIsEnabled (KERNELBASE.@)
*/
*/
BOOL
WINAPI
QuirkIsEnabled
(
void
*
arg
)
BOOL
WINAPI
QuirkIsEnabled
(
void
*
arg
)
...
...
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