|
IMoniker::Hash
Calculates a 32-bit integer using the internal state of the moniker.
HRESULT Hash(
DWORD *pdwHash
| //Receives the hash value
| );
|
|
Parameter
pdwHash
[out] Receives the hash value.
Return Value
S_OK
Successfully received a 32-bit integer hash value.
Comments
Notes to Callers
You can use the value returned by this method to maintain a hash table of
monikers. The hash value determines a hash bucket in the table. To search such a
table for a specified moniker, calculate its hash value and then compare it to
the monikers in that hash bucket using IMoniker::IsEqual.
Notes to Implementors
The hash value must be constant for the lifetime of the moniker. Two monikers
that compare as equal using IMoniker::IsEqual must hash to the same value.
Marshaling and then unmarshaling a moniker should have no effect on its hash
value. Consequently, your implementation of IMoniker::Hash should rely only on the internal state of the moniker, not on its memory
address.
See Also
IMoniker::IsEqual
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|