PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
CertificateSignExecutable (Function)
In french: CertificatSigneExécutable
Signs an executable file with a certificate. The signature is included in the file.
Example
// Ouverture du sélecteur de certificat de Windows
MonCertificat is Certificate
MonCertificat = CertificateSelect()
 
// Annulation ou erreur
IF MonCertificat = Null THEN
RETURN
END
 
// Si le certificat sélectionné n'est pas valide pour signer
IF NOT MonCertificat.ValidForSignature THEN
Info("Le certificat sélectionné ne permet de pas de générer une signature.")
RETURN
END
 
// Récupération du buffer contenant la signature
IF NOT CertificateSignExecutable(sNomCompletFichier, MonCertificat) THEN
Error("Erreur de signature de l'exécutable: " + CR + ErrorInfo())
END
Syntax
<Result> = CertificateSignExecutable(<Executable> , <Certificate> [, <Description>])
<Result>: Boolean
  • True if the executable was signed,
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
<Executable>: Character string (with quotes)
Full name of executable file to sign.
<Certificate>: Certificate variable
Name of the variable of type Certificate containing the Certificate to be used to sign the executable.
<Description>: Optional character string (with quotes)
Versions 22 and later
Text displayed by the UAC window when running the executable.
New in version 22
Text displayed by the UAC window when running the executable.
Text displayed by the UAC window when running the executable.
Component: wd260std.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment