@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The SetTapePosition API !!!!C# Signature: [DllImport("kernel32.dll")] static extern uint SetTapePosition(IntPtr hDevice, ETapePositionMethod dwPositionMethod, uint dwPartition, uint dwOffsetLow, uint dwOffsetHigh, bool bImmediate); !!!!User-Defined Types: [Flags] public enum ETapePositionMethod : uint { TAPE_ABSOLUTE_BLOCK=1, // Moves the tape to the device-specific block address specified by the dwOffsetLow and dwOffsetHigh parameters. The dwPartition parameter is ignored. TAPE_LOGICAL_BLOCK=2, // Moves the tape to the block address specified by dwOffsetLow and dwOffsetHigh in the partition specified by dwPartition. TAPE_REWIND=0, // Moves the tape to the beginning of the current partition. The dwPartition, dwOffsetLow, and dwOffsetHigh parameters are ignored. TAPE_SPACE_END_OF_DATA=4, // Moves the tape to the end of the data on the partition specified by dwPartition. TAPE_SPACE_FILEMARKS=6, // Moves the tape forward (or backward) the number of filemarks specified by dwOffsetLow and dwOffsetHigh in the current partition. The dwPartition parameter is ignored. TAPE_SPACE_RELATIVE_BLOCKS=5, // Moves the tape forward (or backward) the number of blocks specified by dwOffsetLow and dwOffsetHigh in the current partition. The dwPartition parameter is ignored. TAPE_SPACE_SEQUENTIAL_FMKS=7, // Moves the tape forward (or backward) to the first occurrence of n filemarks in the current partition, where n is the number specified by dwOffsetLow and dwOffsetHigh. The dwPartition parameter is ignored. TAPE_SPACE_SEQUENTIAL_SMKS=9, // Moves the tape forward (or backward) to the first occurrence of n setmarks in the current partition, where n is the number specified by dwOffsetLow and dwOffsetHigh. The dwPartition parameter is ignored. TAPE_SPACE_SETMARKS=8 // Moves the tape forward (or backward) the number of setmarks specified by dwOffsetLow and dwOffsetHigh in the current partition. The dwPartition parameter is ignored. } !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: Please add some! !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: SetTapePosition@msdn on MSDN
Edit kernel32.SetTapeP...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.