James Hawkins : setupapi: Add stubs for SetupOpenLog, SetupCloseLog, and SetupLogError.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Sep 14 10:10:26 CDT 2006


Module: wine
Branch: master
Commit: 15b46847b0bc4d9bcc2b03d9377ce7342f4da536
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=15b46847b0bc4d9bcc2b03d9377ce7342f4da536

Author: James Hawkins <truiken at gmail.com>
Date:   Wed Sep 13 17:18:23 2006 -0700

setupapi: Add stubs for SetupOpenLog, SetupCloseLog, and SetupLogError.

---

 dlls/setupapi/setupapi.spec |    5 +++--
 dlls/setupapi/stubs.c       |   26 ++++++++++++++++++++++++++
 include/setupapi.h          |    7 +++++++
 3 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index e68ca69..d0a6d22 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -247,7 +247,7 @@ # Yes, Microsoft really misspelled this 
 @ stub SetupCancelTemporarySourceList
 @ stdcall SetupCloseFileQueue(ptr)
 @ stdcall SetupCloseInfFile(long)
-@ stub SetupCloseLog
+@ stdcall SetupCloseLog()
 @ stdcall SetupCommitFileQueue(long long ptr ptr) SetupCommitFileQueueW
 @ stdcall SetupCommitFileQueueA(long long ptr ptr)
 @ stdcall SetupCommitFileQueueW(long long ptr ptr)
@@ -442,7 +442,7 @@ # Yes, Microsoft really misspelled this 
 @ stdcall SetupIterateCabinetA(str long ptr ptr)
 @ stdcall SetupIterateCabinetW(wstr long ptr ptr)
 @ stub SetupLogErrorA
-@ stub SetupLogErrorW
+@ stdcall SetupLogErrorW(wstr long)
 @ stub SetupLogFileA
 @ stub SetupLogFileW
 @ stdcall SetupOpenAppendInfFileA(str long ptr)
@@ -450,6 +450,7 @@ # Yes, Microsoft really misspelled this 
 @ stdcall SetupOpenFileQueue()
 @ stdcall SetupOpenInfFileA(str str long ptr)
 @ stdcall SetupOpenInfFileW(wstr wstr long ptr)
+@ stdcall SetupOpenLog(long)
 @ stdcall SetupOpenMasterInf()
 @ stub SetupPromptForDiskA
 @ stub SetupPromptForDiskW
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index 33da153..a19b237 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -196,3 +196,29 @@ BOOL WINAPI RegistryDelnode(DWORD x, DWO
     FIXME("%08lx %08lx: stub\n", x, y);
     return FALSE;
 }
+
+/***********************************************************************
+ *      SetupCloseLog(SETUPAPI.@)
+ */
+void WINAPI SetupCloseLog()
+{
+    FIXME("() stub\n");
+}
+
+/***********************************************************************
+ *      SetupLogErrorW(SETUPAPI.@)
+ */
+BOOL WINAPI SetupLogErrorW(PCWSTR MessageString, LogSeverity Severity)
+{
+    FIXME("(%s, %ld) stub\n", debugstr_w(MessageString), Severity);
+    return TRUE;
+}
+
+/***********************************************************************
+ *      SetupOpenLog(SETUPAPI.@)
+ */
+BOOL WINAPI SetupOpenLog(BOOL Reserved)
+{
+    FIXME("(%d) stub\n", Reserved);
+    return TRUE;
+}
diff --git a/include/setupapi.h b/include/setupapi.h
index 625f15d..ada57db 100644
--- a/include/setupapi.h
+++ b/include/setupapi.h
@@ -690,6 +690,13 @@ #define INFINFO_DEFAULT_SEARCH          
 #define INFINFO_REVERSE_DEFAULT_SEARCH  4
 #define INFINFO_INF_PATH_LIST_SEARCH    5
 
+#define LogSeverity         DWORD
+#define LogSevInformation   0x00000000
+#define LogSevWarning       0x00000001
+#define LogSevError         0x00000002
+#define LogSevFatalError    0x00000003
+#define LogSevMaximum       0x00000004
+
 LONG     WINAPI AddTagToGroupOrderList(PCWSTR lpGroupName, DWORD dwUnknown2, DWORD dwUnknown3);
 DWORD    WINAPI CaptureAndConvertAnsiArg(PCSTR lpSrc, PWSTR *lpDst);
 DWORD    WINAPI CaptureStringArg(PCWSTR lpSrc, PWSTR *lpDst);




More information about the wine-cvs mailing list