Re: Calling NTKERNEL Mm functions from D3D Driver

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks Calvin.... the IOCTL was previously working as u proposed. Was trying
to move it from miniport do D3D.
Incidentally, where can i get this information from? I havent found it in
the DDK, i am sure it's somwhere in there, but cant find it as yet. Do you
know where that piece of "black and white" is?. Thanks again so much.

"Calvin Guan" wrote:

> You can't call kernel function from GDI driver (display driver, d3d). The
> loader will check the import table and refuses to load the binary if it's
> importing non-win32k functions.
>
> You could send an IOCTL to the miniport driver, have the miniport driver do
> the allocation. It works very well.
>
> good luck,
>
> --
> Calvin Guan, Windows DDK MVP
> Ex-SW Engineer -- Radeon NT Driver
> ATI Technologies Inc. www.ati.com
> No more video driver to write
>
>
> "Alan Previn" <AlanPrevin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:51C2691B-D985-4D45-85F7-A9138DF96EC6@xxxxxxxxxxxxxxxx
> > Hi there folks... was wondering if I can get my D3d driver to call
> > MmAllocatePagesForMdl. I currently have my WinXP D3D compiled and linked
> > (which contains a call to MmAllocatePagesForMdl), but the D3D driver
> doesn't
> > seem to get loaded by my display driver. Was wondering if there is any
> > limitation on displat drivers (DDI, DDRAW, D3D... ) to call NTKERNEL API's
> > like the MmXXX functions?
>
>
>
.



Relevant Pages

  • Re: Get MAC address
    ... allowed, you can check that without any driver, but setting such ... sending some IOCTL that involves writing but exactly ... but DeviceType and FunctionCode ones seem ... afd.sys has two ways to reach miniport drivers (i.e. directly via ...
    (microsoft.public.win32.programmer.kernel)
  • SMSC9118 NDIS ethernet driver, to connect LAN9115 directly to a PXA270 (no glue logic like cpld)
    ... I am trying to integrate in windows ce5.0 smsc driver for 911x family. ... adapter, then the pointer turns into a hour glass forever. ... ndisMInitializeAdapter: Miniport 0003B9C0, ... Miniport 0003B9C0, MiniBlock 0003B620, rc ...
    (microsoft.public.windowsce.embedded)
  • Re: Tcpip.sys bug: FTP Upload. MiniportHalt isnt called untill it has
    ... cancel packets on the miniport driver. ... driver, this bug would have been discovered long, long ago. ... handler and that does return all unsent packets to Ndis. ... hanging the PnP manager with device ...
    (microsoft.public.development.device.drivers)
  • Re: Tcpip.sys bug: FTP Upload. MiniportHalt isnt called untill it has
    ... NetEventQueryRemoveDevice query - instead, it can simply stop sending new ... call NdisCompletePnPEvenafter all packets that have been fowarded to ... cancel packets on the miniport driver. ... driver, this bug would have been discovered long, long ago. ...
    (microsoft.public.development.device.drivers)
  • Re: Promiscious mode with NIC driver
    ... You can't send these OIDs directly to the miniport through IoCtls. ... thing most miniports do not supports IoCtl interface themselves and if they ... >> You can write a protocol driver to set the driver to P mode. ...
    (microsoft.public.development.device.drivers)