Subject JRD_num_attachments
Author Jim Starkey
I'm currently struggling with the Windows server code. There is some
arcanity in the module window.cpp that handles the Win32 message
WM_DEVICECHANGE. It uses a bastard call JRD_num_attachments to find any
files open on a given driver letter. If there are, the request is refused.

I don't understand why this code is necessary. Win32 won't let you
remove or rename a device in use, meaning an open file. The code
doesn't seem to do anything but emulate this, refusing messages where
the engine is known to have open files.

The call JRD_num_attachments is a crock, as is. It's primary purpose,
to determine whether the server is in use, is handled by the (proposed)
call "fb_shutdown_connections (fb_shutdown_count, 0)". Does anyone know
why WM_DEVICECHANGE code exists?

--

Jim Starkey
Netfrastructure, Inc.
978 526-1376