EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Unable to open a file with Rawdisk3

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#29654
Posted: 06/02/2014 09:11:32
by HILAIRE Nicolas (Standard support level)
Joined: 06/02/2014
Posts: 4

I'm actually porting my software from RawDisk2 to Rawdisk 3 .Net in C# and on the OpenEx command I got the error :
Quote
The system cannot find the path specified


Here is my lien of code :

Code
_fileHandle = RawDisk.CRawDisk.OpenEx(LogicalDriveName, unchecked((int)0xC0000000),
                                                  Constants.RawDiskRegKey,
                                                  false, ref failed);

and LogicalDriveName has the value :

Quote
"\\??\\G:"


But I have also tried the physical drive address that match the logical drive :
Quote
"\\\\.\\PHYSICALDRIVE2"


with the same result

Any idea ?

EDIT : For information, this code works perfectly in RawDisk2 !
#29656
Posted: 06/02/2014 09:31:52
by Eugene Mayevski (EldoS Corp.)

Check that the driver is installed and loaded. If you are running 64-bit Windows, you must sign the driver using your code signing certificate (the procedure is described in the help file in Deployment section).


Sincerely yours
Eugene Mayevski
#29658
Posted: 06/02/2014 09:47:05
by HILAIRE Nicolas (Standard support level)
Joined: 06/02/2014
Posts: 4

Thanks for your rapid answer.
If I understand, I must buy a certificate to make an internal tool ?
If I use debug version it also need certificate ?
#29659
Posted: 06/02/2014 09:55:57
by Eugene Mayevski (EldoS Corp.)

You need to sign the driver in order to have it loaded into 64-bit Windows . THe purpose of your use doesn't matter - Windows just won't load unsigned drivers.

We sign all our drivers but RawDisk (and RawDisk 2 also came signed), that's why there was no such problem before. We don't sign RawDisk 3 due to sensitive nature of the driver and the troubles related to possible misuse of the driver.


Sincerely yours
Eugene Mayevski
#29665
Posted: 06/03/2014 01:59:59
by HILAIRE Nicolas (Standard support level)
Joined: 06/02/2014
Posts: 4

But auto signed certificate are ok or must I buy a coding certificate ?
#29666
Posted: 06/03/2014 02:30:01
by Eugene Mayevski (EldoS Corp.)

You need to purchase the certificate as described in the help file. Not every code signing certificate will work -- only those from Verisign, GlobalSign, GoDaddy and DigiCert can be used.


Sincerely yours
Eugene Mayevski
#29667
Posted: 06/03/2014 03:04:23
by HILAIRE Nicolas (Standard support level)
Joined: 06/02/2014
Posts: 4

So, to use your tool I must buy a certificate that will cost me every year the cost of your lib !
#29668
Posted: 06/03/2014 03:13:26
by Eugene Mayevski (EldoS Corp.)

The certificate costs $200 or even less per year (Verisign is the most expensive in the list), and this is much less than the cost of RawDisk.


Sincerely yours
Eugene Mayevski
#29670
Posted: 06/03/2014 05:31:35
by Volodymyr Zinin (EldoS Corp.)

It doesn't necessary to buy the certificate every year. Signed driver will be valid even after the certificate has expired. But of course you won't be able to sign another driver if a certificate is expired.

And just to accentuate once more - not all certificates are allowed to sign Windows drivers, but only "certificates for kernel mode code signing".
#29671
Posted: 06/03/2014 05:34:50
by Eugene Mayevski (EldoS Corp.)

Correction: signed and timestamped driver, not just signed. Timestamping is free but it needs to be done (that's trivial - just an extra parameter to signtool.exe call).


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 6210 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!