Home > Software engineering >  Write a serial port data failed WriteFile returns 0
Write a serial port data failed WriteFile returns 0

Time:09-18

Transfer files such as: the serial port using Xdemon agreement, as I write this fails, GetLastError WriteFile always returns 0, error code is 22
What is this? Please the great god guide! ~ ~!

CodePudding user response:

22. The device does not recognize The command ERROR_BAD_COMMAND


CodePudding user response:

The device does not recognize The command.

CodePudding user response:

To say why, it makes no sense to say these bullshit

CodePudding user response:

When something goes wrong see WriteFile file handle also right, turn the handle damaged

CodePudding user response:

Should be a place of memory cross-border, try to write a small demo
  • Related