 |
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: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-09-15 08:55:45 | | Modified: | 2006-09-15 09:20:32 | Visited in last 7 days: 20 |