Artikel über die Lösung zum gründlichen Filtern IE unter VC:
http://blog.csdn.net/11122/archive/2002/02/09/7255.aspx
Für die Implementierung von Delphi gibt es eine PAS -Einheit:
Einheit IECONST; Schnittstelle verwendet Shlobj, ActiveX, Windows; Const Iid_idochostuiHandler: tguid = '{bd3f23c0-d43e-11cf-893b-00Aa00bdce1a}'; Iid_idochostuihandler2: tguid = '{3050f6d0-98b5-11cf-bb82-00aa00bdce0b}'; Iid_idochostshowui: tguid = '{c4d244b0-d43e-11cf-893b-00Aa00bdce1a}'; GUID_TRIEDITCOMMANDGROUP: TGUID = '{2582F1C0-084E-11D1-9A0E-006097C9B344}'; Cmdsetid_forms3: tguid = '{de4ba900-59ca-11cf-9592-444553540000}'; Iid_iqueryInfo: tguid = (d1: $ 00021500; d2: 0000 0000; d3: $ 0000; d4: ($ c0, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ $ 46); Msocmdf_supported = olecmdf_supported; Msocmdf_enabled = olecmdf_enabled; Msocmdexecopt_promptuser = olecmdexecopt_promptuser; Msocmdexecopt_dontpromptuser = olecmdexecopt_dontpromptuser; InChTometric = 25,4; No_command = 0; View_command = 1; Explore_command = 2; Find_command = 3; IsDigit = ['0' .. '9', '-', '+']; CONTEXT_MENU_DEFAULT = 0; Context_menu_image = 1; Context_menu_control = 2; Context_menu_table = 3; // im Browsermodus CONTEXT_MENU_TEXTSELECT = 4; Context_menu_anchor = 5; CONTEXT_MENU_UKNNOWN = 6; // Diese 2 sind dem Image für die Öffentlichkeit zugeordnet ") Context_menu_imgdynsrc = 7; Context_menu_imgart = 8; Context_menu_debug = 9; Context_menu_vscroll = 10; Context_menu_hscroll = 11; Dispid_ambient_dlcontrol = (-5512); Dispid_ambient_useragent = (-5513); Htmlid_find = 1; Htmlid_viewSource = 2; Htmlid_options = 3; Dochostuitype_browse = 0; Dochostuitype_author = 1; Dochostuidblclk_default = 0; Dochostuidblclk_showproperties = 1; Dochostuidblclk_showcode = 2; Dochostuiflag_dialog = $ 0001; Dochostuiflag_disable_help_menu = $ 0002; Dochostuiflag_no3dborder = $ 0004; Dochostuiflag_scroll_no = $ 0008; Dochostuiflag_disable_script_inactive = $ 0010; Dochostuiflag_opennewwin = $ 0020; Dochostuiflag_disable_offscreen = $ 0040; Dochostuiflag_flat_scrollBar = $ 0080; Dochostuiflag_div_blockdefault = $ 0100; Dochostuiflag_activate_clienthit_only = $ 0200; Dochostuiflag_overridebehaviorFactory = $ 0400; Dochostuiflag_codepagelinkedfonts = $ 0800; Dochostuiflag_url_encoding_disable_utf8 = $ 1000; Dochostuiflag_url_encoding_enable_utf8 = $ 2000; Dochostuiflag_enable_forms_autocomplete = $ 4000; Dochostuiflag_enable_inplace_navigation = $ 10000; Dochostuiflag_ime_enable_reconversion = $ 20000; IDM_UUNKNOWN = 0; Idm_alignbottom = 1; IDM_AlignHorizontalCenters = 2; Idm_alignleft = 3; Idm_Alignright = 4; IDM_AlignTogrid = 5; IDM_AlignTop = 6; Idm_alignverticalCenter = 7; Idm_arrangebottom = 8; IDM_arrangeright = 9; Idm_bringforward = 10; IDM_BRINGTOFRONT = 11; IDM_CenterHorizontally = 12; Idm_Centervertikal = 13; IDM_CODE = 14; IDM_DELETE = 17; IDM_FONTNAME = 18; IDM_FONTSIZE = 19; IDM_GROUP = 20; IDM_HORIZSPACECONCATENATE = 21; IDM_HORIZSPACEDECREASE = 22; IDM_HORIZSPACINCREEDE = 23; Idm_horizspacemakeEqual = 24; Idm_insertObject = 25; Idm_multilevelredo = 30; IDM_Sendbackward = 32; IDM_SendToback = 33; Idm_showtable = 34; IDM_SIZETocontrol = 35; IDM_SIZETocontrolHeight = 36; IDM_SIZETocontrolwidth = 37; IDM_SIZETOFIT = 38; IDM_SIZETOGRID = 39; Idm_Snaptogrid = 40; Idm_taborder = 41; Idm_toolbox = 42; Idm_multilevelundo = 44; IDM_UnGroup = 45; Idm_vertspaceConcatenate = 46; IDM_VERTSPACEACECREASE = 47; IDM_VERTSPACEIncrease = 48; Idm_vertspacemakeEqual = 49; Idm_justifyFull = 50; Idm_backcolor = 51; IDM_BOLD = 52; Idm_BorderColor = 53; IDM_FLAT = 54; IDM_ForeColor = 55; Idm_italic = 56; IDM_USTIFICTCenter = 57; IDM_USTIFICTGENAL = 58; Idm_justifyleft = 59; Idm_justifyright = 60; IDM_RAISED = 61; IDM_SUNKEN = 62; IDM_underline = 63; Idm_chiseled = 64; Idm_etched = 65; Idm_shadowed = 66; IDM_FIND = 67; Idm_showgrid = 69; IDM_Objectverblist0 = 72; IDM_Objectverblist1 = 73; IDM_Objectverblist2 = 74; IDM_Objectverblist3 = 75; IDM_Objectverblist4 = 76; IDM_Objectverblist5 = 77; IDM_Objectverblist6 = 78; IDM_Objectverblist7 = 79; IDM_Objectverblist8 = 80; IDM_Objectverblist9 = 81; IDM_ConvertObject = 82; IDM_CustomControl = 83; Idm_customizeItem = 84; Idm_rename = 85; Idm_import = 86; Idm_newpage = 87; IDM_MOVE = 88; Idm_Cancel = 89; IDM_FONT = 90; IDM_Strikethrough = 91; IDM_DELETEWORD = 92; Idm_follow_anchor = 2008; IDM_inSinputImage = 2114; IDM_INSINPUTBUTTON = 2115; IDM_INSINPUTRESET = 2116; IDM_INSINPUTSUBMMIT = 2117; Idm_insinputUpload = 2118; Idm_insfieldset = 2119; IDM_Pasteinsert = 2120; IDM_REPLACE = 2121; IDM_EDITSOURCE = 2122; IDM_Bookmark = 2123; IDM_HYPERLINK = 2124; IDM_Unlink = 2125; IDM_Browsemode = 2126; IDM_EDITMODE = 2127; IDM_Unbookmark = 2128; IDM_TOOLBARS = 2130; IDM_STATUSBAR = 2131; IDM_Formatmark = 2132; Idm_textonly = 2133; IDM_Options = 2135; IDM_FOWLLINKC = 2136; Idm_followlinkn = 2137; IDM_ViewSource = 2139; IDM_ZOOMPOPUP = 2140; // idm_baselineFont1, Idm_BaselineFont2, Idm_BaselineFont3, Idm_BaselineFont4,, // und idm_baselineFont5 sollten aufeinanderfolgende ganze Zahlen sein; // IDM_BASELEFONT1 = 2141; IDM_BASELEFONT2 = 2142; IDM_BASELEFONT3 = 2143; IDM_BaselineFont4 = 2144; IDM_BaselineFont5 = 2145; IDM_Horizontalline = 2150; IDM_LINEBREAKNORMAL = 2151; IDM_LINEBREAKLEFT = 2152; IDM_lineBreakright = 2153; IDM_LINEBREAKBOTH = 2154; Idm_nonbreak = 2155; IDM_SpecialChar = 2156; IDM_HTMLSOURCE = 2157; IDM_Iframe = 2158; IDM_HTMLContain = 2159; IDM_TEXTBOX = 2161; Idm_textarea = 2162; IDM_Checkbox = 2163; IDM_RADIOBUTTON = 2164; Idm_dropdownbox = 2165; Idm_listbox = 2166; IDM_Button = 2167; IDM_IMAGE = 2168; IDM_Object = 2169; IDM_1D = 2170; Idm_imagemap = 2171; IDM_FILE = 2172; IDM_Comment = 2173; IDM_Script = 2174; Idm_javaApplet = 2175; IDM_PLUGIN = 2176; IDM_PageBreak = 2177; IDM_PARAGRAPH = 2180; IDM_Form = 2181; Idm_marquee = 2182; Idm_List = 2183; IDM_OrderList = 2184; IDM_UnorderList = 2185; Idm_indent = 2186; IDM_OUTDENT = 2187; IDM_PREFORMATTED = 2188; IDM_ADdress = 2189; IDM_BLINK = 2190; IDM_DIV = 2191; Idm_tableInsert = 2200; IDM_RCInsert = 2201; Idm_cellinsert = 2202; IDM_CaptionInsert = 2203; Idm_cellmerge = 2204; Idm_cellsplit = 2205; IDM_CELLSelect = 2206; Idm_rowSelect = 2207; Idm_ColumnSelect = 2208; IDM_TablSelect = 2209; IDM_TableProperties = 2210; IDM_CellProperties = 2211; Idm_rowinsert = 2212; IDM_ColumnInsert = 2213; IDM_HELP_CONTENT = 2220; IDM_HELP_ABOUT = 2221; IDM_HELP_README = 2222; IDM_REMOVEFORMAT = 2230; IDM_PageInfo = 2231; IDM_Teleletyp = 2232; Idm_getblockfmts = 2233; Idm_blockfmt = 2234; Idm_showhide_code = 2235; IDM_TABLE = 2236; IDM_COPYFORMAT = 2237; IDM_PasteFormat = 2238; IDM_GOTO = 2239; Idm_changefont = 2240; IDM_ChangeFontsize = 2241; IDM_incfontsize = 2242; IDM_DECFONTSIZE = 2243; Idm_incfontSize1pt = 2244; IDM_DECFONTSIZE1PT = 2245; Idm_ChangeCase = 2246; Idm_subscript = 2247; Idm_superscript = 2248; IDM_ShowSpecialChar = 2249; IDM_CenteralignPara = 2250; Idm_leftalignPara = 2251; Idm_rightalignPara = 2252; IDM_REMOVEPARAFFORMAT = 2253; IDM_ApplyNormal = 2254; IDM_Applyheading1 = 2255; IDM_Applyheading2 = 2256; IDM_Applyheading3 = 2257; IDM_DocProperties = 2260; IDM_ADDFavoriten = 2261; IDM_COPYSHORTCUT = 2262; Idm_savebackground = 2263; IDM_Setwallpaper = 2264; IDM_COPYBackground = 2265; IDM_CreateShortCut = 2266; IDM_Page = 2267; Idm_savetarget = 2268; Idm_showpicture = 2269; IDM_SAVEPICTURE = 2270; Idm_dynsrcPlay = 2271; IDM_DynsrcStop = 2272; Idm_printtarget = 2273; Idm_imgartplay = 2274; IDM_IMGARTSTOP = 2275; IDM_IMGARTREWIND = 2276; IDM_printQueryjobSpending = 2277; IDM_ContextMenu = 2280; IDM_GOBACKWARD = 2282; IDM_GOFORWARD = 2283; IDM_PRESTOP = 2284; IDM_CreateLink = 2290; IDM_COPYCONTENT = 2291; IDM_Language = 2292; IDM_REFRESH = 2300; IDM_Stopdownload = 2301; Idm_enable_interaction = 2302; IDM_LaunchDebugger = 2310; Idm_breakatnext = 2311; Idm_insinputhidden = 2312; Idm_inSinpassPassword = 2313; IDM_Overwrite = 2314; IDM_ParseComplete = 2315; IDM_HTMLEDITMODE = 2316; IDM_registryRefresh = 2317; IDM_COMPoseSettings = 2318; IDM_ShowallTags = 2320; IDM_ShowAnignedSitetags = 2321; IDM_ShowscriptTags = 2322; IDM_Showstyletags = 2323; IDM_ShowComentTags = 2324; IDM_Showareatags = 2325; Idm_showunknowntags = 2326; IDM_ShowMisctags = 2327; IDM_ShowzerOborderatDesignTime = 2328; IDM_Autodetekt = 2329; IDM_ScriptDebugger = 2330; IDM_GetByTesDownload = 2331; IDM_NOACTIVATENORMALOLECONTROLS = 2332; IDM_NOACTIVATEDESIGNTIMECONTROLS = 2333; IDM_NOActivateJavaApplets = 2334; IDM_ShowwbrTags = 2340; IDM_PERSSTREAMSYNC = 2341; IDM_SetDirty = 2342; IDM_MIMECSET__FIRST__ = 3609; IDM_MIMECSET__LAST__ = 3640; IDM_MUEUEXT_FIRST__ = 3700; IDM_MUEUEXT_LAST__ = 3732; IDM_MUEUEXT_COUNT = 3733; ID_EDITMODE = 32801; IDM_OPEN = 2000; IDM_New = 2001; IDM_SAVE = 70; IDM_SAVEAS = 71; IDM_SAVECOPYAS = 2002; IDM_printpreview = 2003; IDM_print = 27; IDM_PAGESETUP = 2004; Idm_spell = 2005; IDM_PastePecial = 2006; IDM_ClearSelection = 2007; Idm_Properties = 28; Idm_redo = 29; Idm_undo = 43; IDM_SELECTALL = 31; Idm_zoompercent = 50; Idm_getZoom = 68; IDM_Stop = 2138; IDM_COPY = 15; IDM_CUT = 16; IDM_Paste = 26; IDM_TRIED_IS_1D_ELEMENT = 0; IDM_TRIED_IS_2D_ELEMENT = 1; IDM_TRIED_NUDGE_ELEMENT = 2; IDM_TRIED_SET_ALIGNMENT = 3; IDM_TRIED_MAKE_ABSOLUTE = 4; IDM_TRIED_LOCK_ELEMENT = 5; IDM_TRIED_SEND_TO_BACK = 6; IDM_TRIED_SEND_TO_FRONT = 7; IDM_TRIED_SEND_BACKWARD = 8; IDM_TRIED_SEND_FORWARD = 9; IDM_TRIED_SEND_BEHIND_1D = 10; IDM_TRIED_SEND_FRONT_1D = 11; IDM_TRIED_CONSERT = 12; IDM_TRIED_SET_2D_DROP_MODE = 13; Idm_tried_insertrow = 14; Idm_tried_insertcol = 15; IDM_TRIED_DELETEROWS = 16; IDM_TRIED_DELETECOLS = 17; IDM_TRIED_MERGECELLS = 18; Idm_tried_splitcell = 19; Idm_tried_insertcell = 20; IDM_TRIED_DELETECELLS = 21; IDM_TRIED_INERTTABLE = 22; // Warnwarnung !!! // Wenn Sie neue Befehls -IDs hinzufügen IDM_TRIED_LAST_CID = IDM_TRIED_INSERTTABLE; CLSID_WebBrowser: tguid = '{ed016940-bd5b-11cf-ba4e-00c04fd70816}'; Typ Pdochostuiinfo = ^tdochostuiinfo; Tdochostuiinfo = record CBSIZE: Ulong; DWFLAGS: DWORD; DWDOUBLECLICK: DWORD; CHHOSTCSS: Polestern; Chhostns: Polestern; Ende; Idochostshowui = interface (iUunkNOWN) ['{C4D244B0-D43E-11CF-893B-00AA00BDCE1A}'] FunktionshowMessage (hwnd: Thandle; lpstrtext: polest; lpstrCaption: polest; DWTYPE: Longint; var plresult: lresult): hresult; Funktion ShowHelp (hwnd: Thandle; pszhelpfile: polest; ucommand: Integer; dwdata: longint; var pDispatchObJecthit: idispatch): hResult; Ende; // Idochostshowui Idochostuihandler = interface (iunkNown) ['{BD3F23C0-D43E-11CF-893B-00AA00BDCE1A}'] FunktionshowContextMenu (const dwid: dWord; const ppt: pPoint; const pcmdtreserved: iUunkNOWN; Funktion Gethostinfo (var pinfo: tdochostuiinfo): hresult; Funktion showui (const dwid: dword; const pactiveObject: ioleinplaceactiveObject; const pcommandtarget: iolecommandtarget; const pdoc: ioleinplaceuiwindow): hresult; Funktion HideUi: hresult; Funktion updateUi: hresult; Funktionsfunktionlos (const fenable: bool): hresult; Funktion ONDOCWINDOWACTIVATE (const factivate: bool): hResult; Funktion OnframeWindowActivate (const factivate: bool): hResult; FUNKTION -REZIZEBORDER (const Prcborder: pRECT; const puiwindow: ioleinplaceuiwindow; const FrameWindow: bool): hresult; Funktion translateAccelerator (const lpmsg: pmsg; const PGuidcmdgroup: pGuid; const ncmdid: dword): hresult; Funktion GetOptionKeypath (var pchkey: polest; const dw: dword): hResult; Funktion getDroptarget (const pdroptarget: idroptarget; out ppdroptarget: idroptarget): hresult; Funktion getexternal (out ppDispatch: idispatch): hResult; Funktion translateUrl (const dwtranslate: dWord; const pchurlin: polest; var ppchurlout: polestern): hresult; Funktion filterDataObject (const pdo: idataObject; out ppdoret: idataObject): hresult; Ende; // Idochostuihandler Idochostuihandler2 = Schnittstelle (iUunkNOWN) ['{3050F6D0-98B5-11CF-BB82-00AA00BDCE0B}'] Funktion GetOverrideKeypath (PCHKEY: Polestern; DW: DWORD): HRESULT; Ende; Const Iid_iuniformresourcelocatora: tguid = (( D1: $ FBF23B80; Iid_iuniformresourcelocatorw: tguid = (( D1: $ CABB0DA0; {$ Ifdef unicode} Iid_iuniformresourcelocator: tguid = (( D1: $ CABB0DA0; {$ Sonst} Iid_iuniformresourcelocator: tguid = (( D1: $ FBF23B80; {$ Endif} Const Clsid_internetshortCut: tguid = (( D1: $ FBF23B40; Sid_iuniformResourcelocatora = '{FBF23B80-E3F0-101B-8488-00AA003E56F8}'; Sid_iuniformResourcelocatorW = '{CABB0DA0-DA57-11CF-9974-0020AFD79762}'; {$ Ifdef unicode} Sid_iuniformresourcelocator = Sid_iuniformresourcelocatorW; {$ Sonst} Sid_iuniformresourcelocator = Sid_iuniformresourcelocatora; {$ Endif} IURL_SETURL_FL_GUESS_PROTOCOL = $ 0001; IURL_SETURL_FL_USE_DEFAULT_PROTOCOL = $ 0002; IURL_INVOKECOMMAND_FL_ALLALLE_UI = $ 0001; IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB = $ 0002; Iurl_invokecommand_fl_ddewait = $ 0004; TranslateUrl_fl_guess_protocol = $ 0001; TranslateUrl_fl_use_default_protocol = $ 0002; Urlassocdlg_fl_use_default_name = $ 0001; Urlassocdlg_fl_register_assoc = $ 0002; MiMeasocdlg_fl_register_assoc = $ 0001; Typ Purlinvokecommandinfoa = ^turlinvokecommandinfoa; TurlinvokeCommandinfoa = Record DWCBSIZE: DWORD; DWFLAGS: DWORD; hwndParent: hwnd; pcszverb: lpcstr; Ende; Purlinvokecommandinfow = ^turlinvokecommandinfow; TurlinvokeCommandinfow = Record DWCBSIZE: DWORD; DWFLAGS: DWORD; hwndParent: hwnd; pcszverb: lpcwstr; Ende; {$ Ifdef unicode} Purlinvokecommandinfo = ^turlinvokecommandinfow; Turlinvokecommandinfo = turlinvokecommandinfow; {$ Sonst} Purlinvokecommandinfo = ^turlinvokecommandinfoa; Turlinvokecommandinfo = turlinvokecommandinfoa; {$ Endif} IuniformResourcelocatora = Schnittstelle (iUunkNOWN) [Sid_iuniformresourcelocatora] Funktion Seturl (PCSZURL: LPCSTR; DWINFLAGS: DWORD): HRESULT; Funktion geturl (ppszurl: lpstr): hResult; Funktion InvokeCommand (Purlici: PurlinvokeCommandinfoa): hresult; Ende; Iuniformresourcelocatorw = Schnittstelle (iUunkNOWN) [Sid_iuniformresourcelocatorw] Funktion SETURL (PCSZURL: LPCWSTR; DWINFLAGS: DWORD): HRESULT; Funktion geturl (ppszurl: lpwstr): hresult; Funktion InvokeCommand (Purlici: PurlinvokeCommandinfow): hresult; Ende; {$ Ifdef unicode} Iuniformresourcelocator = iuniformresourcelocatorw; {$ Sonst} Iuniformresourcelocator = iuniformresourcelocatora; {$ Endif} Funktion translateUrla (pcszurl: lpcstr; Dwinflags: DWORD; PPSZTRANSLATEDURL: LPSTR): HRESULT; Funktion translateUrlw (pcszurl: lpcwstr; Dwinflags: DWORD; PPSZTRANSLATEDURL: LPWSTR): HRESULT; {$ Ifdef unicode} Funktion translateUrl (pcszurl: lpcwstr; Dwinflags: DWORD; PPSZTRANSLATEDURL: LPWSTR): HRESULT; {$ Sonst} Funktion translateUrl (pcszurl: lpcstr; Dwinflags: DWORD; PPSZTRANSLATEDURL: LPSTR): HRESULT; {$ Endif} Funktion urlassoziationDialoga (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCStr; pcszurl: lpcstr; pszappbuf: lpstr; ucappbulen: uint): hresult; Funktion urlassoziationDialogw (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCWSR; pcszurl: lpcwstr; pszappbuf: lpwstr; ucappbulen: uint): hresult; {$ Ifdef unicode} Funktion urlassoziationDialog (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCWSR; pcszurl: lpcwstr; pszappbuf: lpwstr; ucappbulen: uint): hresult; {$ Sonst} Funktion urlassoziationDialog (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCStr; pcszurl: lpcstr; pszappbuf: lpstr; ucappbulen: uint): hresult; {$ Endif} Funktion miMeaseSociationDialoga (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCStr; PCSZMIMECONTTTYPE: LPCSTR; pszappbuf: lpstr; ucappbulen: uint): hresult; Funktion miMeaseSociationDialogw (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCWSR; PCSZMIMECONTTTYPE: LPCWSTR; pszappbuf: lpwstr; ucappbulen: uint): hresult; {$ Ifdef unicode} Funktion miMeaseSociationDialog (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCWSR; PCSZMIMECONTTTYPE: LPCWSTR; pszappbuf: lpwstr; ucappbulen: uint): hresult; {$ Sonst} Funktion miMeaseSociationDialog (hwndParent: hwnd; Dwinflags: DWORD; PCSZFile: LPCStr; PCSZMIMECONTTTYPE: LPCSTR; pszappbuf: lpstr; ucappbulen: uint): hresult; {$ Endif} Funktion InetisOffline (DWFLAGS: DWORD): bool; {$ Ifdef ver120} Const Iid_iiInternetSession: tguid = '{79EAC9E7-BAF9-11CE-8C82-00AA004BA90B}'; Iid_iiInternetSecurityMgrSite: tguid = '{79EAC9ED-BAF9-11CE-8C82-00AA004BA90B}'; Iid_iiInternetSecurityManager: tguid = '{79EAC9EE-BAF9-11CE-8C82-00AA004BA90B}'; Iid_iiinternethostSecurityManager: tguid = '{3AF280B6-CB3F-11D0-891E-00C04FB6BFC4}'; SID_IIInternetSecurityManager: tguid = '{79EAC9EE-BAF9-11CE-8C82-00AA004BA90B}'; Sid_iiInternetHostSecurityManager: tguid = '{3AF280B6-CB3F-11D0-891E-00C04FB6BFC4}'; Iid_iiInternetzonemanager: tguid = '{79EAC9EF-BAF9-11CE-8C82-00AA004BA90B}'; Typ Turlzonereg = Ulong; Pbindinfo = ^tbindinfo; _tagbindinfo = verpackter Datensatz CBSIZE: Ulong; szextrainfo: lpwstr; stgmeddata: tstgmedium; grfbindinfof: dword; dwbindverb: dword; szcustomverb: lpwstr; CBSTGMEDDATA: DWORD; DWOptions: DWORD; DwOptionsFlags: DWORD; DWCodePage: DWORD; SecurityAttributes: TsecurityAttributes; iid: tguid; Punk: IUKNNOWN; dwreserved: dword; Ende; Tbindinfo = _tagbindinfo; BindInfo = _tagbindInfo; {$ NodeFine Polestrarray} Polestrarray = ^Tolestrarray; {$ NodeFine Tolestrarray} Tolestrarrray = array [0..maxlongint div Sizeof (polest) - 1] von polest; {$ Externalsym IinternetBindInfo} IInternetBindInfo = Schnittstelle ['{79EAC9E1-BAF9-11CE-8C82-00AA004BA90B}'] Funktion getbindInfo (out grfbindf: dWord; var bindinfo: tbindinfo): hResult; Funktion getbindstring (ulstringtype: ulong; wzstr: polestrarray; cel: ulong; var Celfetched: Ulong): hresult; Ende; PProtocoldata = ^tProtocoldata; {$ Externalsym _tagProtocoldata} _tagProtocoldata = verpackter Datensatz Grfflags: DWORD; DWState: DWORD; Pdata: Zeiger; cbdata: ulong; Ende; TProtocoldata = _tagProtocoldata; {$ Externalsym _tagProtocoldata} Protocoldata = _tagProtocoldata; {$ Externalsym IinternetProtocolsink} IInternetProtocolsink = Schnittstelle; {$ Externalsym IinternetProtocolroot} IInternetProtocolroot = Schnittstelle ['{79EAC9E3-BAF9-11CE-8C82-00AA004BA90B}'] Funktionsstart (Szurl: lpcwstr; oiProtrsink: iInternetProtocolsik; Oibindinfo: IinternetBindInfo; Funktion fortsetzen (const protocoldata: tProtocoldata): hResult; Funktion abort (hrreason: hResult; DWOptions: DWORD): HRESULT; Funktion enden (DWOptions: DWORD): HRESULT; Funktionsaufnahme: hresult; Funktionsumlauf: hresult; Ende; {$ Externalsym IinternetProtocol} IInternetProtocol = Schnittstelle (iiInternetProtocolroot) ['{79EAC9E4-BAF9-11CE-8C82-00AA004BA90B}'] Funktion Read (PV: Zeiger; CB: Ulong; Out CBread: Ulong): Hresult; Funktionsuche (dlibmove: large_integer; dworigin: dword; out libNewposition: ularge_integer): hresult; Funktion LockRequest (DWOptions: DWORD): HRESULT; Funktion UnlockRequest: Hresult; Ende; {$ Externalsym IinternetProtocolsink} IInternetProtocolSink = Schnittstelle ['{79EAC9E5-BAF9-11CE-8C82-00AA004BA90B}'] Funktionsschalter (const protocoldata: tProtocoldata): hResult; Funktion ReportProgress (Ulstatuscode: Ulong; Funktionsberichte (GRFBSCF: DWORD; ULPROGRESS, ULPROGRESSMAX: ULONG): HRESULT; Funktion reportresult (hrresult: hResult; Dwerror: DWORD; SZRESULT: LPCWSTR): hResult; Ende; {$ NodeFine tlpcwstrarray} TLPCWSTRARRAY = Array [0..maxLonginT Div Sizeof (lpcwstr) - 1] von lpcwstr; {$ NodeFine PLPCWSTRARRAY} PLPCWSTRARRAY = ^TLPCWSTRARRAY; {$ Externalsym iinternetSession} IInternetSession = Schnittstelle ['{79EAC9E7-BAF9-11CE-8C82-00AA004BA90B}'] Funktion RegisterNameSpace (vgl.: iCLASSFactory; const Clsid: tclsid; pwzProtocol: lpcwstr; Cpatterns: ulong; Funktion UnregisterNamePace (vgl. ICLASSFACTORY; PSZPROTOCOL: LPCWSTR): HRESULT; Funktion RegisterMimimFilter (vgl.: icLassFactory; const rclsid: tclsid; PWZTYPE: LPCWSTR): HRESULT; Funktion unregisterMimefilter (vgl. ICLASSFACTORY; Funktion createBinding (BC: Ibindctx; out oinetprot: IinternetProtocol; FunktionsetSessionoption (DWOption: DWORD; PBUFFER: Zeiger; dwreserved: dword): hresult; Funktion GetSessionoption (DWOption: DWORD; PBUFFER: Zeiger; var dwbufferLength: dWord; dwreserved: dword): hresult; Ende; // IinternetSession {$ Externalsym cointernetgetSession} Funktion CointernetgetSession (DWSessionMode: DWORD; var piinternetSession: iinternetSession; dwreserved: dword): hresult; Typ {$ Externalsym IinternetSecurityMgrSite} IInternetSecurityMgrSite = Schnittstelle ['{79EAC9ED-BAF9-11CE-8C82-00AA004BA90B}'] Funktion GetWindow (out hwnd: hwnd): hresult; Funktionsfunktionlos (fenable: bool): hResult; Ende; Const {$ Externalsym max_size_security_id} Max_size_security_id = 512; // Mapurltozone gibt den Zonenindex mit einer URL zurück {$ Externalsym puaf_default} PUAF_DEFAULT = $ 00000000; {$ Externalsym puaf_noui} PUAF_NOUI = $ 00000001; {$ Externalsym puaf_isfile} PUAF_FILE = $ 00000002; {$ Externalsym pUAF_WARN_IF_DENIED} PUAF_WARN_IF_DENIED = $ 00000004; {$ Externalsym pUAF_FORCEUI_FOREGORGE} PUAF_FORCEUI_FOREGRORGE = $ 0000008; {$ Externalsym puaf_check_tifs} PUAF_Check_tifs = $ 00000010; // Dies ist die Wrapper -Funktion, die die meisten Clients verwenden werden. // Es ermittelt die aktuelle Richtlinie für die in Aktion verabschiedeten. // und setzt die Benutzeroberfläche auf, wenn die aktuelle Richtlinie angibt, dass der Benutzer // sollte befragt werden. // wird feststellen, ob die Aktion zulässig sein sollte // Dies ist die Wrapper -Funktion, um eine benutzerdefinierte Richtlinie bequem zu lesen. // detzonemapping // lpszpattern: String, die ein URL -Muster bezeichnet // Beispiele für gültige Muster: // *: //*.msn.com // http: //*.sony.co.jp // *: //et.msn.com // ftp://157.54.23.41/ // https: // localsvr // Datei:/localsvr/Share // *: //157.54.100-200.** // Beispiele für ungültige Muster: // http: //*.lcs.mit.edu // ftp: //* // dwflags: SZM_FLAGS -Werte {$ Externalsym szm_create} Szm_create = 00000000; {$ Externalsym SZM_DELETE} SZM_DELETE = $ 00000001; Typ {$ Externalsym IinternetSecurityManager}} IInternetSecurityManager = Schnittstelle ['{79EAC9EE-BAF9-11CE-8C82-00AA004BA90B}'] FunktionsetSecuritySite (Site: IinternetSecurityMgrSite): hresult; Funktion GetSecuritySite (Out Site: IinternetSecurityMgrSite): hresult; Funktion mapurltozone (pwszurl: lpcwstr; out dwzone: dWord; DWFLAGS: DWORD): HRESULT; function getSecurityId (pwszurl: lpcwstr; pbSecurityId: Zeiger; var cbSecurityId: DWORD; Funktion processurlaction (pwszurl: lpcwstr; dwaction: dword; ppolicy: Zeiger; DWFLAGS, dwreserviert: DWORD): HRESULT; Funktion queryCustompolicy (pwszurl: lpcwstr; const Guidkey: tguid; Out Ppolicy: Zeiger; dwreserved: dword): hresult; Funktion detzonemapping (dwzone: dWord; lpszpattern: lpcwstr; DWFLAGS: DWORD): HRESULT; Funktion getZonemappings (Dwzone: DWORD; OUT ENUMStrING: IENTRING; DWFLAGS: DWORD): HRESULT; Ende; {$ Externalsym IinternetheSecurityManager}} IInTEMTHOSTSECURITYMANAGER = Schnittstelle ['{3AF280B6-CB3F-11D0-891E-00C04FB6BFC4}'] function getSecurityId (pbSecurityId: Zeiger; var cbSecurityId: DWORD; dwreserved: dword): hresult; Funktion processurlaction (dwaction: dword; ppolicy: ppolicy: zeiger; cbpolicy: dWord; PContext: Zeiger; Funktion queryCustompolicy (const Guidkey: tguid; out Ppolicy: Zeiger; out cbpolicy: dword; PContext: Zeiger; Ende; Const {$ Externalsym urlaction_min} URLACTION_MIN = $ 00001000; {$ Externalsym urlaction_download_min} Urlaction_download_min = 00001000; {$ Externalsym urlaction_download_signed_activex} Urlaction_download_signed_activex = $ 00001001; {$ Externalsym urlaction_download_unsigned_activex} Urlaction_download_unsigned_activex = $ 00001004; {$ Externalsym urlaction_download_curr_max}} Urlaction_download_curr_max = 00001004; {$ Externalsym urlaction_download_max} Urlaction_download_max = 000011ff; {$ Externalsym urlaction_activex_min}} Urlaction_activex_min = 00001200; {$ Externalsym urlaction_activex_run}} Urlaction_activex_run = 00001200; {$ Externalsym urlaction_activex_override_object_safety} Urlaction_activex_override_object_safety = 00001201; {$ Externalsym urlaction_activex_override_data_safety} Urlaction_activex_override_data_safety = 00001202; {$ Externalsym urlaction_activex_override_script_safety} Urlaction_activex_override_script_safety = 00001203; {$ Externalsym urlaction_script_override_safety} Urlaction_script_override_safety = 00001401; {$ Externalsym urlaction_activex_confirm_noObjectsafety} Urlaction_activex_confirm_noObjectsafety = $ 00001204; {$ Externalsym urlaction_activex_treatasUntrusted} Urlaction_activex_treatasUntrusted = $ 00001205; {$ Externalsym urlaction_activex_curr_max}} Urlaction_activex_curr_max = 00001205; {$ Externalsym urlaction_activex_max}} Urlaction_activex_max = 000013ff; {$ Externalsym urlaction_script_min} Urlaction_script_min = 00001400; {$ Externalsym urlaction_script_run} Urlaction_script_run = 00001400; {$ Externalsym urlaction_script_java_use} Urlaction_script_java_use = 00001402; {$ Externalsym urlaction_script_safe_activex} Urlaction_script_safe_activex = 00001405; {$ Externalsym urlaction_script_curr_max}} Urlaction_script_curr_max = 00001405; {$ Externalsym urlaction_script_max} Urlaction_script_max = 000015ff; {$ Externalsym urlaction_html_min}} Urlaction_html_min = 00001600; {$ Externalsym urlaction_html_submit_forms} URLACTION_HTML_SUBMIT_FORMS = $ 00001601; {$ Externalsym urlaction_html_submit_forms_from} URLACTION_HTML_SUBMIT_FORMS_FROM = $ 00001602; {$ Externalsym urlaction_html_submit_forms_to} URLACTION_HTML_SUBMIT_FORMS_TO = $ 00001603; {$ Externalsym urlaction_html_font_download} Urlaction_html_font_download = 00001604; {$ Externalsym urlaction_html_java_run} URLACTION_HTML_JAVA_RUN = $ 00001605; {$ Externalsym urlaction_html_curr_max} Urlaction_html_curr_max = 00001605; {$ Externalsym urlaction_html_max}} Urlaction_html_max = 000017ff; {$ Externalsym urlaction_shell_min} Urlaction_shell_min = 00001800; {$ Externalsym urlaction_shell_install_dtitems} URLACTION_SHELL_INSTALL_DTITEMS = $ 00001800; {$ Externalsym urlaction_shell_move_or_copy} Urlaction_shell_move_or_copy = 00001802; {$ Externalsym urlaction_shell_file_download} Urlaction_shell_file_download = 00001803; {$ Externalsym urlaction_shell_verb} Urlaction_shell_verb = 00001804; {$ Externalsym urlaction_shell_webview_verb} Urlaction_shell_webview_verb = 00001805; {$ Externalsym urlaction_shell_curr_max}} Urlaction_shell_curr_max = 00001805; {$ Externalsym urlaction_shell_max} Urlaction_shell_max = 000019ff; {$ Externalsym urlaction_network_min} URLACTION_NETWORK_MIN = $ 00001A00; {$ Externalsym urlaction_credentials_use} Urlaction_credentials_use = 00001a00; {$ Externalsym urlpolicy_credentials_silent_logon_ok} UrlPolicy_credentials_silent_logon_ok = $ 0000000; {$ Externalsym urlpolicy_credentials_must_prompt_user}} UrlPolicy_credentials_must_prompt_user = $ 00010000; {$ Externalsym urlpolicy_credentials_conditional_prompt} UrlPolicy_credentials_conditional_prompt = 00020000; {$ Externalsym urlpolicy_credentials_anonymous_only} UrlPolicy_credentials_anonymous_only = $ 00030000; {$ Externalsym urlaction_authenticate_client} Urlaction_authenticate_client = 00001a01; {$ Externalsym urlpolicy_authenticate_cleartext_ok} URLPOLICY_AUTHENTATE_CLEARTEXT_OK = $ 00000000; {$ Externalsym urlpolicy_authenticate_challenge_response} URLPOLICY_AUTHENTATE_CHALLENGE_RESPONSE = $ 00010000; {$ Externalsym urlpolicy_authenticate_mutual_only} UrlPolicy_authenticate_mutual_only = $ 00030000; {$ Externalsym urlaction_network_curr_max}} Urlaction_network_curr_max = 00001a01; {$ Externalsym urlaction_network_max} Urlaction_network_max = 00001bff; {$ Externalsym urlaction_java_min}} URLACTION_JAVA_MIN = $ 00001C00; {$ Externalsym urlaction_java_permissions} Urlaction_java_permissions = 00001c00; {$ Externalsym urlpolicy_java_prohibit} Urlpolicy_java_prohibit = $ 00000000; {$ Externalym urlpolicy_java_high} Urlpolicy_java_high = $ 00010000; {$ Externalym urlpolicy_java_medium} Urlpolicy_java_medium = $ 00020000; {$ Externalsym urlpolicy_java_low} Urlpolicy_java_low = $ 00030000; {$ Externalym urlpolicy_java_custom} Urlpolicy_java_custom = $ 00800000; {$ Externalsym urlaction_java_curr_max} Urlaction_java_curr_max = 00001c00; {$ Externalsym urlaction_java_max}} URLACTION_JAVA_MAX = $ 00001CFF; // Die folgenden Infodelivery -Aktionen sollten keine Standardrichtlinien haben // in der Registrierung. // Zurück zur globalen Einschränkung. // Zone, dann überschreibt sie die globale Einschränkung. {$ Externalsym urlaction_infodelivery_min} Urlaction_infodelivery_min = $ 00001d00; {$ Externalsym urlaction_infodelivery_no_adding_channels} Urlaction_infodelivery_no_adding_channels = $ 00001d00; {$ Externalsym urlaction_infodelivery_no_editing_channels} Urlaction_infodelivery_no_editing_channels = $ 00001D01; {$ Externalsym urlaction_infodelivery_no_removing_channels} Urlaction_infodelivery_no_removing_channels = 00001d02; {$ Externalsym urlaction_infodelivery_no_adding_subscriptions} Urlaction_infodelivery_no_adding_subscriptions = 00001d03; {$ Externalsym urlaction_infodelivery_no_editing_subscriptions} Urlaction_infodelivery_no_editing_subscriptions = 00001d04; {$ Externalsym urlaction_infodelivery_no_removing_subscriptions} Urlaction_infodelivery_no_removing_subscriptions = 00001d05; {$ Externalsym urlaction_infodelivery_no_channel_logging} Urlaction_infodelivery_no_channel_logging = 00001d06; {$ Externalsym urlaction_infodelivery_curr_max} Urlaction_infodelivery_curr_max = 00001d06; {$ Externalsym urlaction_infodelivery_max} Urlaction_infodelivery_max = 00001dff; {$ Externalsym urlaction_channel_softdist_min} Urlaction_channel_softdist_min = 00001e00; {$ Externalsym urlaction_channel_softdist_permissions} Urlaction_channel_softdist_permissions = 00001e05; {$EXTERNALSYM URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT} URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT = $00010000; {$EXTERNALSYM URLPOLICY_CHANNEL_SOFTDIST_PRECACHE} URLPOLICY_CHANNEL_SOFTDIST_PRECACHE = $00020000; {$EXTERNALSYM URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL} URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL = $00030000; {$EXTERNALSYM URLACTION_CHANNEL_SOFTDIST_MAX} URLACTION_CHANNEL_SOFTDIST_MAX = $00001EFF; // For each action specified above the system maintains // a set of policies for the action. // The only policies supported currently are permissions (ie is something allowed) // and logging status. // IMPORTANT: If you are defining your own policies don't overload the meaning of the // loword of the policy. You can use the hiword to store any policy bits which are only // meaningful to your action. // For an example of how to do this look at the URLPOLICY_JAVA above // Permissions {$EXTERNALSYM URLPOLICY_ALLOW} URLPOLICY_ALLOW = $00; {$EXTERNALSYM URLPOLICY_QUERY} URLPOLICY_QUERY = $01; {$EXTERNALSYM URLPOLICY_DISALLOW} URLPOLICY_DISALLOW = $03; // Notifications are not done when user already queried. {$EXTERNALSYM URLPOLICY_NOTIFY_ON_ALLOW} URLPOLICY_NOTIFY_ON_ALLOW = $10; {$EXTERNALSYM URLPOLICY_NOTIFY_ON_DISALLOW} URLPOLICY_NOTIFY_ON_DISALLOW = $20; // Logging is done regardless of whether user was queried. {$EXTERNALSYM URLPOLICY_LOG_ON_ALLOW} URLPOLICY_LOG_ON_ALLOW = $40; {$EXTERNALSYM URLPOLICY_LOG_ON_DISALLOW} URLPOLICY_LOG_ON_DISALLOW = $80; {$EXTERNALSYM URLPOLICY_MASK_PERMISSIONS} URLPOLICY_MASK_PERMISSIONS = $0F; // The ordinal #'s that define the predefined zones internet explorer knows about. // When we support user-defined zones their zone numbers should be between // URLZONE_USER_MIN and URLZONE_USER_MAX Const {$EXTERNALSYM URLZONE_PREDEFINED_MIN} URLZONE_PREDEFINED_MIN = 0; {$EXTERNALSYM URLZONE_LOCAL_MACHINE} URLZONE_LOCAL_MACHINE = 0; {$EXTERNALSYM URLZONE_INTRANET} URLZONE_INTRANET = URLZONE_LOCAL_MACHINE + 1; {$EXTERNALSYM URLZONE_TRUSTED} URLZONE_TRUSTED = URLZONE_INTRANET + 1; {$EXTERNALSYM URLZONE_INTERNET} URLZONE_INTERNET = URLZONE_TRUSTED + 1; {$EXTERNALSYM URLZONE_UNTRUSTED} URLZONE_UNTRUSTED = URLZONE_INTERNET + 1; {$EXTERNALSYM URLZONE_PREDEFINED_MAX} URLZONE_PREDEFINED_MAX = 999; {$EXTERNALSYM URLZONE_USER_MIN} URLZONE_USER_MIN = 1000; {$EXTERNALSYM URLZONE_USER_MAX} URLZONE_USER_MAX = 10000; {$EXTERNALSYM URLTEMPLATE_CUSTOM} URLTEMPLATE_CUSTOM = $00000000; {$EXTERNALSYM URLTEMPLATE_PREDEFINED_MIN} URLTEMPLATE_PREDEFINED_MIN = $00010000; {$EXTERNALSYM URLTEMPLATE_LOW} URLTEMPLATE_LOW = $00010000; {$EXTERNALSYM URLTEMPLATE_MEDIUM} URLTEMPLATE_MEDIUM = $00011000; {$EXTERNALSYM URLTEMPLATE_HIGH} URLTEMPLATE_HIGH = $00012000; {$EXTERNALSYM URLTEMPLATE_PREDEFINED_MAX} URLTEMPLATE_PREDEFINED_MAX = $00020000; {$EXTERNALSYM MAX_ZONE_PATH} MAX_ZONE_PATH = 260; {$EXTERNALSYM MAX_ZONE_DESCRIPTION} MAX_ZONE_DESCRIPTION = 200; {$EXTERNALSYM ZAFLAGS_CUSTOM_EDIT} ZAFLAGS_CUSTOM_EDIT = $00000001; {$EXTERNALSYM ZAFLAGS_ADD_SITES} ZAFLAGS_ADD_SITES = $00000002; {$EXTERNALSYM ZAFLAGS_REQUIRE_VERIFICATION} ZAFLAGS_REQUIRE_VERIFICATION = $00000004; {$EXTERNALSYM ZAFLAGS_INCLUDE_PROXY_OVERRIDE} ZAFLAGS_INCLUDE_PROXY_OVERRIDE = $00000008; {$EXTERNALSYM ZAFLAGS_INCLUDE_INTRANET_SITES} ZAFLAGS_INCLUDE_INTRANET_SITES = $00000010; {$EXTERNALSYM ZAFLAGS_NO_UI} ZAFLAGS_NO_UI = $00000020; {$EXTERNALSYM ZAFLAGS_SUPPORTS_VERIFICATION} ZAFLAGS_SUPPORTS_VERIFICATION = $00000040; {$EXTERNALSYM ZAFLAGS_UNC_AS_INTRANET} ZAFLAGS_UNC_AS_INTRANET = $00000080; Typ PZoneAttributes = ^TZoneAttributes; {$EXTERNALSYM _ZONEATTRIBUTES} _ZONEATTRIBUTES = packed record cbSize: ULONG; szDisplayName: array[0..260 - 1] of WideChar; szDescription: array[0..200 - 1] of WideChar; szIconPath: array[0..260 - 1] of WideChar; dwTemplateMinLevel: DWORD; dwTemplateRecommended: DWORD; dwTemplateCurrentLevel: DWORD; dwFlags: DWORD; Ende; TZoneAttributes = _ZONEATTRIBUTES; {$EXTERNALSYM ZONEATTRIBUTES} ZONEATTRIBUTES = _ZONEATTRIBUTES; // Gets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes are fixed as: // Sets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes as above. // Returns S_OK or ??? if failed to write the zone attributes. { Registry Flags When reading, default behavior is: If HKLM allows override and HKCU value exists Then use HKCU value Else use HKLM value When writing, default behavior is same as HKCU If HKLM allows override Then Write to HKCU Else Fail } Const {$EXTERNALSYM URLZONEREG_DEFAULT} URLZONEREG_DEFAULT = 0; {$EXTERNALSYM URLZONEREG_HKLM} URLZONEREG_HKLM = URLZONEREG_DEFAULT + 1; {$EXTERNALSYM URLZONEREG_HKCU} URLZONEREG_HKCU = URLZONEREG_HKLM + 1; // Gets a named custom policy associated with a zone; // eg the Java VM settings can be defined with a unique key such as 'Java'. // Custom policy support is intended to allow extensibility from the predefined // set of policies that IE4 has built in. // // pwszKey is the string name designating the custom policy. Components are // responsible for having unique names. // ppPolicy is the callee allocated buffer for the policy byte blob; caller is // responsible for freeing this buffer eventually. // pcbPolicy is the size of the byte blob returned. // dwRegFlags determines how registry is accessed (see above). // Returns S_OK if key is found and buffer allocated; ??? if key is not found (no buffer alloced). // Sets a named custom policy associated with a zone; // eg the Java VM settings can be defined with a unique key such as 'Java'. // Custom policy support is intended to allow extensibility from the predefined // set of policies that IE4 has built in. // // pwszKey is the string name designating the custom policy. Components are // responsible for having unique names. // ppPolicy is the caller allocated buffer for the policy byte blob. // pcbPolicy is the size of the byte blob to be set. // dwRegFlags determines if HTCU or HKLM is set. // Returns S_OK or ??? if failed to write the zone custom policy. // Gets action policy associated with a zone, the builtin, fixed-length policies info. // dwAction is the action code for the action as defined above. // pPolicy is the caller allocated buffer for the policy data. // cbPolicy is the size of the caller allocated buffer. // dwRegFlags determines how registry is accessed (see above). // Returns S_OK if action is valid; ??? if action is not valid. Typ {$EXTERNALSYM IInternetZoneManager} IInternetZoneManager = interface ['{79eac9ef-baf9-11ce-8c82-00aa004ba90b}'] // Gets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes are fixed as: function GetZoneAttributes(dwZone: DWORD; var ZoneAttributes: TZoneAttributes): HResult; stdcall; // Sets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes as above. // Returns S_OK or ??? if failed to write the zone attributes. function SetZoneAttributes(dwZone: DWORD; const ZoneAttributes: TZoneAttributes): HResult; stdcall; function GetZoneCustomPolicy(dwZone: DWORD; const guidKey: TGUID; out pPolicy: Pointer; out cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function SetZoneCustomPolicy(dwZone: DWORD; const guidKey: TGUID; pPolicy: Pointer; cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function GetZoneActionPolicy(dwZone, dwAction: DWORD; pPolicy: Pointer; cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function SetZoneActionPolicy(dwZone, dwAction: DWORD; pPolicy: Pointer; cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function PromptAction(dwAction: DWORD; hwndParent: HWnd; pwszUrl, pwszText: LPCWSTR; dwPromptFlags: DWORD): HResult; stdcall; function LogAction(dwAction: DWORD; pwszUrl, pwszText: LPCWSTR; dwLogFlags: DWORD): HResult; stdcall; function CreateZoneEnumerator(out dwEnum, dwCount: DWORD; dwFlags: DWORD): HResult; stdcall; function GetZoneAt(dwEnum, dwIndex: DWORD; out dwZone: DWORD): HResult; stdcall; function DestroyZoneEnumerator(dwEnum: DWORD): HResult; stdcall; function CopyTemplatePoliciesToZone(dwTemplate, dwZone, dwReserved: DWORD): HResult; stdcall; Ende; // Creates the security manager object. The first argument is the Service provider // to allow for delegation {$EXTERNALSYM CoInternetCreateSecurityManager} function CoInternetCreateSecurityManager(SP: IServiceProvider; var SM: IInternetSecurityManager; dwReserved: DWORD): HResult; stdcall; {$EXTERNALSYM CoInternetCreateZoneManager} function CoInternetCreateZoneManager(SP: IServiceProvider; var ZM: IInternetZoneManager; dwReserved: DWORD): HResult; stdcall; {$ENDIF} function SHLockShared(Handle: THandle; DWord: DWORD): Pointer; stdcall; function SHUnlockShared(Pnt: Pointer): BOOL; stdcall; function SHFreeShared(Handle: THandle; DWord: DWORD): Pointer; stdcall; function Free(Pidl: PItemIDList): BOOL; stdcall; function HtmlHelp(hwndCaller: HWND; pszfile: PChar; uCommand: Integer; dwData: DWORD): HWND; stdcall; Durchführung Const urldll = 'url.dll'; function InetIsOffline; external urldll name 'InetIsOffline'; function MIMEAssociationDialogW; external urldll name 'MIMEAssociationDialogW'; function MIMEAssociationDialogA; external urldll name 'MIMEAssociationDialogA'; {$IFDEF UNICODE} function MIMEAssociationDialog; external urldll name 'MIMEAssociationDialogW'; {$ELSE} function MIMEAssociationDialog; external urldll name 'MIMEAssociationDialogA'; {$ENDIF} function URLAssociationDialogW; external urldll name 'URLAssociationDialogW'; function URLAssociationDialogA; external urldll name 'URLAssociationDialogA'; {$IFDEF UNICODE} function URLAssociationDialog; external urldll name 'URLAssociationDialogW'; {$ELSE} function URLAssociationDialog; external urldll name 'URLAssociationDialogA'; {$ENDIF} function TranslateURLA; external urldll name 'TranslateURLA'; function TranslateURLW; external urldll name 'TranslateURLW'; {$IFDEF UNICODE} function TranslateURL; external urldll name 'TranslateURLW'; {$ELSE} function TranslateURL; external urldll name 'TranslateURLA'; {$ENDIF} {$IFDEF VER120} Const UrlMonLib = 'URLMON.DLL'; function CoInternetGetSession; external UrlMonLib name 'CoInternetGetSession'; function CoInternetCreateSecurityManager; external UrlMonLib name 'CoInternetCreateSecurityManager'; function CoInternetCreateZoneManager; external UrlMonLib name 'CoInternetCreateZoneManager'; {$ENDIF} function HtmlHelp(hwndCaller: HWND; pszfile: PChar; uCommand: Integer; dwData: DWORD): HWND; stdcall; external 'hhctrl.ocx' name 'HtmlHelpA'; function SHLockShared; external 'shell32.dll' index 521; function SHUnlockShared; external 'shell32.dll' index 522; function SHFreeShared; external 'shell32.dll' index 523; function Free; external 'comctl32.dll' index 73; Ende. |