Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 May : Explorer and Filename

www.cryer.info
Managed Newsgroup Archive

Explorer and Filename

Subject:Explorer and Filename
Posted by:"Otto Herdegen" (otto.herdeg..@gmx.de)
Date:Mon, 15 May 2006 13:22:47

Hi,

how can i get the Filename of a File that is copied with [Ctrl]+[C] in the
windows-Explorer?

I had tried this, but it doesn't work (empty result)

var
  aAnsiChar: array[0..254] of char;
begin
  if ClipBoard.HasFormat(CF_HDROP) then begin
    GetWindowText(ClipBoard.GetAsHandle(CF_HDROP),aAnsiChar,SizeOf(aAnsiChar));
  end;
end;

TIA
Otto

Replies:

www.cryer.info
Managed Newsgroup Archive