网站首页  词典首页

请输入您要查询的函数:

 

术语 erasetape
释义 EraseTape
语法:
C++
DWORD EraseTape(
__in HANDLE hDevice,
__in DWORD dwEraseType,
__in BOOL bImmediate
);
EraseTape功能
该EraseTape功能清除所有的磁带或部分。
参数
hDevice [in]
设备句柄如磁带被删除。这种处理是通过使用CreateFile函数创建。
dwEraseType [in]
擦除技术。此参数可以是下列值之一。
ValueMeaning
TAPE_ERASE_LONG
1LErases从当前位置磁带到当前分区的末尾。
TAPE_ERASE_SHORT
0LWrites一个缺口或删除的数据结束的当前位置标记。
bImmediate [in]
如果此参数为TRUE,函数立即返回,如果是FALSE,则函数不会返回,直到擦除操作已经完成。
返回值
如果函数成功,返回值为NO_ERROR。
如果函数失败,它可以返回以下错误代码之一。
错误codeDescription
ERROR_BEGINNING_OF_MEDIA
1102LAn试图访问数据之前开始的介质标记失败。
ERROR_BUS_RESET
1111LA复位条件检测总线上。
ERROR_DEVICE_NOT_PARTITIONED
1107LThe分区信息时,找不到磁带被加载。
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媒体是写保护。
备注
有些磁带设备不支持某些磁带业务。要确定您的磁带设备的功能,请参阅您的磁带设备的文档,并使用GetTapeParameters功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CreateFile
GetTapeParameters
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==EraseTape Function
The EraseTape function erases all or part of a tape.
Syntax
C++
DWORD EraseTape(
__in HANDLE hDevice,
__in DWORD dwEraseType,
__in BOOL bImmediate
);
Parameters
hDevice [in]
Handle to the device where the tape is to be erased. This handle is created by using the CreateFile function.
dwEraseType [in]
Erasing technique. This parameter can be one of the following values.
ValueMeaning
TAPE_ERASE_LONG
1LErases the tape from the current position to the end of the current partition.
TAPE_ERASE_SHORT
0LWrites an erase gap or end-of-data marker at the current position.

bImmediate [in]
If this parameter is TRUE, the function returns immediately; if it is FALSE, the function does not return until the erase operation has been completed.
Return Value
If the function succeeds, 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_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.

Remarks
Some tape devices do not support certain tape operations. To determine your tape device's capabilities, see your tape device documentation and use the GetTapeParameters function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CreateFile
GetTapeParameters
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa362523(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:25:28