• Hello,


    i´ve tested the DIO Driver and have some problems while implementing.
    The output functions working well over WriteFile(), but input reading via ReadFile()
    makes some trouble. It ended every time with errorcode 12 ( ERROR_INVALID_ACCESS )




    Any Solutions ?


    best reguards


    Ch. Hartensteiner

  • Hello,


    how do you create the handle?
    Is the handle valid?


    DKuhne.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello DKuhne,


    the handel is created via CreateFile and is valid. The SetOutput routine called before the ReadInput routine
    is working with the same handle.



    Is there any problem working with the same handle ?


    Chris

  • Hello,


    you use GENERIC_WRITE as dwDesiredAccess!


    In case you want to read from driver you need to use GENERIC_READ also.


    You can use:

    Code
    1. (GENERIC_READ | GENERIC_WRITE)


    DKuhne.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.