SftDirectory 2.5

SftDirectoryFolder.Type Property

Softel vdm, Inc.

Returns the file/folder's type if available.

Syntax       

Get

VB.NET

FolderType = object.Type  As SftDirectoryFolderTypeConstants

VB

FolderType = object.Type  As SftDirectoryFolderTypeConstants

C#.NET

SftDirectoryFolderTypeConstants FolderType = object.Type;

VC++

enum SftDirectoryFolderTypeConstants FolderType = object->Type;
enum SftDirectoryFolderTypeConstants FolderType = object->GetType();

C

HRESULT object->get_Type(enum SftDirectoryFolderTypeConstants* FolderType);

Delphi

FolderType := object.type_  : TOleEnum;

object

A SftDirectoryFolder object.

FolderType

Returns the file/folder's type if available.

FolderType

Value

Description

typeSftDirectory_Unsupported

0

Unsupported Environment

typeSftDirectory_Root_RegItem

1

Desktop item

typeSftDirectory_Fs_File

2

File

typeSftDirectory_Fs_Directory

3

Folder

typeSftDirectory_Fs_Other

4

Unidentified item

typeSftDirectory_Computer_Drive35

5

3.5 Floppy

typeSftDirectory_Computer_Drive525

6

5.25 Floppy

typeSftDirectory_Computer_Removable

7

Removable Drive

typeSftDirectory_Computer_Fixed

8

Fixed Drive

typeSftDirectory_Computer_NetDrive

9

Mapped to Network Share

typeSftDirectory_Computer_CDROM

10

CD/DVD

typeSftDirectory_Computer_RamDisk

11

RAM Drive

typeSftDirectory_Computer_Other

12

Unidentified Drive

typeSftDirectory_Net_Domain

13

Network Domain

typeSftDirectory_Net_Server

14

Network Server

typeSftDirectory_Net_Share

15

Network Share

typeSftDirectory_Net_RestOfNet

16

Rffu

typeSftDirectory_Net_Other

17

Unidentified Network Resource

typeSftDirectory_Computer_Imaging

18

Rffu (XP and up)

typeSftDirectory_Computer_Audio

19

Rffu (XP and up)

typeSftDirectory_Computer_SharedDocs

20

Shared Documents Folder (XP and up)

typeSftDirectory_Mobile_Device

21

Mobile Device (Vista and up)

Comments

The Type property returns the file/folder's type if available.

This information is retrieved from the Windows Shell or Shell extensions in the form of a SHDESCRIPTIONID structure, which contains the file/folder type.  For more information about file/folder types and the SHDESCRIPTIONID structure, please see the Windows documentation.

This property is undefined on Windows versions prior to Windows ME.

To retrieve the file/folder type as it is displayed to the user use GetText(contentsSftDirectoryType).


Feedback / comments / error reports for this topic
© 2003, 2008 - Softel vdm, Inc. - www.softelvdm.com