overview
<p>Queries whether a component is ready to have its <ac:link><ri:page ri:content-title="ComponentEntry" /></ac:link>.<ac:link><ri:page ri:content-title="ComponentEntry.InitInterfaces" /><ac:plain-text-link-body><![CDATA[InitInterfaces]]></ac:plain-text-link-body></ac:link><ac:link><ri:page ri:content-title="ComponentEntry.InitInterfaces" /><ac:plain-text-link-body><![CDATA[ ]]></ac:plain-text-link-body></ac:link>function called to initialise it's interfaces.</p>
functiondefinition
<ac:structured-macro ac:name="code"><ac:parameter ac:name="language">cpp</ac:parameter><ac:plain-text-body><![CDATA[bool QueryInitInterfaces(
ComponentEntry* Entry,
bool bLastChance
);]]></ac:plain-text-body></ac:structured-macro>
parameters
<ac:structured-macro ac:name="vardef"><ac:parameter ac:name="Name">Entry</ac:parameter><ac:parameter ac:name="TypeMod">*</ac:parameter><ac:parameter ac:name="Linked">true</ac:parameter><ac:parameter ac:name="Type">ComponentEntry</ac:parameter><ac:parameter ac:name="Style">Parameter</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter><ac:rich-text-body><p>Pointer to the <ac:link><ri:page ri:content-title="ComponentEntry" /></ac:link> that is being queried for its interface initialisation status.</p></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:name="vardef"><ac:parameter ac:name="Name">bLastChance</ac:parameter><ac:parameter ac:name="Type">bool</ac:parameter><ac:parameter ac:name="Style">Parameter</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter><ac:rich-text-body><p>Whether this is the last chance the <ac:link><ri:page ri:content-title="ComponentEntry" /></ac:link> has to respond. QueryInitInterfaces will no longer be called you return from this invocation.</p></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:name="returnvalue"><ac:parameter ac:name="Type">bool</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter><ac:rich-text-body><p>Whether the specified component is ready to have its interfaces initialised via a call to <a href="http://docs.qbik.com/display/WINGATESDK/ComponentEntry.InitInterfaces">InitInterfaces</a><a href="http://docs.qbik.com/display/WINGATESDK/ComponentEntry.InitInterfaces"> </a></p><div /></ac:rich-text-body></ac:structured-macro>
returnvalue
<p><ac:structured-macro ac:name="returnvalue"><ac:parameter ac:name="Type">void</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter><ac:rich-text-body><p>None</p></ac:rich-text-body></ac:structured-macro></p>
remarkscontent
<p>QueryInitInterfaces is typically used to return TRUE once a module has bound to every other interface that it depends on. For example, you might create a module that requires Events and Data for it to function so you would continue to return FALSE from QueryInitInterfaces until you have been notified that both of those interfaces have been published.</p><p>QueryInitInterfaces may be called numerous times at various points during initialisation of WinGate modules and components.</p>
examplescontent
<ac:structured-macro ac:name="code"><ac:plain-text-body><![CDATA[bool QueryInitInterfaces(ComponentEntry* entry, bool bLastChance)
{
return (bBoundToDataComponent && bBoundToEventsComponent) || bLastChance;
}]]></ac:plain-text-body></ac:structured-macro>
seealsocontent
<p><ac:link><ri:page ri:content-title="QueryInitInterfacesFunc" /></ac:link></p>