[MMDEVAPI]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 25 Dec 2013 15:19:53 +0000 (15:19 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 25 Dec 2013 15:19:53 +0000 (15:19 +0000)
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61410

reactos/dll/win32/mmdevapi/CMakeLists.txt
reactos/dll/win32/mmdevapi/devenum.c
reactos/dll/win32/mmdevapi/guid.c [new file with mode: 0644]
reactos/dll/win32/mmdevapi/mmdevapi.h

index 70a28de..ebb3ef3 100644 (file)
@@ -10,6 +10,7 @@ list(APPEND SOURCE
     audiovolume.c
     devenum.c
     main.c
+    guid.c
     ${CMAKE_CURRENT_BINARY_DIR}/mmdevapi_stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/mmdevapi.def)
 
index 3436ff4..29e8392 100644 (file)
 
 #include "mmdevapi.h"
 
-#define _WINDOWS_H
+#include <wine/list.h>
+
 #include <ole2.h>
+#include <initguid.h>
+#define _WINDOWS_H
 #include <dshow.h>
 #include <devpkey.h>
 
-#include <wine/list.h>
-
 static const WCHAR software_mmdevapi[] =
     { 'S','o','f','t','w','a','r','e','\\',
       'M','i','c','r','o','s','o','f','t','\\',
diff --git a/reactos/dll/win32/mmdevapi/guid.c b/reactos/dll/win32/mmdevapi/guid.c
new file mode 100644 (file)
index 0000000..fb6a9f9
--- /dev/null
@@ -0,0 +1,18 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <objbase.h>
+#include <initguid.h>
+#include <audiopolicy.h>
+#include <endpointvolume.h>
+#include <mmdeviceapi.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
index 9fcb4cc..0435522 100644 (file)
@@ -32,7 +32,6 @@
 #include <winbase.h>
 #include <wingdi.h>
 #include <winreg.h>
-#include <initguid.h>
 #include <objbase.h>
 #include <audiopolicy.h>
 #include <endpointvolume.h>