- Add a header guard for pnp.idl's RESOURCEID, and add an internal define for setupapi as it uses incompatible Wine headers

svn path=/trunk/; revision=37710
This commit is contained in:
Stefan Ginsberg 2008-11-28 20:24:36 +00:00
parent 031931d95a
commit da6926f487
2 changed files with 7 additions and 0 deletions

View file

@ -44,6 +44,11 @@
#include <pseh/pseh.h>
/* This hack definition is necessary as long as setupapi
depends on Wine "compatibility" headers */
typedef ULONG RESOURCEID;
typedef RESOURCEID *PRESOURCEID;
#include <pnp_c.h>
#include "rpc_private.h"
#include "resource.h"

View file

@ -14,7 +14,9 @@ const unsigned long PNP_MAX_PROP_SIZE = 65534;
const unsigned long PNP_MAX_PROP_COUNT = 32767;
const unsigned long PNP_MAX_BUFFER_SIZE = 16000000;
cpp_quote("#ifndef _CFGMGR32_H_")
typedef unsigned long RESOURCEID;
cpp_quote("#endif")
typedef unsigned long DEVPROPTYPE;
typedef [range(0, PNP_MAX_PROP_SIZE)] unsigned long PNP_PROP_SIZE, *PPNP_PROP_SIZE;
typedef [range(0, PNP_MAX_PROP_COUNT)] unsigned long PNP_PROP_COUNT, *PPNP_PROP_COUNT;