Installing file system drivers

I am trying to install a file system driver in a similar manner to the
osrloader utility but I keep getting an error message when I try to start
the driver. The driver installs the registry settings successfully with
the following call:

schService = CreateService( SchSCManager, // SCManager database
“offs” // name of service
“offs” // name to display
SERVICE_ALL_ACCESS, // desired access
SERVICE_FILE_SYSTEM_DRIVER, // service type
SERVICE_DEMAND_START, // start type
SERVICE_ERROR_NORMAL, // error control type
“c:\winnt\system32\drivers\offs.sys”, // service’s
binary
NULL, // no load ordering group
NULL, // no tag identifier
NULL, // no dependencies
“offs”, // LocalSystem account
NULL // no password
);

I then call:

ret = StartService( schService, 0, NULL );

which fails with error 1068, “The dependency service or group failed to
start.”

Even though no dependencies have been specified. I am running as an
administrator and the user right for loading drivers is enabled for
administrators. Is there anything else that I should be doing?

Graham Shaw

On Tue, 23 Apr 2002 xxxxx@suntail.com wrote:

schService = CreateService( SchSCManager, // SCManager database
“offs” // name of service
“offs” // name to display
SERVICE_ALL_ACCESS, // desired access
SERVICE_FILE_SYSTEM_DRIVER, // service type
SERVICE_DEMAND_START, // start type
SERVICE_ERROR_NORMAL, // error control type
“c:\winnt\system32\drivers\offs.sys”, // service’s
binary
NULL, // no load ordering group
NULL, // no tag identifier
NULL, // no dependencies
“offs”, // LocalSystem account
NULL // no password
);

Try with also NULL for account name, it works for me.

Regards

Dano

xxxxx@suntail.com wrote:

I am trying to install a file system driver in a similar
manner to the osrloader utility but I keep getting an error
message when I try to start the driver.

> “c:\winnt\system32\drivers\offs.sys”,

You just need to double-up those backslashes…

Si

Try a valid path name to your binary. “C:\winnt\system32\drivers\offs.sys”
is not a valid pathname AT OS LEVEL. It may be for Win32, but the SCM is
not a Win32 program.

Try “??\C:\winnt\system32\drivers\offs.sys” - or try NULL (since you have
it in the standard location, with the key as the name of the driver).

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

Hope to see you at the next OSR file systems class October 7, 2002!

-----Original Message-----
From: Illes Attila [mailto:xxxxx@ktk.bme.hu]
Sent: Tuesday, April 23, 2002 5:50 AM
To: File Systems Developers
Subject: [ntfsd] Re: Installing file system drivers

On Tue, 23 Apr 2002 xxxxx@suntail.com wrote:

schService = CreateService( SchSCManager, // SCManager database
“offs” // name of service
“offs” // name to display
SERVICE_ALL_ACCESS, // desired access
SERVICE_FILE_SYSTEM_DRIVER, // service type
SERVICE_DEMAND_START, // start type
SERVICE_ERROR_NORMAL, // error control type
“c:\winnt\system32\drivers\offs.sys”, // service’s
binary
NULL, // no load ordering group
NULL, // no tag identifier
NULL, // no dependencies
“offs”, // LocalSystem account
NULL // no password
);

Try with also NULL for account name, it works for me.

Regards

Dano


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to %%email.unsub%%