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

[in] Number of elements in pbData.

[out] Value used to return the hashed array.

[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.
FUNCTION CreateHash(cName, nHashSize)
    LOCAL cHash
    cHash = REPLICATE(CHR(0), nHashSize)

    IF HashData(@cName, LEN(m.cName), @cHash, nHashSize) = 0
        RETURN cHash
        RETURN ""
My comment:
See also UrlHash.
See Webopedia: Hashing
Translate this page:
  Spanish    Portuguese    German    French    Italian 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: 57
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
11 sec.Function: 'JetCreateTable'
22 sec.Function: 'DestroyMenu'
35 sec.Function: 'CeGetSpecialFolderPath'
47 sec.Function: 'NetGroupEnum'
57 sec.Function: 'WinHttpConnect'
1.17 min.Function: 'FlashWindowEx'
1.35 min.Function: 'GdipGetImagePalette'
1.52 min.Function: 'SetEndOfFile'
1.72 min.Function: 'NetLocalGroupEnum'
1.9 min.Function: 'CreateStreamOnHGlobal'
Advertise here!