Check If lotus notes is locked

Hi,I am creating a vb6 application that will import and open DXL files into lotus notes client inbox using the notes client automation, i am facing a problem when the notes client is locked by the user (F5 or File->Security->Lock Display) and I am not able to find a way to check if notes client is locked if anybody knows how to check that from VB6 application please help me

I’d like also to mention that when I try to import the dxl file into lotus notes client while it’s locked the client behaves unexpectedly and sometimes crashes

Subject: Check If lotus notes is locked

common guys it should not be impossible