Einzelnen Beitrag anzeigen

Benutzerbild von Assarbad
Assarbad

Registriert seit: 8. Okt 2010
Ort: Frankfurt am Main
1.234 Beiträge
 
#4

AW: Gibt es eine API-Funktion, um die mit einer Datei verbundene Programme zu erhalte

  Alt 19. Jan 2011, 15:52
Hach endlich weiß ich mal was, was Oliver nicht weiß.

MSDN-Library durchsuchenFindExecutable
In der Tat, der war mir neu. Hilft dir aber auch nicht wenn es um andere Verben als "open" geht, oder? ("print", etc ...)

Apropos: igitt FindExecutable verhält sich genauso bescheiden wie ShellExecute, scheint's:

Zitat:
Returns a value greater than 32 if successful, or a value less than or equal to 32 representing an error.

The following table lists the possible error values.
  • SE_ERR_FNF The specified file was not found.
  • SE_ERR_NOASSOC There is no association for the specified file type.
  • SE_ERR_OOM Microsoft Windows XP only. The system is out of memory or resources.


War aber ohnehin an der Frage vorbei, oder?
Oliver
"... aber vertrauen Sie uns, die Physik stimmt." (Prof. Harald Lesch)
  Mit Zitat antworten Zitat