谁知道这个简单函数返回值???(15分)

  • 主题发起人 主题发起人 crtd0241
  • 开始时间 开始时间
C

crtd0241

Unregistered / Unconfirmed
GUEST, unregistred user!
&nbsp; &nbsp; &nbsp;有关串口问题:<br>&nbsp; &nbsp; &nbsp; &nbsp; 请问哪位大哥知道setcommstate这个API函数的返回值?<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;小弟就剩下这么一点“钱”了,全部家当!!!
 
BOOL SetCommState(<br><br>&nbsp; &nbsp; HANDLE hFile, // handle of communications device<br>&nbsp; &nbsp; LPDCB lpDCB // address of device-control block structure<br>&nbsp; &nbsp;); <br>&nbsp;<br><br>Parameters<br><br>hFile<br><br>Identifies the communications device. The CreateFile function returns this handle. <br><br>lpDCB<br><br>Points to a DCB structure containing the configuration information for the specified communications device. <br><br>&nbsp;<br><br>Return Values<br><br>If the function succeeds, the return value is nonzero.<br>If the function fails, the return value is zero. To get extended error information, call GetLastError.
 
If the function succeeds, the return value is nonzero.<br>If the function fails, the return value is zero.<br>To get extended error information, call GetLastError.
 
楼上的竟然比我快了1分钟~~~~~~[:(!]
 
接受答案了.
 

Similar threads

S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
916
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部