From: tatsun on
Hi

I am developping the HID KMDF minidriver.
It need to have many parameters in device context. But I do not know the
limitation of device context. Tell me about the size limitation.
From: Maxim S. Shatskih on
> I am developping the HID KMDF minidriver.
> It need to have many parameters in device context. But I do not know the
> limitation of device context. Tell me about the size limitation.

I don't think it is limited except by the total OS's nonpaged memory.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: tatsun on
Thanks Maxim.

I understand that if WdfDeviceCreate is succes, device context is created
successfull.



"Maxim S. Shatskih" wrote:

> > I am developping the HID KMDF minidriver.
> > It need to have many parameters in device context. But I do not know the
> > limitation of device context. Tell me about the size limitation.
>
> I don't think it is limited except by the total OS's nonpaged memory.
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>
> .
>
From: Doron Holan [MSFT] on
there is a limit to the context size, it is a bit under MAX_USHORT. don't
know if that is documented or not. you can always have one field which is a
pointer to your bigger alloc

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"tatsun" <tatsun(a)discussions.microsoft.com> wrote in message
news:0A62294D-B331-4F87-A14B-8FE25D931F8A(a)microsoft.com...
> Thanks Maxim.
>
> I understand that if WdfDeviceCreate is succes, device context is created
> successfull.
>
>
>
> "Maxim S. Shatskih" wrote:
>
>> > I am developping the HID KMDF minidriver.
>> > It need to have many parameters in device context. But I do not know
>> > the
>> > limitation of device context. Tell me about the size limitation.
>>
>> I don't think it is limited except by the total OS's nonpaged memory.
>>
>> --
>> Maxim S. Shatskih
>> Windows DDK MVP
>> maxim(a)storagecraft.com
>> http://www.storagecraft.com
>>
>> .
>>