using System.Runtime.InteropServices; namespace ConsoleTest{ class Program { public enum ShowCommands : int { SW_HIDE = 0, SW_SHOWNORMAL = 1, SW_NORMAL = 1, SW_SHOWMINIMIZED = 2,
I. Introduction / Déclaration ShellExecute fait partie des innombrables fonctions de l'API Windows ; cela veut dire qu'elle est utilisée par tous les programmes pour dialoguer avec le système d'exploitation. ShellExecute est déclarée dans une unité,
procedure TForm2.btn10Click(Sender: TObject); begin ShellExecute(handle,'open','mailt', nil,nil,SW_SHOWNORMAL); end; procedure TForm2.btn11Click(Sender: TObject); begin ShellExecute(handle,'open','mailt617346799@qq.com',nil,nil,SW_SHOWNORMAL); end; p