Using Win32 functions in Visual FoxPro Image Gallery
Internet Functions (WinInet)
..msdn
CreateMD5SSOHash
DeleteUrlCacheEntry
DetectAutoProxyUrl
FindCloseUrlCache
FindFirstUrlCacheEntry
FindFirstUrlCacheGroup
FindNextUrlCacheEntry
FindNextUrlCacheGroup
FtpCommand
FtpCreateDirectory
FtpDeleteFile
FtpFindFirstFile
FtpGetCurrentDirectory
FtpGetFile
FtpGetFileSize
FtpOpenFile
FtpPutFile
FtpRemoveDirectory
FtpRenameFile
FtpSetCurrentDirectory
GetUrlCacheEntryInfo
HttpOpenRequest
HttpQueryInfo
HttpSendRequest
InternetAttemptConnect
InternetAutodial
InternetAutodialHangup
InternetCanonicalizeUrl
InternetCheckConnection
InternetCloseHandle
InternetConnect
InternetCrackUrl
InternetDial
InternetFindNextFile
InternetGetConnectedState
InternetGetConnectedStateEx
InternetGetCookie
InternetGetLastResponseInfo
InternetGoOnline
InternetOpen
InternetOpenUrl
InternetQueryDataAvailable
InternetQueryOption
InternetReadFile
InternetSetCookie
InternetSetFilePointer
InternetTimeFromSystemTime
InternetTimeToSystemTime
InternetWriteFile
Code examples:
CreateMD5SSOHash
..msdn    Add comment     W32 Constants      Translate this page
Obtains the default Microsoft Passport password for a specified account or realm, creates an MD5 hash from it using a specified wide-character challenge string, and returns the result as a string of hexadecimal digit bytes.
Code examples:
Declaration:
BOOL CreateMD5SSOHash(
    PWSTR pszChallengeInfo,
    PWSTR pwszRealm,
    PWSTR pwszTarget,
    PBYTE pbHexHash
);
FoxPro declaration:
DECLARE INTEGER CreateMD5SSOHash IN wininet;
    STRING pszChallengeInfo,;
    STRING pwszRealm,;
    STRING pwszTarget,;
    STRING @pbHexHash
Parameters:
pszChallengeInfo
[in] Pointer to wide-character challenge string.

pwszRealm
[in] Pointer to a string that names a realm for which to obtain the password. This parameter is ignored unless pwszTarget is NULL. If both pwszTarget and pwszRealm are NULL, the default realm is used.
pwszTarget

[in] Pointer to a string that names an account for which to obtain the password. If pwszTarget is NULL, the realm indicated by pwszRealm is used.
pbHexHash

[out] Pointer to an output buffer into which the MD5 hash is returned in hex string format. This buffer must be at least 33 bytes long.
Return value:
Returns TRUE if successful, or FALSE otherwise.
My comment:
There is no need to call the InternetOpen before calling the CreateMD5SSOHash.

The usage is as simple as it can be:
cSource=STRCONV("challenge"+CHR(0),5)
cRealm=NULL
cTarget=NULL && "myaddress@msn.com"
cHash = REPLICATE(CHR(0), 33)

? CreateMD5SSOHash(cSource, cRealm, cTarget, @cHash)
cHash = STRTRAN(cHash, CHR(0))
? LEN(cHash), "[" + cHash + "]"

For this code to return a valid result, a .Net Passport (Microsoft Passport) must be installed on the Windows XP computer.

Word Index links for the CreateMD5SSOHash :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-09-15 08:55:45
Modified: 2006-09-15 09:20:32
Visited in last 7 days: 11
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.156.92.243)
9 sec.Function: 'GdipGetImagePaletteSize'
Function group: 'GDI+ Image'
19 sec.
31 sec.Function: 'CryptUnprotectData'
Function group: 'Cryptography Reference'
42 sec.Function: 'mciSendCommand'
Function group: 'Windows Multimedia'
52 sec.Example: 'How to find which fonts Windows uses for drawing captions, menus and message boxes'
1.07 min.Solutions
1.23 min.Function: 'GetFileSizeEx'
Function group: 'File System'
1.42 min.Function: 'IsWow64Process'
Function group: 'Process and Thread'
1.62 min.Function: 'SetupDiGetClassImageListEx'
Function group: 'Setup API functions'
1.82 min.Example: 'How to print picture stored in enhanced-format metafile (*.emf)'
Google
Advertise here!