In the variant types descriptions the following shortcuts are
used: [V] - may appear in a VARIANT,
[T] - may appear in a TYPEDESC,
[P] - may appear in an OLE property set,
[S] - may appear in a Safe Array.
It consists of a 32 bit unsigned integer indicating the size
of the structure, a 32 bit signed integer indicating (Clipboard
Format Tag) indicating the type of data that it contains, and
then a byte array containing the data.
typedef struct tagCLIPDATA {
// cbSize is the size of the buffer pointed to
// by pClipData, plus sizeof(ulClipFmt)
ULONG cbSize;
long ulClipFmt;
BYTE* pClipData;
} CLIPDATA;
[P] FILETIME. The FILETIME structure holds a date and time
associated with a file. The structure identifies a 64-bit
integer specifying the number of 100-nanosecond intervals which
have passed since January 1, 1601. This 64-bit value is split
into the two dwords stored in the structure.
public static int getVariantLength(long variantType)(Code)
Returns a variant type's length.
Parameters: variantType - The variant type number The length of the variant type's data in bytes. If the length isvariable, i.e. the length of a string, -1 is returned. If HPSF does notknow the length, -2 is returned. The latter usually indicates anunsupported variant type.
getVariantName
public static String getVariantName(long variantType)(Code)
Returns the variant type name associated with a variant type
number.
Parameters: variantType - The variant type number The variant type name or the string "unknown variant type"