CryptoSys API Library Manual

MD5_Reset

Resets the context.

VB6/VBA Syntax

Public Declare Function MD5_Reset Lib "diCryptoSys.dll" (ByVal hContext As Long) As Long

nRet = MD5_Reset(hContext)

Parameters

hContext
[in] Long handle to the SHA-1 context.

C/C++ Syntax

long _stdcall MD5_Reset(long ctx_handle);

Returns (VB6/C)

Long: If successful, the return value is 0; otherwise it returns a non-zero error code.

.NET Equivalent

Md5.Reset Method

Remarks

Destroys the existing context. The results of any part-messages added to the context will be lost.

Example

This trivial example creates a context handle and then destroys it.

    Dim nRet As Long
    Dim hContext As Long

    hContext = MD5_Init()
    nRet = MD5_Reset(hContext)

See Also

MD5_Init MD5_AddString MD5_AddBytes MD5_HexDigest

[Contents] [Index]

[HOME]   [NEXT: MD5_StringHexHash...]

Copyright © 2001-11 D.I. Management Services Pty Ltd. All rights reserved.