Back to the Function Reference Table of Contents
Miscellaneous Functions
Functions that don't fit anywhere else.
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:
- A maximum of 256 bytes will be written to BufferOut (255 characters + null).
- Not all of the possible PGPsdk errors will return strings.
up to the top
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:
- Any result outside the range 0-100 should be interpreted as an error code.
- PGP 5 and 6 may return slightly different results for the same passphrase.
up to the top
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:
- A note from the author: "If I ever release a version that requires all four digits, just douse me with cold water until I recover my senses." (Too late. --ed.)
up to the top
Back to the Function Reference Table of Contents