|
@@ -32,6 +32,14 @@ static const char * EclDefinition =
|
|
|
|
|
|
EXAMPLELIB_API bool getECLPluginDefinition(ECLPluginDefinitionBlock *pb)
|
|
|
{
|
|
|
+ // Warning: This function may be called without the plugin being loaded fully.
|
|
|
+ // It should not make any library calls or assume that dependent modules
|
|
|
+ // have been loaded or that it has been initialised.
|
|
|
+ //
|
|
|
+ // Specifically: "The system does not call DllMain for process and thread
|
|
|
+ // initialization and termination. Also, the system does not load
|
|
|
+ // additional executable modules that are referenced by the specified module."
|
|
|
+
|
|
|
if (pb->size != sizeof(ECLPluginDefinitionBlock))
|
|
|
return false;
|
|
|
|