I have a WDM version of a driver for a PCI board.
I have ported it to KMDF and built it with KMDF1.5.
The original WDM driver loads fine on Vista32 and the application also
runs well even with UAC enabled or as a non-administrator user.
But with the new KMDF version driver, I get following issue: When UAC
is enabled or I run as non-administrator user, the application gets
'Access Denied' error for CreateFile call.
What could be the issue?

Re: CreateFile fails when UAC is enabled. by Maxim

Maxim
Thu Jul 12 04:49:59 CDT 2007

Different device object security attributes used by bare IoCreateDevice and
by KMDF.

There are several ways of setting the DO's security, some by coding,
another by declarations in the registry/INF file. They are documented.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"mayur" <mayuradatia@gmail.com> wrote in message
news:1184230356.719896.129240@g4g2000hsf.googlegroups.com...
> I have a WDM version of a driver for a PCI board.
> I have ported it to KMDF and built it with KMDF1.5.
> The original WDM driver loads fine on Vista32 and the application also
> runs well even with UAC enabled or as a non-administrator user.
> But with the new KMDF version driver, I get following issue: When UAC
> is enabled or I run as non-administrator user, the application gets
> 'Access Denied' error for CreateFile call.
> What could be the issue?
>


Re: CreateFile fails when UAC is enabled. by Doron

Doron
Fri Jul 13 17:41:01 CDT 2007

http://blogs.msdn.com/doronh/archive/2007/07/12/having-two-names-is-not-necessarily-better-than-one-part-2.aspx

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:%23OPP6nGxHHA.4628@TK2MSFTNGP02.phx.gbl...
> Different device object security attributes used by bare IoCreateDevice
> and
> by KMDF.
>
> There are several ways of setting the DO's security, some by coding,
> another by declarations in the registry/INF file. They are documented.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "mayur" <mayuradatia@gmail.com> wrote in message
> news:1184230356.719896.129240@g4g2000hsf.googlegroups.com...
>> I have a WDM version of a driver for a PCI board.
>> I have ported it to KMDF and built it with KMDF1.5.
>> The original WDM driver loads fine on Vista32 and the application also
>> runs well even with UAC enabled or as a non-administrator user.
>> But with the new KMDF version driver, I get following issue: When UAC
>> is enabled or I run as non-administrator user, the application gets
>> 'Access Denied' error for CreateFile call.
>> What could be the issue?
>>
>