1 STDMETHOD (ProcessUrlAction)(LPCWSTR pwszUrl,DWORD dwAction,BYTE *pPolicy,DWORD cbPolicy,
2 BYTE *pContext,DWORD cbContext,DWORD dwFlags,DWORD dwReserved)
3 {
4
5 DWORD dwPolicy = URLPOLICY_ALLOW;
6 if(dwAction == URLACTION_HTML_SUBMIT_FORMS || dwAction == URLACTION_HTML_SUBMIT_FORMS_FROM ||dwAction == URLACTION_HTML_SUBMIT_FORMS_TO)
7 {
8 if (cbPolicy >= sizeof(DWORD))
9 {
10 *(DWORD*)pPolicy = dwPolicy;
11 return S_OK;
12 }
13 else
14 {
15 return S_FALSE;
16 }
17
18 }
19 return INET_E_DEFAULT_ACTION;
20 }