Default File Name for Embedded OLE Objects
KeyView can apply a default name to an extracted embedded OLE object when a name is not supplied in the call to ExtractSubFile
. When an embedded OLE object is extracted, the extracted file name might include the following:
-
The first valid eight characters of the main file. The following special characters are considered invalid and are ignored:
- any non-printing character with a value less than
0x1F
- angle brackets (< >)
- asterisk (*)
- back slash (\)
- colon (:)
- double quote (")
- forward slash (/)
- pipe (|)
- question mark (?)
- any non-printing character with a value less than
- The characters
_kvn
, wheren
is an integer incremented from 0 for each extracted object. - If KeyView can determine the embedded OLE is a Microsoft Office document, the original extension is used. If the file type cannot be determined, the file is given a
.tmp
extension.
For example, let us say a Microsoft Word document (sales_quarterly.doc
) contains two embedded OLE objects: a Microsoft Excel file called west_region.xls
, and a bitmap created in the Word document. The embedded objects would be extracted as
sales_qu_kv0.xls sales_qu_kv1.tmp