Einzelnen Beitrag anzeigen

Ardeo

Registriert seit: 13. Dez 2006
14 Beiträge
 
#1

Mehrere Flags mit SHFileOperation [Gelöst]

  Alt 8. Apr 2007, 22:43
Hallo,

Ich verwende diese Funktion aus der Code-Library:

Delphi-Quellcode:
function DoFileWork(aOperation: FILEOP_FLAGS; aFrom, aTo: AnsiString;
                    Flags : FILEOP_FLAGS): Integer;
var
  FromPath, ToPath: AnsiString;
  SHFileOpStruct: TSHFileOpStruct;
begin
  FromPath := aFrom + #0#0;
  ToPath := aTo + #0#0;
  with SHFileOpStruct do
  begin
    Wnd := 0;
    wFunc := aOperation;
    pFrom := PAnsiChar(FromPath);
    if ToPath <> 'then
    begin
      pTo := PAnsiChar(ToPath)
    end else begin // target available
      pTo := nil;
    end; // target not available
    fFlags := Flags;
  end; // structure
  Result := SHFileOperationA(SHFileOpStruct);
end;
Und da ich nicht viel von WinApi verstehe und auch die Suche keine Erfolge brachte, wollte ich frage, wie es möglich ist, mehr als nur eine Flag zu verwenden. Ich würde nämlich gerne die 2 Flags 'FOF_SILENT' und 'FOF_NOCONFIRMATION'
  Mit Zitat antworten Zitat