Code source
Code source

  Présentation
  Unités exemple gratuites
  Unités commercialisées
  Conditions d'utilisation
  Comment acheter
  Vendez vos codes
Unités commercialisées

  LRJ_DosDevice
  LRJ_FileMapped
  LRJ_ModifDateTime
  LRJ_ShellUtils
  LRJ_TokenAPI
  LRJ_WinACL
  LRJ_WinBrowseDialog
  LRJ_WinCreateProcess
  LRJ_WinDesktop
  LRJ_WinDirectories
  LRJ_WinDocRecents
  LRJ_WinDrives
  LRJ_WinFavorisWeb
  LRJ_WinFiles
  LRJ_WinIconNotifArea
  LRJ_WinInternetShortcut
  LRJ_WinMenuFolder
  LRJ_WinModule
  LRJ_WinNetApi
  LRJ_WinNetLocalGroups
  LRJ_WinNetUsers
  LRJ_WinPrivileges
  LRJ_WinProcess
  LRJ_WinRecycleBin
  LRJ_WinRegion
  LRJ_WinRegAppPath
  LRJ_WinShellLink
  LRJ_WinShellUI
  LRJ_WinSID
  LRJ_WinStation
  LRJ_WinTokenGroups
  LRJ_WinTrackChangeDir
  LRJ_WinVolumes
  LRJ_WinWorkingSet

   Accueil | GlobalDesk | Code source Delphi | Développements | Votre compte | Contact   

Code source : unité LRJ_ShellUtils




      
Description : contient des déclarations et l'importation dynamique d'un certain nombre de fonctions de Shell32.dll. Contient toutes des valeurs connues de CSIDL_xxx et de FOLDERID_xxx. Unité de base pour des développements reposants sur les fonctionnalités du Shell.

Importe les fonctions suivantes :
             CoTaskMemFree
ILClone
ILFree
IShellFolder.GetDisplayNameOf
SHGetDesktopFolder
SHGetFolderLocation
SHGetKnownFolderIDList
SHGetMalloc
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHParseDisplayName
SHSimpleIDListFromPath

Utilise les unités : Windows, ActiveX, ShlObj, SysUtils et LRJ_WindowsPlus.

Version : 1.3 du 03.05.2009
Auteur : Laurent Hède
Copyright : LorenJo

Nombre de lignes : 437

Réalisée sous : Delphi 6

Systèmes compatibles : NT4, 2000, XP, Vista, serveurs

Prix : 71.00 € H.T.


Déclarations publiques de l'unité :

interface
                    uses
                    Windows,
                    ActiveX,
                    ShlObj,
                    SysUtils,
                    LRJ_WindowsPlus;


// Méthodes mixant différentes méthodes pour obtenir le résultat ou non shell. Si rien n'est spécifié => toutes versions
function GetShellVersion: Extended;
function LRJ_GetPIDListFromPath(const APath : string): PItemIDList;
procedure LRJ_PIDListFreeAndNil(var Pidl : PItemIdList);
function LRJ_GetFileNameFromRelativePItemIDList(const AFolder: IShellFolder; const APidl: PItemIDList): string; //shell >=4
function LRJ_GetDisplayNameFromRelativePItemIDList(const AFolder: IShellFolder; const APidl: PItemIDList): string; //shell >=4
procedure LRJ_CoTaskMemFree(var APter: pointer);


//Méthodes Shell
function LRJ_SHGetFolderLocation (const hwndOwner: HWND; const nFolder: Integer; const hToken: THandle; var ppidl: PItemIDList): HResult; //shell >=5
// Nous n'avons pas testé LRJ_SHGetKnownFolderIDList pour le moment - 18.12.2008
function LRJ_SHGetKnownFolderIDList(const rfid: TGUID; const dwFlags: DWORD; const hToken: THandle; var ppidl: PItemIDList): HResult; // shell >=6.0.6000 (vista)
function LRJ_SHGetPathFromIDList(const lpidl : PItemIdList): string; //shell >=4
function LRJ_SHGetSpecialFolderLocation(const hwndOwner: HWND; const nFolder: Integer; var ppidl: PItemIDList): HResult; // 6.0.6000 >= shell >=4
function LRJ_SHParseDisplayName(const Name: string ; const pbc : IBindCtx; var ppidl : PItemIdList; const sfgaoIn : DWORD;
                                  var psfgaoOut : DWORD) : HResult;  //shell >=6
function LRJ_PIDListClone(const pidl : PItemIdList) : PItemIdList; //shell >=5

 Accueil | GlobalDesk | Code source Delphi | Développements | Votre compte | Contact 
Copyright © LorenJo 2000-2009    Notice légale