网站首页  词典首页

请输入您要查询的函数:

 

术语 settapeparameters
释义 SetTapeParameters
语法:
C++
DWORD SetTapeParameters(
__in HANDLE hDevice,
__in DWORD dwOperation,
__in LPVOID lpTapeInformation
);
SetTapeParameters功能
该SetTapeParameters函数或者指定磁带块大小或配置的磁带设备。
参数
hDevice [in]
句柄装置的设置配置信息。这种处理是通过使用CreateFile函数创建。
dwOperation [in]
信息类型来设置。此参数必须是下列值之一。
ValueMeaning
SET_TAPE_DRIVE_INFORMATION
1LSets设备特定的信息lpTapeInformation指定。
SET_TAPE_MEDIA_INFORMATION
0LSets磁带的特定信息的lpTapeInformation参数指定。
lpTapeInformation [in]
指针的结构,它包含的信息来设置。如果dwOperation参数SET_TAPE_MEDIA_INFORMATION,lpTapeInformation指向一个TAPE_SET_MEDIA_PARAMETERS结构。
如果dwOperation是SET_TAPE_DRIVE_INFORMATION,lpTapeInformation指向一个TAPE_SET_DRIVE_PARAMETERS结构。
返回值
如果函数成功,返回值为NO_ERROR。
如果函数失败,它可以返回以下错误代码之一。
ErrorDescription
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媒体是写保护。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetTapeParameters
TAPE_SET_DRIVE_PARAMETERS
TAPE_SET_MEDIA_PARAMETERS
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==SetTapeParameters Function
The SetTapeParameters function either specifies the block size of a tape or configures the tape device.
Syntax
C++
DWORD SetTapeParameters(
__in HANDLE hDevice,
__in DWORD dwOperation,
__in LPVOID lpTapeInformation
);
Parameters
hDevice [in]
Handle to the device for which to set configuration information. This handle is created by using the CreateFile function.
dwOperation [in]
Type of information to set. This parameter must be one of the following values.
ValueMeaning
SET_TAPE_DRIVE_INFORMATION
1LSets the device-specific information specified by lpTapeInformation.
SET_TAPE_MEDIA_INFORMATION
0LSets the tape-specific information specified by the lpTapeInformation parameter.

lpTapeInformation [in]
Pointer to a structure that contains the information to set. If the dwOperation parameter is SET_TAPE_MEDIA_INFORMATION, lpTapeInformation points to a TAPE_SET_MEDIA_PARAMETERS structure.
If dwOperation is SET_TAPE_DRIVE_INFORMATION, lpTapeInformation points to a TAPE_SET_DRIVE_PARAMETERS structure.
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.
ErrorDescription
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.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetTapeParameters
TAPE_SET_DRIVE_PARAMETERS
TAPE_SET_MEDIA_PARAMETERS
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa362534(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 13:15:55