EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Licence key usage

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.
#15823
Posted: 02/21/2011 04:40:21
by Fischer Hermann (Basic support level)
Joined: 02/21/2011
Posts: 7

Hi,

I got the eval version of rawdisk and requested the licence key. But i got 2 single licence keys in 2 lines. Which one is the right?

Thank you
#15826
Posted: 02/21/2011 05:01:34
by Eugene Mayevski (EldoS Corp.)

That is one long line, probably wrapped by your mail client.


Sincerely yours
Eugene Mayevski
#15828
Posted: 02/21/2011 06:34:58
by Fischer Hermann (Basic support level)
Joined: 02/21/2011
Posts: 7

Thank you. Ok, so the licence key contains 143 chars?

Are there any examples which show, how to use? If I call GetDriverStatus, what is the "ProgramName", when I installed the driver with the setup program?

If I call InstallDriver, I get an error "The specified driver is invalid." I'm using Windows 7 32bit and VS2008. I installed the driver as Admin and use it with non admin rights...

In OpenEx I get the error "The parameter is incorrect". I'm using the follwing code:
for ( int i = 0; i < 64; i++ )
{
sprintf (szCFDevice, "\\??\\PhysicalDrive%d", i);

BOOL bTest;
dev = CRawDisk::OpenEx (LPWSTR(szCFDevice), GENERIC_WRITE | GENERIC_READ, LPWSTR(LicenceKey), FALSE, &bTest);
ShowError ("CRawDisk::OpenEx");
}

What's wrong?

Thank you again...
#15829
Posted: 02/21/2011 06:48:53
by Volodymyr Zinin (EldoS Corp.)

Quote
Fischer Hermann wrote:
If I call InstallDriver, I get an error "The specified driver is invalid.

Are you using 32-bit version of the driver? Such error occurs if 64-bit version of the driver is installed on a 32-bit platform and vice verse.
#15830
Posted: 02/21/2011 07:05:41
by Fischer Hermann (Basic support level)
Joined: 02/21/2011
Posts: 7

Hmm. Yes, I used the 32bit driver on 64 bit Win 7 and a 32bit MFC application. Sorry.

I tried the 64bit version. But now I get the error "Access is denied". So I think, I can call InstallDriver only with admin rights. Is it necessary to call InstallDriver in my Application? Or is it a function to install the files and the driver on a system?

BOOL reboot;
BOOL result = CRawDisk::InstallDriver(L"C:\\Program Files x86)\\EldoS\\RawDisk\\Drivers\\debug\\64bit\\x64\\elrawdsk.sys","SomeName",&reboot);
#15831
Posted: 02/21/2011 07:38:35
by Volodymyr Zinin (EldoS Corp.)

Driver installation can be only done with administrator rights. For Vista/Win7 it means the installer must be executed elevated (i.e. "run as admin").

Quote
Fischer Hermann wrote:
Is it necessary to call InstallDriver in my Application? Or is it a function to install the files and the driver on a system?

It's better to install the driver once. For example from your application installer. Then you can use the driver functions without additional (administrator) rights.
#15832
Posted: 02/21/2011 07:44:42
by Fischer Hermann (Basic support level)
Joined: 02/21/2011
Posts: 7

Vladimir, do you know whats wrong in my OpenEx function call? It does not work...
#15833
Posted: 02/21/2011 08:03:06
by Volodymyr Zinin (EldoS Corp.)

Has the driver been installed successfully? What does GetDriverStatus return?
If so tell me what GetLastError returns right after CRawDisk::OpenEx.
Thanks.
#15834
Posted: 02/21/2011 08:12:36
by Fischer Hermann (Basic support level)
Joined: 02/21/2011
Posts: 7

How can I see, if the driver is installed? And what is the first paramater (Programname) in GetDriverStatus?

GetLastError returns "The parameter is incorrect". I'm using the follwing code:
for ( int i = 0; i < 64; i++ )
{
sprintf (szCFDevice, "\\??\\PhysicalDrive%d", i);

BOOL bTest;
dev = CRawDisk::OpenEx (LPWSTR(szCFDevice), GENERIC_WRITE | GENERIC_READ, LPWSTR(LicenceKey), FALSE, &bTest);
ShowError ("CRawDisk::OpenEx");
}
#15835
Posted: 02/21/2011 08:38:02
by Eugene Mayevski (EldoS Corp.)

Yes, GetDriverStatus.

You specify ProgramName during installation. So the first parameter is the same name that you passed during installation.

Note, that there's an installer DLL available as a separate module to be called from your installation script.


Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

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