Hi Daniel.

You are right, you need SC_MANAGER_CREATE_SERVICE to install the driver. However, the service is created upon winpcap installation, so the function "PacketInstallDriver()" should never been called by PacketOpenAdapterNPF.

Nevertheless, I think that we need to clean up that code (and maybe reopen the SCM before calling PacketInstallDriver, if we want to maintain that fcn).

Thanks for the report.

Have a nice day
GV

----- Original Message ----- From: "Daniel Smith" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, February 21, 2005 11:14 PM
Subject: [WinPcap-users] PacketOpenAdapterNPF bug - error creating service



Hi,

There is a bug in the creation of the NPF service from the PacketOpenAdapterNPF function. If the service doesn't exist, it should be created. However, a the service control manager was only being open with GENERIC_READ, which results in ERROR_ACCESS_DENIED. The service control manager must be open with the access right SC_MANAGER_CREATE_SERVICE in order to create a service.

Daniel


====================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[email protected]/

To unsubscribe use
mailto: [EMAIL PROTECTED]
======================





==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[email protected]/

To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to