JPEG ファイルから EXIF タグを取得する方法

Sub AccessEXIFTag(pRasterDataset as IRasterDataset)   
    'assume that pRasterDataset is opened from a JPEG file that contains EXIF tags
    Dim pDataset As IDataset
    Dim pPropertySet As IPropertySet
    Dim names, values
    Dim index As Integer
    Set pDataset = pRasterDataset
    Set pPropertySet = pDataset.PropertySet
    pPropertySet.GetAllProperties names, values
    For index = 0 To UBound(values)
        Debug.Print names(index), values(index)
    Next index

End Sub
'ArcGIS 9.2 Developer Kit for VBAサンプル[Access EXIF tags from a JPEG file]より引用