How to share the same WDM driver between Win2000 and Win98 SE?

Discussion in 'Windows Vista Drivers' started by Matthew Zhang, Sep 7, 2004.

  1. Hoi,
    Last week, I bought a USB modem with the driver souce code(supplied by
    vendor, only for Win2000)for driver development learning. As Win98 also
    supports WDM driver model, I wanna modify the driver to fit the Win98 system.
    BUT, resulted in a lot of compiling errors.

    I refer to many pages to find the answer, and got a hint that WDMSTUB can
    fix this problem. But I still have questions for it.
    1. What's the driver model after importing the WDMSTUB
    as in NTDDK documentation, WDM Modem Driver Model is as below:
    TAPI
    Unimodem
    VCOMM
    CCPORT.SYS
    WDM Modem Driver

    but where the WDMSTUB locates?
    2. after importing the WDMSTUB, will the driver be used as a VxD driver or a
    WDM driver.
    I mean, if I wanna use the driver to send/receive data, what kind of
    function should I call? VxD style or WDM style?

    I'm a newbie, I really don't know whether I can make you understand What I
    said.
    Hope you can give me an answer. I've stressed out by these questions. :(
     
    Matthew Zhang, Sep 7, 2004
    #1
    1. Advertisements

  2. Matthew Zhang

    Tim Roberts Guest

    Do you have the DDK? Which DDK? What compilation errors do you get?

    I'm surprised you had trouble. With a few exceptions, most Win2K WDM
    drivers work without modification on Win98.
    WDMSTUB does not change the driver model. It's still WDM. All WDMSTUB
    does is provide a few kernel APIs that are not available on Windows 98.
    WDMSTUB is just a library that gets used by your driver, much like the C
    run-time library is used by C programs.. It isn't part of the driver
    stack.
    It's still WDM, of course. A VxD is a VERY different kind of driver.
    If you want to use the driver to send and receive data, you use the TAPI
    and modem APIs. You don't talk directly to the driver.
     
    Tim Roberts, Sep 9, 2004
    #2
    1. Advertisements

  3. Matthew Zhang

    Walter Oney Guest

    Actually, it IS part of the stack. It's a lower filter. The OP may not
    realize that he needs to get WDMSTUB.SYS from thet set of samples that
    accompany my book and that he needs a royalty-free license from me in
    order to redistribute it.
     
    Walter Oney, Sep 9, 2004
    #3
  4. Matthew Zhang

    Guillaume Guest

    I'm surprised you had trouble. With a few exceptions, most Win2K WDM
    Oh, is that so? ;-)
     
    Guillaume, Sep 9, 2004
    #4
  5. Matthew Zhang

    Tim Roberts Guest

    Well, perhaps my luck has been extraordinarily good.

    Also, the OP did mention Win98SE, which is a significant step above Win98.
     
    Tim Roberts, Sep 11, 2004
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.