Einzelnen Beitrag anzeigen

Aviator

Registriert seit: 3. Jun 2010
1.611 Beiträge
 
Delphi 10.3 Rio
 
#16

AW: Netzwerkordnerzugriff

  Alt 3. Jul 2018, 09:26
IIRC sind Rückgabewerte über 32 kein Fehler. In der Doku sehe ich die Information allerdings nicht.
Ich helfe dir dann mal

Allerdings habe ich direkt im MSDN nachgeschaut und nicht in der Delphi Doku.

Zitat von MSDN:
Return Value
Type: HINSTANCE

If the function succeeds, it returns a value greater than 32. If the function fails, it returns an error value that indicates the cause of the failure. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. It can be cast only to an int and compared to either 32 or the following error codes below.

Quelle: https://docs.microsoft.com/en-us/win...-shellexecutea

Hervorhebung durch mich.
chrome_2018-07-03_10-25-21.png
  Mit Zitat antworten Zitat