Visual Basic declaration:
Declare Function spgpsetpreferences Lib "spgp.dll" ( Prefs As PGPPreferencesRec, ByVal Flags As Long ) As Long
Parameters:
Prefs | A record of the type spgpPreferenceRec, containing new values for one or more of the PGPsdk preferences. |
Flags |
The Flags parameter tells the function which of the preferences to set, and is formed from the bitwise OR of one or more of the following constants:
|
Notes and Warnings:
btnSavePrefs_Click()
) for a working example of setting preferences using this function.
Visual Basic declaration:
Declare Function spgpgetpreferences Lib "spgp.dll" ( Prefs As PGPPreferencesRec, ByVal Flags As Long ) As Long
Parameters:
Prefs | A record of the type spgpPreferenceRec, which will receive the values for one or more of the PGPsdk preferences. |
Flags |
The Flags parameter tells the function which of the preferences to get, and is formed from the bitwise OR of one or more of the following constants:
|
Notes and Warnings:
btnLoadPrefs_Click()
) for a working example of getting preferences using this function.
kPGPError_ItemNotFound
) it may be because one has not yet been selected by the user. There may be no default key selected in PGPKeys, but a default key ID might still be in the prefs file. This happens because PGPKeys does not delete the reference to the key in the prefs file when the default key is deleted from the local ring.
Visual Basic declaration:
Declare Function spgppreferencesdialog Lib "spgp.dll" ( ByVal ShowPage As Long, ByVal WindowHandle As Long ) As Long
Parameters:
ShowPage |
The ShowPage parameter tells the function which of the dialog's pages to display when the dialog posts, and must be one of the following constants:
|
WindowHandle | Handle (i.e., Hwnd) to the calling application or window. Passing this handle to the function makes the dialog a "child" of the calling application. Set this parameter to '0' avoid this effect. |
Notes and Warnings:
This record or structure is used by the Preferences functions to get and set values from the PGPsdk preferences file.
Visual Basic declaration:
Type spgpPreferenceRec PublicKeyring As String * 256 PrivateKeyring As String * 256 RandomSeedFile As String * 256 GroupsFile As String * 256 DefaultKeyID As String * 10 End Type
Notes and Warnings: