Home COM GDI+ WebBrowser Data Access

FolderItems Object

 

IID_FolderItems

{744129E0-CBE5-11CE-8350-444553540000}

IID_FolderItems2

{C94F0AD0-F363-11D2-A327-00C04F8EEC7F}

IID_FolderItems3

{EAA7C309-BBEC-49D5-821D-64D966CB667F}

 

 

The FolderItems object represents the collection of items in a Shell folder. It contains properties and methods that allow you to retrieve information about the collection.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDispatch Methods

Description

GetTypeInfoCount

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

GetTypeInfo

Gets the type information for an object.

GetIDsOfNames

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs.

Invoke

Provides access to properties and methods exposed by an object.

FolderItems Methods and Properties

Description

Count

Contains the number of items in the collection.

Application

Contains the Application object of the folder items collection.

Parent

Not currently implemented.

Item

Retrieves the FolderItem object for a specified item in the collection.

_NewEnum

Not currently implemented.

FolderItems2 Methods and Properties

Description

InvokeVerbEx

Executes a verb on a collection of FolderItem objects. This method is an extension of the InvokeVerb method, allowing additional control of the operation through a set of flags.

FolderItems3 Methods and Properties

Description

Filter

Sets a wildcard filter to apply to the items returned.

Verbs

Retrieves the list of verbs common to all the folder items.

 

Count

 

FUNCTION ShellFolderItems_get_Count ( _
  BYVAL pthis AS DWORD PTR _
, BYREF plCount AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING ShellFolderItems_get_Count (pthis, plCount) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Application

 

FUNCTION ShellFolderItems_get_Application ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[8] USING ShellFolderItems_get_Application (pthis, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Parent

 

FUNCTION ShellFolderItems_get_Parent ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[9] USING ShellFolderItems_get_Parent (pthis, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Item

 

FUNCTION ShellFolderItems_Item ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL index AS VARIANT _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[10] USING ShellFolderItems_Item (pthis, index, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

_NewEnum

 

FUNCTION ShellFolderItems_NewEnum ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppunk AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[11] USING ShellFolderItems_NewEnum (pthis, ppunk) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

InvokeVerbEx

 

FUNCTION ShellFolderItems2_InvokeVerbEx ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL vVerb AS VARIANT _
, BYVAL varPrm_vArgs AS VARIANT _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[12] USING ShellFolderItems2_InvokeVerbEx (pthis, vVerb, varPrm_vArgs) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Filter

 

FUNCTION ShellFolderItems3_Filter ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL grfFlags AS LONG _
, BYVAL bstrFileSpec AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  bstrFileSpec = UCODE$(bstrFileSpec)
  CALL DWORD @@pthis[13] USING ShellFolderItems3_Filter (pthis, grfFlags, bstrFileSpec) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Verbs

 

FUNCTION ShellFolderItems3_get_Verbs ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppfic AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[14] USING ShellFolderItems3_get_Verbs (pthis, ppfic) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Page last updated on Wednesday, 15 February 2006 22:31:12 +0100