Hooking Pointer Routines

I want to hook the DrvMovePointer() and DrvSetPointerShape() routines
in my display driver. But I couldn’t do it by set the HOOK_Xxxx flags.
Actually, there are not corresponding bits for these two routines. Do
anyone how to hook these two function? Thanks.

-Lei

Lei Zhang wrote:

I want to hook the DrvMovePointer() and DrvSetPointerShape() routines
in my display driver. But I couldn’t do it by set the HOOK_Xxxx flags.
Actually, there are not corresponding bits for these two routines. Do
anyone how to hook these two function? Thanks.

As long as they are in the list of functions in the DRVENABLEDATA
structure you return at DrvEnableDriver time, they will be called.
There is no separate HOOK bit. Note that, if you implement one, you
must implement both.


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

One more question: does GDI call the DrvSetPointerShaper() function
when the pointer is set for the first time(i.e. on start up)?

Lei
On 5/31/05, Tim Roberts wrote:
> Lei Zhang wrote:
>
> >I want to hook the DrvMovePointer() and DrvSetPointerShape() routines
> >in my display driver. But I couldn’t do it by set the HOOK_Xxxx flags.
> >Actually, there are not corresponding bits for these two routines. Do
> >anyone how to hook these two function? Thanks.
> >
> >
>
> As long as they are in the list of functions in the DRVENABLEDATA
> structure you return at DrvEnableDriver time, they will be called.
> There is no separate HOOK bit. Note that, if you implement one, you
> must implement both.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Lei Zhang wrote:

One more question: does GDI call the DrvSetPointerShaper() function
when the pointer is set for the first time(i.e. on start up)?

Yes. You are not expected to have a default pointer shape. GDI will
always send you one before asking you to display it.


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