EldoS | Feel safer!

Software components for data protection, secure storage and transfer

RawDisk InstallDriver

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 01/28/2009 09:20:38
by Joshua Masters (Basic support level)
Joined: 01/28/2009
Posts: 2


When trying to use the InstallDriver function of the RawDisk library I get the following error:

Unhandled exception at 0x00a2762f in TestRaw.exe: 0xC0000005: Access violation writing location 0x00000000.

Here is my test code:
CRawDisk objRawDisk;
LPBOOL reboot = 0;
const char* progName = "TestRaw";
objRawDisk.InstallDriver((LPCWSTR)TEXT("c:\\elrawdsk.sys"), progName, reboot);

On another note I had to add
#include "Winsvc.h"
to rawdisk.h otherwise I could not compile my project as VC++ could not recognize LPSERVICE_STATUS.

Any thoughts?

Posted: 01/28/2009 09:37:01
by Eugene Mayevski (Team)

RawDisk methods are class methods, so you should call CRawDisk::InstallDriver. At least I think so.

AS for the header - what version of VC++ are you using? I think there's some define regarding windows version is missing from the project configuration. In other words, in some cases winsvc.h is referenced by windows.h, and in some cases it's not and this is controlled by define in stdafx.h.

Sincerely yours
Eugene Mayevski
Posted: 01/28/2009 10:22:43
by Joshua Masters (Basic support level)
Joined: 01/28/2009
Posts: 2

I am using Visual Studio 2008, Sp1.

I used this code below and got the same error:

LPBOOL reboot = 0;
const char* progName = "TestRaw";
CRawDisk::InstallDriver((LPCWSTR)TEXT("c:\\elrawdsk.sys"), progName, reboot);

I also gave it a try in Visual Studio 6 with similar results.

Posted: 01/28/2009 11:32:22
by Eugene Mayevski (Team)

Moved to HelpDesk for checking by the developer.

Sincerely yours
Eugene Mayevski



Topic viewed 7078 times

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


Back to top

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

Got it!