[ros-diffs] [tkreuzer] 49673: [LOADPERF] add proper stubs

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sat Nov 20 18:37:20 UTC 2010


Author: tkreuzer
Date: Sat Nov 20 18:37:19 2010
New Revision: 49673

URL: http://svn.reactos.org/svn/reactos?rev=49673&view=rev
Log:
[LOADPERF]
add proper stubs

Added:
    branches/cmake-bringup/dll/win32/loadperf/stubs.c   (with props)
Modified:
    branches/cmake-bringup/dll/win32/loadperf/CMakeLists.txt
    branches/cmake-bringup/dll/win32/loadperf/loadperf.spec

Modified: branches/cmake-bringup/dll/win32/loadperf/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/loadperf/CMakeLists.txt?rev=49673&r1=49672&r2=49673&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/loadperf/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/loadperf/CMakeLists.txt [iso-8859-1] Sat Nov 20 18:37:19 2010
@@ -4,7 +4,10 @@
 
 spec2def(loadperf.dll loadperf.spec)
 
-add_library(loadperf SHARED loadperf_main.c ${CMAKE_CURRENT_BINARY_DIR}/loadperf.def)
+add_library(loadperf SHARED
+            loadperf_main.c
+            stubs.c
+            ${CMAKE_CURRENT_BINARY_DIR}/loadperf.def)
 
 set_module_type(loadperf win32dll)
 

Modified: branches/cmake-bringup/dll/win32/loadperf/loadperf.spec
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/loadperf/loadperf.spec?rev=49673&r1=49672&r2=49673&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/loadperf/loadperf.spec [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/loadperf/loadperf.spec [iso-8859-1] Sat Nov 20 18:37:19 2010
@@ -1,14 +1,14 @@
-@ stub BackupPerfRegistryToFileW
+@ stdcall BackupPerfRegistryToFileW(long long)
 @ stdcall InstallPerfDllA(str str ptr)
 @ stdcall InstallPerfDllW(wstr wstr ptr)
-@ stub LoadMofFromInstalledServiceA
-@ stub LoadMofFromInstalledServiceW
+@ stdcall LoadMofFromInstalledServiceA(ptr ptr ptr)
+@ stdcall LoadMofFromInstalledServiceW(ptr ptr ptr)
 @ stdcall LoadPerfCounterTextStringsA(str long)
 @ stdcall LoadPerfCounterTextStringsW(wstr long)
-@ stub RestorePerfRegistryFromFileW
-@ stub SetServiceAsTrustedA
-@ stub SetServiceAsTrustedW
+@ stdcall RestorePerfRegistryFromFileW(ptr ptr)
+@ stdcall SetServiceAsTrustedA(ptr ptr)
+@ stdcall SetServiceAsTrustedW(ptr ptr)
 @ stdcall UnloadPerfCounterTextStringsA(str long)
 @ stdcall UnloadPerfCounterTextStringsW(wstr long)
-@ stub UpdatePerfNameFilesA
-@ stub UpdatePerfNameFilesW
+@ stdcall UpdatePerfNameFilesA(ptr ptr ptr ptr)
+@ stdcall UpdatePerfNameFilesW(ptr ptr ptr ptr)

Added: branches/cmake-bringup/dll/win32/loadperf/stubs.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/loadperf/stubs.c?rev=49673&view=auto
==============================================================================
--- branches/cmake-bringup/dll/win32/loadperf/stubs.c (added)
+++ branches/cmake-bringup/dll/win32/loadperf/stubs.c [iso-8859-1] Sat Nov 20 18:37:19 2010
@@ -1,0 +1,85 @@
+
+#include <windows.h>
+#define NDEBUG
+#include <debug.h>
+
+#define LOADPERF_FUNCTION DWORD WINAPI
+
+LOADPERF_FUNCTION
+BackupPerfRegistryToFileW(
+    IN LPCWSTR szFileName,
+    IN LPCWSTR szCommentString OPTIONAL)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+LOADPERF_FUNCTION
+LoadMofFromInstalledServiceA(
+    IN LPCSTR szServiceName,
+    IN LPCSTR szMofFilename,
+    IN ULONG_PTR dwFlags)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+LOADPERF_FUNCTION
+LoadMofFromInstalledServiceW(
+    IN LPCWSTR szServiceName,
+    IN LPCWSTR szMofFilename,
+    IN ULONG_PTR dwFlags)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+LOADPERF_FUNCTION
+RestorePerfRegistryFromFileW(
+    IN LPCWSTR szFileName,
+    IN LPCWSTR szLangId)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+LOADPERF_FUNCTION
+SetServiceAsTrustedA(
+    IN  LPCSTR    szReserved,
+    IN  LPCSTR    szServiceName)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+LOADPERF_FUNCTION
+SetServiceAsTrustedW(
+    IN LPCWSTR szReserved OPTIONAL,
+    IN LPCWSTR szServiceName)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+LOADPERF_FUNCTION
+UpdatePerfNameFilesA(
+    IN LPCSTR szNewCtrFilePath,
+    IN LPCSTR szNewHlpFilePath OPTIONAL,
+    IN LPSTR szLanguageID,
+    IN ULONG_PTR dwFlags)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+LOADPERF_FUNCTION
+UpdatePerfNameFilesW(
+    IN LPCWSTR szNewCtrFilePath,
+    IN LPCWSTR szNewHlpFilePath OPTIONAL,
+    IN LPWSTR szLanguageID,
+    IN ULONG_PTR dwFlags)
+{
+    UNIMPLEMENTED;
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+

Propchange: branches/cmake-bringup/dll/win32/loadperf/stubs.c
------------------------------------------------------------------------------
    svn:eol-style = native




More information about the Ros-diffs mailing list