#5 MIssing SERIAL_IOC_MCR_OUT1 definition?

closed
nobody
None
5
2009-02-02
2009-01-23
ThVortex
No

I tried compiling the tstser.cpp example but I don't see a definition in any of the header files for SERIAL_IOC_MCR_OUT1 and SERIAL_IOC_MCR_OUT2. Were you perhaps using a newer private version of cncext.h that hasn't been released yet?

Also, would it be better to put the IOCTL_SERIAL_GET/SET_MODEM_CONTROL defines into one of the headers? Or is this functionality still experimental and that's why you don't want to add it to the official header files?

Discussion

  • SERIAL_IOC_MCR_OUT1 and SERIAL_IOC_MCR_OUT2 are defined in
    winioctl.h of SDK (I use Microsoft Platform SDK for Windows
    Server 2003 R2):

    #define SERIAL_IOC_MCR_OUT1 ((DWORD)0x00000004)
    #define SERIAL_IOC_MCR_OUT2 ((DWORD)0x00000008)

    IOCTL_SERIAL_GET_MODEM_CONTROL and IOCTL_SERIAL_GET_MODEM_CONTROL
    are not defined by SDK (that's why they are defined in tstser.cpp)
    but defined in ntddser.h of DDK and are standard IOCTLs (that's
    why they are not defined in cncext.h).

     
    • status: open --> pending
     
  • ThVortex
    ThVortex
    2009-02-02

    • status: pending --> closed
     
  • ThVortex
    ThVortex
    2009-02-02

    I wouldn't think to look in the DDK. Once again, thanks for the info.