Problem opening KMDF driver in Win7 64

Hi all,
I wrote a KMDF driver based on the Toaster sample. This is my first KMDF
driver. So far I test my driver in WinXP Professional 32 and Win 7 Ultimate
64. It works fine in Win XP but in Win7 Ultimate 64
CreateFile(“\.\MyDriverSymbolicLink”, …) in application fails with
error Access denied. However if I run application as administrator,
CreateFile() returns succces and everything works.
Can you please tell me what the problem could be and how can I fix the
problem?

Thanks in advanced.
Quang

Quang Vu wrote:

Hi all,
I wrote a KMDF driver based on the Toaster sample. This is my first KMDF
driver. So far I test my driver in WinXP Professional 32 and Win 7 Ultimate
64. It works fine in Win XP but in Win7 Ultimate 64
CreateFile(“\.\MyDriverSymbolicLink”, …) in application fails with
error Access denied. However if I run application as administrator,
CreateFile() returns succces and everything works.
Can you please tell me what the problem could be and how can I fix the
problem?

Have you looked at the code at all? Did you notice the “Security”
registry entry in the INF file that sets the permissions so it can only
be accessed by administrators?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks Tim for your quick response.
I’'ll look at security attribute in INF file and driver code.

QUANG

“Tim Roberts” wrote in message news:xxxxx@ntdev…
> Quang Vu wrote:
>> Hi all,
>> I wrote a KMDF driver based on the Toaster sample. This is my first KMDF
>> driver. So far I test my driver in WinXP Professional 32 and Win 7
>> Ultimate
>> 64. It works fine in Win XP but in Win7 Ultimate 64
>> CreateFile(“\.\MyDriverSymbolicLink”, …) in application fails with
>> error Access denied. However if I run application as administrator,
>> CreateFile() returns succces and everything works.
>> Can you please tell me what the problem could be and how can I fix the
>> problem?
>
> Have you looked at the code at all? Did you notice the “Security”
> registry entry in the INF file that sets the permissions so it can only
> be accessed by administrators?
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>