RNG_StringWithPrompt
Generate a string of random characters with a prompt (classic VB6/VBA only).
VBA/VB6 Syntax
Public Declare Function RNG_StringWithPrompt Lib "diCrPKI.dll" Alias "RNG_BytesWithPrompt"
(ByVal strData As String, ByVal nDataLen As Long, ByVal strPrompt As String, ByVal nOptions As Long) As Long
nRet = RNG_StringWithPrompt(strData, nDataLen, strPrompt, nOptions)
C/C++ Syntax
[Not applicable]
Parameters
- szData
- [out] to receive the random data.
- nDataLen
- [in] specifying the required length in bytes.
- szPrompt
- [in] specifying an (optional) prompt for the dialog.
Specify an empty string ("") or NULL to use the default dialog.
- nOptions
- [in] option flags:
PKI_DEFAULT (0) for default options
PKI_RNG_STRENGTH_112 to make user generate an estimated 112 bits of security (default)
PKI_RNG_STRENGTH_128 to make user generate an estimated 128 bits of security
PKI_RNG_STRENGTH_192 to make user generate an estimated 192 bits of security
PKI_RNG_STRENGTH_256 to make user generate an estimated 256 bits of security
Returns (VBA/C)
If successful, the return value is zero;
otherwise it returns a nonzero error code.
.NET Equivalent
Not applicable
Remarks
@deprecated.
This is an alias for classic Visual Basic (VB6/VBA) users only.
The output string may contain characters with value zero
(and possibly traces of nuts).
See Random Number Generator for more information on the RNG and seeds.
Example
See Also
RNG_BytesWithPrompt
[Contents] [Index]