Back to the Function Reference Table of Contents

Miscellaneous Functions

Functions that don't fit anywhere else.

spgpGetErrorString

Converts PGP error numbers into slightly more informative strings.

Visual Basic declaration:

Declare Function spgpgeterrorstring Lib "spgp.dll" (
	ByVal theError As Long, 
	ByVal BufferOut As String
	) As Long

Parameters:
theError Error number returned by SPGP DLL.
BufferOut A fixed-length string which will act as a buffer for output.

Notes and Warnings:

up to the top

spgpEstimatePassphraseQuality

Returns a number crudely estimating the quality of a passphrase, on a scale of 0 to 100. This is the same algorithm used by PGP's key-generation wizard.

Visual Basic declaration:

Declare Function spgpestimatepassphrasequality Lib "spgp.dll" (
        ByVal Passphrase as String
        ) As Long

Notes and Warnings:

up to the top

spgpVersion

Returns the SPGP DLL version as four digits with 0-9 values, e.g., the first version in which this function was implemented: '2100', which can be read as 'version 2.1.0.0'.

Visual Basic declaration:

Declare Function spgpversion Lib "spgp.dll" () As Long

Notes and Warnings:

up to the top
Back to the Function Reference Table of Contents