Austin English : wimgapi: Add WIMGetMountedImages stub.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 12 10:20:47 CDT 2016
Module: wine
Branch: master
Commit: dc0377aabaf8457fb436870bf7bc00df7dcd1bbe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc0377aabaf8457fb436870bf7bc00df7dcd1bbe
Author: Austin English <austinenglish at gmail.com>
Date: Thu Mar 24 15:25:21 2016 -0500
wimgapi: Add WIMGetMountedImages stub.
Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wimgapi/main.c | 8 ++++++++
dlls/wimgapi/wimgapi.spec | 2 +-
include/Makefile.in | 1 +
include/wimgapi.h | 38 ++++++++++++++++++++++++++++++++++++++
4 files changed, 48 insertions(+), 1 deletion(-)
diff --git a/dlls/wimgapi/main.c b/dlls/wimgapi/main.c
index d7c3bab..a7321fa 100644
--- a/dlls/wimgapi/main.c
+++ b/dlls/wimgapi/main.c
@@ -26,6 +26,7 @@
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
+#include "wimgapi.h"
WINE_DEFAULT_DEBUG_CHANNEL(wimgapi);
@@ -50,3 +51,10 @@ DWORD WINAPI WIMRegisterMessageCallback(HANDLE wim, FARPROC callback, PVOID data
FIXME("(%p %p %p) stub\n", wim, callback, data);
return 0;
}
+
+BOOL WINAPI WIMGetMountedImages(PWIM_MOUNT_LIST list, DWORD *length)
+{
+ FIXME("(%p %p) stub\n", list, length);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
diff --git a/dlls/wimgapi/wimgapi.spec b/dlls/wimgapi/wimgapi.spec
index 7464a5a..bb79d5b 100644
--- a/dlls/wimgapi/wimgapi.spec
+++ b/dlls/wimgapi/wimgapi.spec
@@ -21,7 +21,7 @@
@ stub WIMGetMountedImageHandle
@ stub WIMGetMountedImageInfo
@ stub WIMGetMountedImageInfoFromFile
-@ stub WIMGetMountedImages
+@ stdcall WIMGetMountedImages(ptr ptr)
@ stub WIMInitFileIOCallbacks
@ stub WIMLoadImage
@ stub WIMMountImage
diff --git a/include/Makefile.in b/include/Makefile.in
index ac10691..fb1c195 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -617,6 +617,7 @@ HEADER_SRCS = \
wfext.h \
wia.h \
wiadef.h \
+ wimgapi.h \
winbase.h \
wincon.h \
wincred.h \
diff --git a/include/wimgapi.h b/include/wimgapi.h
new file mode 100644
index 0000000..e517b57
--- /dev/null
+++ b/include/wimgapi.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2015 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
+ */
+
+#ifndef _WIMGAPI_H_
+#define _WIMGAPI_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _WIM_MOUNT_LIST
+{
+ WCHAR WimPath[MAX_PATH];
+ WCHAR MountPath[MAX_PATH];
+ DWORD ImageIndex;
+ BOOL MountedForRW;
+} WIM_MOUNT_LIST, *PWIM_MOUNT_LIST, *LPWIM_MOUNT_LIST;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _WIMGAPI_H_ */
More information about the wine-cvs
mailing list