<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 02/16/2018 12:27 PM, Stefan Dösinger
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:49D24F0F-319F-4905-8A6E-7708987EA772@gmail.com"><br
class="">
<div>
<blockquote type="cite" class="">
<div class="">Am 16.02.2018 um 11:09 schrieb Jacek Caban <<a
href="mailto:jacek@codeweavers.com" class=""
moz-do-not-send="true">jacek@codeweavers.com</a>>:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="font-family: Helvetica; font-size:
12px; font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; float: none; display:
inline !important;" class="">In such cases we need to use
the second way. Note that uuids are usually defined using
DEFINE_GUID in headers, see guiddef.h for the macro. It
expands to |extern const GUID| unless DEFINE_GUID is
defined. If it's defined, full declaration is included. In
wmp_main.c we include initguid.h, which defines
DEFINE_GUID macro. It means that we will have uuids
declared for all headers included in wmp_main.c.</span><br
style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
</div>
</blockquote>
</div>
Wouldn't it be possible to include public headers that have GUIDs
from uuid.lib, then include initguid.h, and then include headers
that define WMP guids (or define the WMP GUIDs manually)? That
should import guids that work with uuid.lib from there and define
the rest.
<div class=""><br class="">
</div>
<div class="">Of course the beauty of a half-way approach is
always questionable, so not sure if that's better than just
using DEFINE_GUID for everything.</div>
</blockquote>
<p><br>
</p>
<p>Sure, that would work as well. The downside is that then we
depend on includes hierarchy - if we ever need to change includes
in headers, we need to take that into account in non-intuitive
places. It's not a big deal, so I think the solution is fine.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Jacek<br>
</p>
</body>
</html>