A very tricky one and not that sure...
Can I have a model, make or anything a bit further to help.
I had a similar model from a trade show and I found that the application that does the locking was very unsecure, I resource edited it and basically remove the error box, so upon entering the program, I just pressed enter and it unlocked.
However, on a friend's one, the section was write protected and we were unable to do the same method
There many thousand of manufacturers and devices, without knowing a lot more, there is not a answer that fits all.
It would be interesting to see that dll file and see how it "unlocks" the drive.
These files and directories are created by various applications:
.DS_Store - Created by Finder when you open a directory. It stores information about the folder (view options, icon positions, etc).
.fseventsd - created by the fseventsd daemon. It contains data about file system events such as modifications, deletion, creation, etc.
.Spotlight-V100 - stores indexing information for spotlight in the form of metadata.
.Trashes - A folder containing files that have been sent to trash but not yet deleted from the volume.
In order to prevent them all from being created, you have to modify the behaviour of each application individually. That would include adding an exception to Spotlight, Disabling Finder's caching feature (if possible), changing the fseventsd daemon and so on. I'm not sure if it's even possible to add exclusions or disable all of these features. If you don't need to write to the disk, I'd just mount it as read only to make things easier.
Best Answer
To prevent /.Spotlight files you must prevent Spotlight fron indexing external drives.
To do this for a specific drive add a file called .metadata_never_index to the root directory of the removable drive.
You can also completely prevent spotlight indexing but I figured that was not what you were looking for.
To prevent .DS_Store files from being created:
More Info Here (And More files that you can prevent) and Here