Windows boot and driver loading.. - Page 2
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29

Thread: Windows boot and driver loading..

  1. #16

    Re: Windows boot and driver loading..

    Hello,

    What are the debug messages that it prints?

    Peter

  2. #17
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    Quote Originally Posted by PeterBritton View Post
    Hello,

    What are the debug messages that it prints?

    Peter

    all functions run smoothly,nothing failed debug message showed

  3. #18
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    where can i download ifdtest.exe?and how to use it to debug my virtual reader?

  4. #19

    Re: Windows boot and driver loading..

    Hello,

    There is a useful looking smartcard wdk example that can be found at the following location of the wdk tree:

    src\smartcrd\pscr

    "pscrnt.c" contains example code for a lot of the IRP requests including Start - however the the code for start is dependant upon the device as to what needs to be done to start the device.

    Peter

  5. #20
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    still not work..hopless-.-

  6. #21
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    i tried to modify a kmdf smartcrd sample,but i don't know how to install the driver i build,the inf file seems to be so diffrent.

  7. #22

    Re: Windows boot and driver loading..

    Hello,

    sorry it doesnt appear to be working yet - writing drivers is an interesting challenge at times!
    Sometimes you need to go through step by step making sure that everything is how it should be

    Does AddDevice get called and complete sucessfully without errors?

    Peter

  8. #23
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    Quote Originally Posted by PeterBritton View Post
    Hello,

    sorry it doesnt appear to be working yet - writing drivers is an interesting challenge at times!
    Sometimes you need to go through step by step making sure that everything is how it should be

    Does AddDevice get called and complete sucessfully without errors?

    Peter
    the AddDevice funcion is called and no errors show up,thank u for your advice again

  9. #24

    Re: Windows boot and driver loading..

    Hello again,

    Does the driver get to see any incoming operational commands - such as IRP requests?

    Peter

  10. #25
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    Quote Originally Posted by PeterBritton View Post
    Hello again,

    Does the driver get to see any incoming operational commands - such as IRP requests?

    Peter
    this is the screenshot of the winobj
    Attached Images Attached Images  
    Last edited by Coslma; July 5th, 2009 at 11:37 PM. Reason: fail to upload jpg

  11. #26
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    anthoer jpg.
    device\00000033 is the worked virtual reader
    device\spenser is my reader which didn't work
    screader0 is the worked virtual reader
    screader1 is my reader
    Attached Images Attached Images  

  12. #27

    Re: Windows boot and driver loading..

    Hello,

    Thats great that its setting up symbolic links - but it doesnt answer why it isnt being seen in the list of available smartcard devices

    Make sure that the smart card service is started

    Use lots of kernel debug print statements in the driver code to display the error values that are being returned from the kernel API calls - and also see what return values that the driver is returning back to the calling layer.

    Peter

  13. #28
    Join Date
    Jun 2009
    Posts
    13

    Re: Windows boot and driver loading..

    Quote Originally Posted by PeterBritton View Post
    Hello,

    Thats great that its setting up symbolic links - but it doesnt answer why it isnt being seen in the list of available smartcard devices

    Make sure that the smart card service is started

    Use lots of kernel debug print statements in the driver code to display the error values that are being returned from the kernel API calls - and also see what return values that the driver is returning back to the calling layer.

    Peter
    thank u so much i have finished it. i did sthing wrong in the DeviceIOcontrol function.

  14. #29

    Re: Windows boot and driver loading..

    Hello,

    Congratulations on getting it to work!

    Peter

Page 2 of 2 FirstFirst 12

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center