Share

AcRxDynamicLinker::lockApplication

C++

virtual bool lockApplication(
    void* appId
) const = 0;

Description

This function locks an application, thus preventing it from being unloaded until it is either unlocked or AutoCAD shuts down.

The appId argument is the void* passed in as the second parameter to the application's acrxEntryPoint() function during the AcRx::kInitAppMsg call that occurs when the application is initially loaded.

Only the void* passed into acrxEntryPoint() during the AcRx::kInitAppMsg call is valid to be used by this function. So, if this function will be called at any other time, the void* passed in during the AcRx::kInitAppMsg call must be stored for later use.

This function returns true if the application is successfully locked; otherwise, it returns false.

Parameters

Parameters Description
appId Input void* from second parameter to acrxEntryPoint() during AcRx::kInitAppMsg call

Links

AcRxDynamicLinker

Was this information helpful?