ShlwApiUrlHash Method
Hashes a URL string.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
public static HResult UrlHash(
string url,
IntPtr hash,
uint hashSize
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function UrlHash (
url As String,
hash As IntPtr,
hashSize As UInteger
) As HResult
Dim url As String
Dim hash As IntPtr
Dim hashSize As UInteger
Dim returnValue As HResult
returnValue = ShlwApi.UrlHash(url, hash,
hashSize)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static HResult UrlHash(
String^ url,
IntPtr hash,
unsigned int hashSize
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member UrlHash :
url : string *
hash : IntPtr *
hashSize : uint32 -> HResult
No code example is currently available or this language may not be supported.
- url String
-
A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.
- hash IntPtr
-
A pointere to a buffer that, when this function returns successfully, receives the hashed array.
- hashSize UInt32
-
The number of elements in the array at hash. It should be no larger than 256.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.