The IApplicationObject::Lock method prevents other clients from accessing the variables stored in the Application object until the Unlock method has been called. For more information see the Lock method of the Application object.
HRESULT Lock(VOID);