Using Win32 functions in Visual FoxPro Image Gallery
Shell Lightweight Utility APIs -- misc. functions
..msdn
DllInstall
HashData
Code examples:
Creating hash values for the list of names
HashData
..msdn    Add comment     W32 Constants      Translate this page
Hashes an array of data.
Code examples:
Creating hash values for the list of names
Declaration:
HRESULT HashData(
    LPBYTE pbData, 
    DWORD cbData, 
    LPBYTE pbHash, 
    DWORD cbHash
);
FoxPro declaration:
DECLARE INTEGER HashData IN shlwapi;
    STRING  @ pbData,;
    INTEGER   cbData,;
    STRING  @ pbHash,;
    INTEGER   cbHash
Parameters:
pbData
[in] Pointer to the data array.

cbData
[in] Number of elements in pbData.

pbHash
[out] Value used to return the hashed array.

cbHash
[in] Number of elements in pbHash. It should be no larger than 256.
Return value:
Returns S_OK (0) if successful, or a standard OLE error value otherwise.
Usage:
FUNCTION CreateHash(cName, nHashSize)
    LOCAL cHash
    cHash = REPLICATE(CHR(0), nHashSize)

    IF HashData(@cName, LEN(m.cName), @cHash, nHashSize) = 0
        RETURN cHash
    ELSE
        RETURN ""
    ENDIF
My comment:
See also UrlHash.
See Webopedia: Hashing
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-10-30 18:59:35
Modified: 2009-09-15 10:58:58
Visited in last 7 days: 64
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.91.38.173)
14 sec.Function: 'GdipLoadImageFromFile'
30 sec.Function: 'GdipDrawRectangle'
49 sec.Function: 'NetApiBufferFree'
1.07 min.Function: 'GetSystemMetrics'
1.35 min.Function: 'ImageList_Remove'
Google
Advertise here!