Windows Mobile 6.5
A version of this page is also available for

This function enables type providers to determine what information has to be cached by credential manager.

DWORD HandleBlob(
  DWORD dwType,
  PWCHAR szTarget,
  PWCHAR szUser,
  PBYTE pInBlob,
  DWORD dwInSize,
  PBYTE pOutBlob,
  PDWORD pdwOutSize,
  DWORD dwFlag


[in] Type for which the entry point is being called.


[in] Target of blob.


[in] User associated with blob.


[in] Input blob.


Input blob size in bytes.


[in, out] Pointer to buffer where provider blob can be stored.


[in, out] On input, contains the size of pOutBlob buffer in bytes.

On output, contains the amount of buffer used.


Reserved, set to zero.

ERROR_SUCCESS is returned upon success. For a list of error codes, see Credential Manager Error Codes.

The information to be cached by the credential manager may be different from the information provided by the user. For example, in the case of NTLM, only the hash of the password is stored, even though the user provides a password. This also gives the type provider the opportunity not to cache any credential information. If the type provider does not support this entry point, then whatever information the user provides is cached by credential manager.

If the caller wants to calculate how much memory to allocate, pOutBlob can be NULL. If the operation is successful, the minimum buffer size is indicated in pdwOutSize. If pOutBlob is non-NULL ,then pdwOutSize should represent the size of the buffer.

If the buffer size is insufficient, then ERROR_MORE_DATA is returned.

Windows Embedded CEWindows CE 5.0 and later
Windows MobileWindows Mobile Version 5.0 and later