Subject how to stop FireBird SS running in Application mode using Win32 API provided it's hidden window was disabled in config file?
Author David Wishnie
Hello,

I'm running SS in Application mode on Win32. I need to stop it gracefully
using Win32 API. The PID of the fbserver.exe is known (since my app started
it).

How can I stop it without data corruption?

Will such code lead to data corruption (i.e. will server know that it's
being closed when terminated this way)?
HANDLE hProc=OpenProcess(PROCESS_TERMINATE,FALSE,pid);
if(hProc)
TerminateProcess(hProc,0);


PS: don't suggest to run firebird as service!!

Thanks in advance,
-David


[Non-text portions of this message have been removed]