How to verify if a DGN is in use *before* opening

Hi all,

I would like to verify if a DGN is already opened by another user before using mdlSystem_newDesignFile(...) to open it. The application using the file can be anywhere on the local network.

I know, when the new DGN is opened, I can check mgds_modes.dgn_read_only and go back if it is true, but is not a good way for me because file have many references and the opening was very slow. If I can avoid to open already used file, users will be happy!

I'm trying unsuccesfuly to use mdlFile_getFileAttributes(...).

Many thanks for your ideas...

MicroStation V8 2004 (, MDL in native code.