CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    1

    Problems with WinDDK provided sample drivers (DrvStartPage does not get called).....

    Hi,

    For the development of printer driver i took the base of the Bitmap driver provided with WinDDK sample codes .
    (WinDDK\7600.16385.1\src\print\oemdll\bitmap)
    I just need to hook one more callbacks INDEX_DrvStartPage to a custom handler function.

    static const DRVFN s_aOemHookFuncs[] =
    {
    {INDEX_DrvStartPage, (PFN) DrvStartPage},
    {INDEX_DrvEndDoc, (PFN)DrvEndDoc}
    };

    But stuck now as the DrvStartDoc does not get called up by the GDI ??? I can debug the project but the breakpoint does not hit in the function.

    I also debugged the printer driver codes provided with WinDDK. Bitmap and oemuni sample. Same behavior is seen StartDoc is not being called for it??

    oemuni sample is configured using "File" port. File does gets created on the location still yet DrvStartDoc does not get called up ???????

    Am i missing something here ? Any help on this would be appreciated.

    Thanks,
    Pratik.

  2. #2
    Join Date
    Mar 2001
    Posts
    2,529

    Re: Problems with WinDDK provided sample drivers (DrvStartPage does not get called)..

    I suggest that you subscribe to one of the lists on the OSR website.

    http://www.osronline.com/

    I have received help from them, to positive end.
    ahoodin
    To keep the plot moving, that's why.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured