vb sdk 串口编程

vb sdk 串口编程

ID:40569430

大小:59.00 KB

页数:11页

时间:2019-08-04

vb sdk 串口编程_第1页
vb sdk 串口编程_第2页
vb sdk 串口编程_第3页
vb sdk 串口编程_第4页
vb sdk 串口编程_第5页
资源描述:

《vb sdk 串口编程》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、VBSDK函数串口编程收藏viewplaincopytoclipboardprint?PrivateDeclareFunctionCreateFileLib"kernel32"_Alias"CreateFileA"(ByVallpFileNameAsString,_ByValdwDesiredAccessAsLong,ByValdwShareModeAsLong,_ByVallpSecurityAttributesAsLong,_ByValdwCreationDispositionAsLong,_ByValdwFlagsAnd

2、AttributesAsLong,ByValhTemplateFileAsLong)AsLongPrivateDeclareFunctionGetCommStateLib"kernel32"_(ByValhFileAsLong,ByReflpDCBAsDCB)AsLongPrivateDeclareFunctionSetCommStateLib"kernel32"_(ByValhFileAsLong,ByReflpDCBAsDCB)AsLongPrivateDeclareFunctionSetupCommLib"kernel3

3、2"(ByValhFileAsLong,_ByValdwInQueueAsLong,ByValdwOutQueueAsLong)AsLongPrivateDeclareFunctionPurgeCommLib"kernel32"_(ByValhFileAsLong,ByValdwFlagsAsLong)AsLongPrivateDeclareFunctionSetCommTimeoutsLib"kernel32"_(ByValhFileAsLong,ByReflpCommTimeoutsAsCOMMTIMEOUTS)AsLon

4、gPrivateDeclareFunctionCloseHandleLib"kernel32"(_ByValhObjectAsLong)AsLong'PrivateDeclareFunctionReadFileLib"kernel32"(ByValhFileAsLong,_lpBufferAsAny,ByValnNumberOfBytesToReadAsLong,lpNumberOfBytesReadAsLong,_lpOverlappedAsOVERLAPPED)AsLong'PrivateDeclareFunctionWr

5、iteFileLib"kernel32"(ByValhFileAsLong,_lpBufferAsAny,ByValnNumberOfBytesToWriteAsLong,lpNumberOfBytesWrittenAsLong,_lpOverlappedAsOVERLAPPED)AsLongPrivateDeclareFunctionWriteFileLib"kernel32"(_ByValhFileAsLong,lpBufferAsAny,_ByValnNumberOfBytesToWriteAsLong,_lpNumbe

6、rOfBytesWrittenAsLong,ByVallpOverlappedAsLong)AsLongDeclareFunctionReadFileLib"kernel32"(ByValhFileAsLong,_lpBufferAsAny,ByValnNumberOfBytesToReadAsLong,_lpNumberOfBytesReadAsLong,ByVallpOverlappedAsLong)AsLongConstPURGE_TXABORT=&H1ConstPURGE_RXABORT=&H2ConstPURGE_T

7、XCLEAR=&H4ConstPURGE_RXCLEAR=&H8ConstMAXDWORD=&HFFFFFFFFConstGENERIC_WRITE=&H40000000ConstGENERIC_READ=&H80000000ConstFILE_ATTRIBUTE_NORMAL=&H80ConstOPEN_EXISTING=3ConstFILE_FLAG_OVERLAPPED=&H40000000ConstINVALID_HANDLE_VALUE=-1PrivateTypeDCBDCBlengthAsLongBaudRateA

8、sLongfXXXAsLongwReservedAsIntegerXonLimAsIntegerXoffLimAsIntegerByteSizeAsByteParityAsByteStopBitsAsByteXonCharAsByteXoffCharAsByteErrorCh

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。