术语 | gettapestatus |
释义 | GetTapeStatus 语法: C++ DWORD GetTapeStatus( __in HANDLE hDevice ); GetTapeStatus功能 该GetTapeStatus函数确定磁带设备是否准备处理磁带的命令。 参数 hDevice [in] 该设备处理那些获得设备状态。这种处理是通过使用CreateFile函数创建。 返回值 如果磁带设备已准备好接受没有返回错误适当的磁带访问的命令,返回值为NO_ERROR。 如果函数失败,它可以返回以下错误代码之一。 错误codeDescription ERROR_BEGINNING_OF_MEDIA 1102LAn试图访问数据之前开始的介质标记失败。 ERROR_BUS_RESET 1111LA复位条件检测总线上。 ERROR_DEVICE_NOT_PARTITIONED 1107LThe分区信息时,找不到磁带被加载。 ERROR_DEVICE_REQUIRES_CLEANING 1165LThe磁带驱动器能够报告说,它需要清理,并报告说,它确实需要清洗。 ERROR_END_OF_MEDIA 1100LThe最终磁带标记达成了一项行动。 ERROR_FILEMARK_DETECTED 1101LA文件标记达成了一项行动。 ERROR_INVALID_BLOCK_LENGTH 1106LThe块大小不正确的,是在一个多卷分区的新磁带。 ERROR_MEDIA_CHANGED 1110LThe磁带,在驱动器已被替换或删除。 ERROR_NO_DATA_DETECTED 1104LThe终了数据标记达成了一项行动。 ERROR_NO_MEDIA_IN_DRIVE 1112LThere在驱动器中没有媒体。 ERROR_NOT_SUPPORTED 50LThe磁带驱动程序不支持请求的功能。 ERROR_PARTITION_FAILURE 1105LThe磁带不能分区。 ERROR_SETMARK_DETECTED 1103LA setmark达成了一项行动。 ERROR_UNABLE_TO_LOCK_MEDIA 1108LAn试图锁定弹射机制的失败。 ERROR_UNABLE_TO_UNLOAD_MEDIA 1109LAn尝试卸载磁带失败。 ERROR_WRITE_PROTECT 19LThe媒体是写保护。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 CreateFile 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==GetTapeStatus Function The GetTapeStatus function determines whether the tape device is ready to process tape commands. Syntax C++ DWORD GetTapeStatus( __in HANDLE hDevice ); Parameters hDevice [in] Handle to the device for which to get the device status. This handle is created by using the CreateFile function. Return Value If the tape device is ready to accept appropriate tape-access commands without returning errors, the return value is NO_ERROR. If the function fails, it can return one of the following error codes. Error codeDescription ERROR_BEGINNING_OF_MEDIA 1102LAn attempt to access data before the beginning-of-medium marker failed. ERROR_BUS_RESET 1111LA reset condition was detected on the bus. ERROR_DEVICE_NOT_PARTITIONED 1107LThe partition information could not be found when a tape was being loaded. ERROR_DEVICE_REQUIRES_CLEANING 1165LThe tape drive is capable of reporting that it requires cleaning, and reports that it does require cleaning. ERROR_END_OF_MEDIA 1100LThe end-of-tape marker was reached during an operation. ERROR_FILEMARK_DETECTED 1101LA filemark was reached during an operation. ERROR_INVALID_BLOCK_LENGTH 1106LThe block size is incorrect on a new tape in a multivolume partition. ERROR_MEDIA_CHANGED 1110LThe tape that was in the drive has been replaced or removed. ERROR_NO_DATA_DETECTED 1104LThe end-of-data marker was reached during an operation. ERROR_NO_MEDIA_IN_DRIVE 1112LThere is no media in the drive. ERROR_NOT_SUPPORTED 50LThe tape driver does not support a requested function. ERROR_PARTITION_FAILURE 1105LThe tape could not be partitioned. ERROR_SETMARK_DETECTED 1103LA setmark was reached during an operation. ERROR_UNABLE_TO_LOCK_MEDIA 1108LAn attempt to lock the ejection mechanism failed. ERROR_UNABLE_TO_UNLOAD_MEDIA 1109LAn attempt to unload the tape failed. ERROR_WRITE_PROTECT 19LThe media is write protected. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also CreateFile Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa362530(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。