<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to add a custom C++ method to Engine scripting API?]]></title><description><![CDATA[<p dir="auto">I'm building a compiled VST3 plugin with HISE and need to call a Windows API function (CreateMutexA) from HiseScript to detect whether a specific host DAW is running. I'm building HISE from source in Visual Studio 2022.<br />
I tried adding the method to ScriptingApi.cpp and ScriptingApi.h following the existing getName() pattern, but including windows.h at the top of ScriptingApi.cpp causes a Rectangle macro conflict that breaks compilation.<br />
What is the correct way to either (1) include windows.h safely in ScriptingApi.cpp, or (2) add a custom Engine method that calls a Windows API function?</p>
]]></description><link>https://forum.hise.audio/topic/14601/how-to-add-a-custom-c-method-to-engine-scripting-api</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Apr 2026 06:50:34 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/14601.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Apr 2026 16:26:57 GMT</pubDate><ttl>60</ttl></channel></rss>