Gets a decision on cookies for a given domain.
Syntax
BOOL InternetGetPerSiteCookieDecision(
  _In_  LPCWSTR       pwchHostName,
  _Out_ unsigned long *pResult
);
Parameters
- pwchHostName [in] 
 A LPCWSTR that points to a string containing a domain.
- pResult [out] 
 A pointer to a unsigned long that contains one of the InternetCookieState enumeration values.
Return value
Returns TRUE if the decision was retrieved, and FALSE otherwise.
Remarks
A return value of FALSE might indicate that the domain pwchHostName has no site-specific cookie regulations.
Requirements
| Minimum supported client | Windows XP | 
| Minimum supported server | Windows 2000 Server | 
| Product | Internet Explorer 6 | 
| Header | Wininet.h | 
| Library | Wininet.lib | 
| DLL | Wininet.dll | 
| Unicode and ANSI names | InternetGetPerSiteCookieDecisionW (Unicode) and InternetGetPerSiteCookieDecisionA (ANSI) |