Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SetTapePosition (kernel32)
 
.
Summary

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

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions