Petite annotation a mon code posté le 15/12/2010 : comme le temps passe !!

j'ai voulu porté ce code D3 sous D2010 et AssocQueryString ne me retournait rien ! Après maints essais j'ai enfin trouvé . pour tout delphi Unicode , il faut utiliser 'AssocQueryStringW'

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
function AssocQueryString( Flags: Integer; StrType: TAssocStr;
pszAssoc, pszExtra: PChar; pszOut:
PChar; Var pcchPut: DWORD): HRESULT; stdcall;
external 'shlwapi.dll' name 'AssocQueryStringW';
et non 'AssocQueryStringA'