Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
827 B

  1. #include "shellprv.h"
  2. extern "C" {
  3. #include <shellp.h>
  4. #include "ole2dup.h"
  5. };
  6. #include "util.h"
  7. #include "_security.h"
  8. /**********************************************************************\
  9. FUNCTION: ZoneCheckPidl
  10. DESCRIPTION:
  11. Return S_OK if access is allowed. This function will return
  12. S_FALSE if access was not allowed.
  13. \**********************************************************************/
  14. STDAPI ZoneCheckPidl(LPCITEMIDLIST pidl, DWORD dwActionType, DWORD dwFlags, IInternetSecurityMgrSite * pisms)
  15. {
  16. HRESULT hr = E_FAIL;
  17. TCHAR szUrl[MAX_URL_STRING];
  18. SetFlag(dwFlags, PUAF_ISFILE);
  19. if (SUCCEEDED(SHGetNameAndFlags(pidl, SHGDN_FORPARSING | SHGDN_FORADDRESSBAR, szUrl, SIZECHARS(szUrl), NULL)))
  20. hr = ZoneCheckUrl(szUrl, dwActionType, dwFlags, pisms);
  21. return hr;
  22. }