EldoS | Feel safer!

Software components for data protection, secure storage and transfer

C#.Net RawDisk version 3 File not found

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.
#30422
Posted: 08/20/2014 07:54:47
by Thomas Wetzel (Standard support level)
Joined: 10/07/2012
Posts: 6

Hi,

I switched from version 2 to version 3 of Rawdisk.

After signing the driver I could install it successfully.

But then I have problems opening a file handle.

This code doesn't work:

string strPath = @"\??\H:\outlook\myfile.pst";
IntPtr myHandle = RawDisk.CRawDisk.CreateFileW ( strPath, GENERIC_READ, 4, 0, strLicenseKey);

I get an error "System couldn't find path".

I tried double backslashes, too but this didn't help.
(string strPath = @"\\??\\H:\outlook\myfile.pst";)

Could you help?

Thank you,
Thomas
#30424
Posted: 08/20/2014 08:13:02
by Volodymyr Zinin (EldoS Corp.)

Try to call the RawDisk.GetDriverStatus method and if it's successful then check the output ServiceStatus.dwCurrentState parameter. It should be 4 (i.e. SERVICE_RUNNING). In the case there is a problem with the driver signing it will be set to 1 (i.e. SERVICE_STOPPED).
#30425
Posted: 08/20/2014 08:55:28
by Thomas Wetzel (Standard support level)
Joined: 10/07/2012
Posts: 6

Hi,

Thank you for your reply.

I examined the dwCurrentState. It's 1.

Then I uninstalled the driver again and reinstalled it.

I've checked the digital signature of the driver. It seems to be valid and a Comodo certificate.

Doesn't a Comodo certificate work?

Thomas
#30426
Posted: 08/20/2014 09:15:12
by Eugene Mayevski (EldoS Corp.)

Unfortunately Comodo certificates won't work. Please refer to the instructions in the help file regarding driver signing - the instructions contain the link to Microsoft site with the list of accepted CAs (for which you need to take a cross-certificate from that page and then use the cross-certificate during signing).


Sincerely yours
Eugene Mayevski
#30427
Posted: 08/20/2014 09:20:47
by Thomas Wetzel (Standard support level)
Joined: 10/07/2012
Posts: 6

Hi,

meanwhile I came across the note that finally Comodo has a cross-signed certificate with Microsoft.

Read here:

http://forums.comodo.com/code-signing-certificate/comodo-crosscertificates-for-windows-kernel-mode-code-signing-t97686.0.html

Or doesn't it still work even with this cross signing intermediate certificate?

Thomas
#30428
Posted: 08/20/2014 09:27:01
by Eugene Mayevski (EldoS Corp.)

You need to include that cross-certificate into the signature. Please do re-check the topic in the help file.


Sincerely yours
Eugene Mayevski
#30429
Posted: 08/20/2014 09:47:11
by Thomas Wetzel (Standard support level)
Joined: 10/07/2012
Posts: 6

Hi,

OK.

I understand this a little bit.

But what do I need to enter as "Subject name of the certificate"?

Can I choose it myself?


Thomas
#30430
Posted: 08/20/2014 10:07:28
by Eugene Mayevski (EldoS Corp.)

That's the value of SubjectName.CommonName field of the certificate. You specify it in the command line to tell signtool what certificate to use (i.e. how signtool should identify the certificate).

The certificate can be viewed using "Certificates" snap-in of Microsoft Management Console (start "mmc.exe" from command line).


Sincerely yours
Eugene Mayevski
#30436
Posted: 08/21/2014 01:24:41
by Thomas Wetzel (Standard support level)
Joined: 10/07/2012
Posts: 6

Hi Eugene,

I've finally successfully signed my driver.
After installing my drive the ServiceStatus.dwCurrentState is 4.

But when I try to open a file handle I get the error "Access denied" (NativeErrorCode 5).

This is the code I use:

string strPath = @"\??\H:\outlook\myfile.pst";
IntPtr myHandle = RawDisk.CRawDisk.CreateFileW ( strPath, GENERIC_READ, 4, 0, strLicenseKey);

Could you help?
Thomas
#30442
Posted: 08/22/2014 01:42:59
by Thomas Wetzel (Standard support level)
Joined: 10/07/2012
Posts: 6

Hi,

Do you have any tips for me how to solve this issue?

With version 2 I had no problems at all.

Thomas
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

Topic viewed 10599 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!