//======== comheaders.c
#define WINVER 0x0A00
#define _WIN32_WINNT 0x0A00
#include <winerror.h> //not parsed by ImportC for E_NOINTERFACE
#undef E_NOINTERFACE
const ULONG E_NOINTERFACE = 0x80004002;
#include <guiddef.h> //not parsed by ImportC for REFIID
#undef REFIID
typedef const IID* REFIID;
#include <wtypes.h>
#include <oleauto.h>
#include <oaidl.h>
#include <ole2.h>
#include <objbase.h>
#include <activscp.h> //not parsed by ImportC for IActiveScriptParse
#undef IActiveScriptParse
typedef IActiveScriptParse64 IActiveScriptParse;
//=========
When compiled by dmd 2.108.0 (64-bit) with ImportC imported in D source, the above macros have not been made available, hopefully for a systematic reason.
Comment #1 by robert.schadek — 2024-12-13T19:34:30Z