EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Determine State of Driver

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#3399
Posted: 07/19/2007 01:06:44
by Stefan Stefan (Basic support level)
Joined: 07/18/2007
Posts: 15

Hello!
Is there a way to determine the state of the driver (whether it is installed and get a version number of the installed driver)?
Regards
Stefan
#3405
Posted: 07/19/2007 01:29:49
by Eugene Mayevski (EldoS Corp.)

Will be implemented in the next build.


Sincerely yours
Eugene Mayevski
#3415
Posted: 07/19/2007 18:27:57
by Stefan Stefan (Basic support level)
Joined: 07/18/2007
Posts: 15

Thanks a lot for your answer!
Regards
Stefan
#3427
Posted: 07/21/2007 07:18:58
by Josh Sanford (Standard support level)
Joined: 12/24/2006
Posts: 17

Hi Stefan,

Until the new build comes out, you can use the windows API function CreateFile to check if the driver is installed.

Code
function DriverLoaded: boolean;
var
  Afile: Thandle;
begin
  AFile := CreateFile('\\.\solfs.sys', 0, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
  result := AFile <> Invalid_Handle_Value;
  if result then
    closeHandle(AFile);
end;


Best Regards,
Josh
#3428
Posted: 07/21/2007 07:33:52
by Eugene Mayevski (EldoS Corp.)

The new beta version is available on the site. Custom builds are not available for download (we can put them online on request).


Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 3497 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!