Статьи о решении для тщательного фильтрации IE в VC:
http://blog.csdn.net/111222/archive/2002/02/09/7255.aspx
Для реализации Delphi есть единица PAS:
единица IECONST; интерфейс использует Shlobj, ActiveX, Windows; констант 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-4445553540000}'; Iid_iequeryinfo: tguid = (D1: $ 00021500; D2: $ 0000; D3: $ 0000; D4: ($ C0, $ 00, $ 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; // в режиме браузера Context_menu_textselect = 4; Context_menu_anchor = 5; Context_menu_unknown = 6; // эти 2 отображаются с изображением для общественности ») 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; Dochostuidblck_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_autocoplete = $ 4000; Dochostuiflag_enable_inplace_navigation = $ 10000; Dochostuiflag_ime_enable_reconversion = 20000 долл. США; Idm_unknown = 0; Idm_alignbottom = 1; Idm_alignhorizontalcenters = 2; Idm_alignleft = 3; Idm_alignright = 4; Idm_aligntogrid = 5; Idm_aligntop = 6; IDM_ALIGNERTICALCENTERS = 7; Idm_arrangebottom = 8; Idm_arrangeright = 9; Idm_bringforward = 10; Idm_bringtofront = 11; Idm_centerhorizontally = 12; Idm_centervertically = 13; Idm_code = 14; Idm_delete = 17; Idm_fontname = 18; Idm_fontsize = 19; Idm_group = 20; Idm_horizspaceconcatenate = 21; Idm_horizspedecrease = 22; Idm_horizspaceincrease = 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_vertspedecrease = 47; Idm_vertspaceincreease = 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_justifycenter = 57; Idm_justifygeneral = 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_insinputsubmit = 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_followlinkc = 2136; Idm_followlinkn = 2137; Idm_viewsource = 2139; Idm_zoopopup = 2140; // idm_baselinefont1, idm_baselinefont2, idm_baselinefont3, idm_baselinefont4, // и idm_baselinefont5 должны быть последовательными целыми числами; // Idm_baselinefont1 = 2141; Idm_baselinefont2 = 2142; Idm_baselinefont3 = 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_tableselect = 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_teletype = 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_ceneralignpara = 2250; Idm_leftalignpara = 2251; Idm_rightalignpara = 2252; Idm_removeparaformat = 2253; Idm_applynormal = 2254; Idm_applyheading1 = 2255; Idm_applyheading2 = 2256; Idm_applyheading3 = 2257; Idm_docproperties = 2260; Idm_addfavorites = 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_printqueryjobsending = 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_insinputpassword = 2313; Idm_overwrite = 2314; Idm_parsecoplete = 2315; Idm_htmleditmode = 2316; Idm_registryRefresh = 2317; Idm_composesettings = 2318; Idm_showalltags = 2320; IDM_SHOWALIGNEDSITETAGS = 2321; Idm_showscripttags = 2322; Idm_showstyletags = 2323; Idm_showcommenttags = 2324; Idm_showareatags = 2325; Idm_showunknowntags = 2326; Idm_showmisctags = 2327; Idm_showzeroborderatdesigntime = 2328; Idm_autodetect = 2329; Idm_scriptdebugger = 2330; Idm_getbytesdownloaded = 2331; Idm_noactivatenormalolecontrols = 2332; Idm_noactivatedesigntimeControls = 2333; Idm_noactivatejavaApplets = 2334; Idm_showwbrtags = 2340; Idm_persistrestreamsync = 2341; Idm_setdirty = 2342; Idm_mimecset__first__ = 3609; Idm_mimecset__last__ = 3640; Idm_muengext_first__ = 3700; Idm_muengext_last__ = 3732; Idm_muengext_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_pastespecial = 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; // [out, vt_bool] Idm_tried_is_2d_element = 1; // [out, vt_bool] 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_CONSTRAIN = 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_inserttable = 22; // Предупреждение о предупреждении !!! // Когда вы добавляете новые идентификаторы команд Idm_tried_last_cid = idm_tried_inserttable; CLSID_WEBBROWSER: TGUID = '{ED016940-BD5B-11CF-BA4E-00C04FD70816}'; тип Pdochostuiinfo = ^tdochostuiinfo; Tdochostuiinfo = record CBSize: Ulong; DWFLAGS: DWORD; dwdoubleclick: dword; Chhostcss: Polestr; Chhostns: Polestr; конец; Idochostshowui = интерфейс (iunknown) ['{C4D244B0-D43E-11CF-893B-00AA00BDCE1A}'] Функция Showmessage (Hwnd: Thandle; LPStrext: Polestr; LPStrcaption: Polestr; Dwtype: Longint; var plresult: lresult): hresult; Функция Showhelp (Hwnd: Thandle; Pszhelpfile: Polestr; Ucommand: Integer; Dwdata: Longint; var pdispatchobjecthit: idispatch): hresult; конец; Idochostuihandler = интерфейс (iunknown) ['{BD3F23C0-D43E-11CF-893B-00AA00BDCE1A}'] Функция ShowContextMenu (const dwid: dword; const ppt: ppoint; const pcmdtreserved: iunknown; Функция Gethostinfo (var pinfo: tdochostuiinfo): hresult; Функция Showui (const dwid: dword; const pactiveObject: ioleinplaceactiveObject; Const pcommandtarget: iolecommandtarget; const pdoc: ioleinplaceuiwindow): hresult; Функция hideui: hresult; Функция обновления: hResult; Функция EnableMod (Const Fenable: Bool): hResult; Функция ondocwindowactivate (constactate: bool): hresult; Функция OnFrameWindowActivate (Const FactAte: Bool): HRESULT; функция Resizeborder (Const prcborder: Prect; Const Puiwindow: ioleinplaceUiWindow; Const FrameWindow: Bool): hResult; функция TranslateAccelerator (const lpmsg: pmsg; const pguidcmdgroup: pguid; const ncmdid: dword): hresult; function getoptionkeypath (var pchkey: polest; const dw: dword): hresult; функция getDropTarget (const pdroptarget: idroptarget; out ppdroptarget: idroptarget): hresult; Функция getExternal (Out ppdispatch: idispatch): hresult; функция TranslateUrl (const dwtranslate: dword; const pchurlin: polestr; var ppchurlout: polest): hresult; function filterDataObject (const pdo: idataObject; out ppdoret: idataobject): hresult; конец; Idochostuihandler2 = интерфейс (iunknown) ['{3050F6D0-98B5-11CF-BB82-00AA00BDCE0B}'] Функция GetoverRideKeypath (PCHKEY: Polest; DW: DWORD): HRESULT; конец; констант Iid_iuniformresourcelocatora: tguid = ( D1: $ FBF23B80; Iid_iuniformresourcelocatorw: tguid = ( D1: $ cabb0da0; {$ Ifdef unicode} Iid_iuniformresourcelocator: tguid = ( D1: $ cabb0da0; {$ Else} Iid_iuniformresourcelocator: tguid = ( D1: $ FBF23B80; {$ Endif} констант 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; {$ Else} Sid_iuniformresourcelocator = sid_iuniformresourcelocatora; {$ Endif} IURL_SETURL_FL_GUESS_PROTOCOL = $ 0001; Iurl_seturl_fl_use_default_protocol = $ 0002; Iurl_invokecommand_fl_allo_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; Mimeassocdlg_fl_register_assoc = $ 0001; тип Purlinvokecommandinfoa = ^turlinvokecommandinfoa; Turlinvokecommandinfoa = record DWCBSIZE: DWORD; DWFLAGS: DWORD; HWNDPARENT: HWND; PCSZVERB: LPCSTR; конец; Purlinvokecommandinfow = ^turlinvokecommandinfow; Turlinvokecommandinfow = record DWCBSIZE: DWORD; DWFLAGS: DWORD; HWNDPARENT: HWND; PCSZVERB: LPCWSTR; конец; {$ Ifdef unicode} Purlinvokecommandinfo = ^turlinvokecommandinfow; Turlinvokecommandinfo = turlinvokecommandinfow; {$ Else} Purlinvokecommandinfo = ^turlinvokecommandinfoa; Turlinvokecommandinfo = turlinvokecommandinfoa; {$ Endif} Iuniformresourcelocatora = интерфейс (iunknown) [Sid_iuniformresourcelocatora] Функция Seturl (PCSZURL: LPCSTR; DWINFLAGS: DWORD): HRESULT; Функция getUrl (PpszUrl: LPSTR): HRESULT; Функция InvokeCommand (purlici: purlinvokecommandinfoa): hresult; конец; Iuniformresourcelocatorw = интерфейс (iunknown) [Sid_iuniformresourcelocatorw] Функция Seturl (PCSZURL: LPCWSTR; DWINFLAGS: DWORD): HRESULT; Функция geturl (Ppszurl: LPWSTR): HRESULT; Функция InvokeCommand (purlici: purlinvokecommandinfow): hresult; конец; {$ Ifdef unicode} IUniformresourcelocator = iuniformresourcelocatorw; {$ Else} Iuniformresourcelocator = iuniformresourcelocatora; {$ Endif} функция Translateurla (PCSZURL: LPCSTR; DWINFLAGS: DWORD; ppsztranslatedurl: lpstr): hresult; функция TranslateUrlw (PCSZURL: LPCWSTR; DWINFLAGS: DWORD; ppsztranslatedurl: lpwstr): hresult; {$ Ifdef unicode} функция TranslateUrl (PCSZURL: LPCWSTR; DWINFLAGS: DWORD; ppsztranslatedurl: lpwstr): hresult; {$ Else} функция TranslateUrl (PCSZURL: LPCSTR; DWINFLAGS: DWORD; ppsztranslatedurl: lpstr): hresult; {$ Endif} Функция urlassociationdialoga (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; PCSZURL: LPCSTR; pszappbuf: lpstr; ucappbuflen: uint): hresult; Функция urlassociationdialogw (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; PCSZURL: LPCWSTR; pszappbuf: lpwstr; ucappbuflen: uint): hresult; {$ Ifdef unicode} Функция urlassociationdialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; PCSZURL: LPCWSTR; pszappbuf: lpwstr; ucappbuflen: uint): hresult; {$ Else} Функция urlassociationdialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; PCSZURL: LPCSTR; pszappbuf: lpstr; ucappbuflen: uint): hresult; {$ Endif} Функция mimeassociationdialoga (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; pcszmimecontenttype: lpcstr; pszappbuf: lpstr; ucappbuflen: uint): hresult; функция mimeassociationdialogw (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; pcszmimecontenttype: lpcwstr; pszappbuf: lpwstr; ucappbuflen: uint): hresult; {$ Ifdef unicode} функция mimeassociationdialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; pcszmimecontenttype: lpcwstr; pszappbuf: lpwstr; ucappbuflen: uint): hresult; {$ Else} функция mimeassociationdialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; pcszmimecontenttype: lpcstr; pszappbuf: lpstr; ucappbuflen: uint): hresult; {$ Endif} Функция inetisoffline (dwflags: dword): bool; {$ Ifdef ver120} констант 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}'; тип Turlzonereg = ulong; Pbindinfo = ^tbindinfo; _tagbindinfo = упакованная запись CBSize: Ulong; szextrainfo: lpwstr; stgmeddata: tstgmedium; grfbindinfof: dword; dwbindverb: dword; szcustomverb: lpwstr; cbstgmeddata: dword; ДВОПТИИ: DWORD; DwoptionsFlags: DWORD; dwcodepage: dword; SecurityAttributes: TseCurityattributes; IID: TGUID; Панк: iunknown; dwreserved: dword; конец; Tbindinfo = _tagbindinfo; Bindinfo = _tagbindinfo; {$ Nodefine Polestrarray} Polestrarray = ^tolestrarray; {$ Nodefine tolestrarray} Tolestrarray = массив [0..maxlongint div sizeof (polestr) - 1] из Polest; {$ Externalsym iinternetbindinfo} IinternetBindinfo = интерфейс ['{79EAC9E1-BAF9-11CE-8C82-00AA004BA90B}'] функция getBindinfo (out grfbindf: dword; var bindinfo: tbindinfo): hresult; Функция GetBindString (UlstringType: Ulong; Wzstr: Polestrarray; Cel: Ulong; var celfetch: ulong): hresult; конец; Pprotocoldata = ^tprotocoldata; {$ Externalsym _tagprotocoldata} _tagprotocoldata = упакованная запись grfflags: dword; dwstate: dword; PDATA: указатель; Cbdata: Ulong; конец; Tprotocoldata = _tagprotocoldata; {$ Externalsym _tagprotocoldata} Protocoldata = _tagprotocoldata; {$ Externalsym iinternetprotocolsink} IinternetProtocolsink = интерфейс; {$ Externalsym iinternetprotocolroot} IinternetProtocolRoot = интерфейс ['{79EAC9E3-BAF9-11CE-8C82-00AA004BA90B}'] Запуск функции (szurl: lpcwstr; oiprotsink: iinternetprotocolsink; Oibindinfo: iinternetbindinfo; Функция Продолжайте (Const Protocoldata: Tprotocoldata): hResult; Функция прерван (hrreason: hresult; dwoptions: dword): hresult; Функция прекращена (Dwoptions: DWORD): HRESULT; Функция приостановлена: hResult; Функция резюме: hResult; конец; {$ Externalsym iinternetprotocol} IinternetProtocol = интерфейс (iiinternetProtocolRoot) ['{79EAC9E4-BAF9-11CE-8C82-00AA004BA90B}'] Функция Читает (PV: Pointer; CB: Ulong; Out Cbread: Ulong): hResult; Функция ища (dlibmove: laign_integer; dworigin: dword; out libnewposition: ularge_integer): hresult; Функция LockRequest (DWOPTIONS: DWORD): HRESULT; Функция разблокировки: hResult; конец; {$ Externalsym iinternetprotocolsink} IinternetProtocolsink = интерфейс ['{79EAC9E5-BAF9-11CE-8C82-00AA004BA90B}'] Функциональный переключатель (const protocoldata: tprotocoldata): hresult; Функциональный отчет -программный Функция отчетов. Функция ReportResult (Hrresult: HRESULT; Dwerror: DWORD; SZRESULT: LPCWSTR): HRESULT; конец; {$ Nodefine tlpcwstrarray} Tlpcwstrarray = массив [0..maxlongint div sizeof (lpcwstr) - 1] из LPCWStr; {$ Nodefine plpcwstrarray} Plpcwstrarray = ^tlpcwstrarray; {$ Externalsym iinternetSession} Iinternetsession = интерфейс ['{79EAC9E7-BAF9-11CE-8C82-00AA004BA90B}'] Функция RegistryNamespace (CF: IClassFactory; const clSID: tclsid; pwzprotocol: lpcwstr; CPATTERNS: Ulong; Функция unregisterNamespace (CF: iClassFactory; PSZProtocol: LPCWSTR): HRESULT; Function RegisterMimeFilter (cf: iClassFactory; const rclsid: tclsid; pwztype: lpcwstr): hresult; функция ungistermimefilter (cf: iClassFactory; pwzType: LPCWSTR): hResult; Функция CreateBinding (BC: ibindctx; Szurl: Lpcwstr; Unkouter: iunknown; out unk: iunknown; Out OinetProt: IinternetProtocol; Функция setSessionOption (dwoption: dword; pbuffer: pointer; dwbufferlength: dword; DWRESERVED: DWORD): HRESULT; Функция getSessionOption (dwoption: dword; pbuffer: pointer; var dwbufferlength: dword; DWRESERVED: DWORD): HRESULT; конец; {$ Externalsym cointernetgetsession} Функция CONENTERTETSESSESS (DWSessionMode: DWORD; var piinternetSession: iinternetSession; DWRESERVED: DWORD): HRESULT; тип {$ Externalsym iinternetsecuritymgrsite} Iinternetsecuritymgrsite = интерфейс ['{79EAC9ED-BAF9-11CE-8C82-00AA004BA90B}'] Функция GetWindow (Out Hwnd: Hwnd): hResult; Функция EnableMod (Fenable: Bool): hResult; конец; констант {$ Externalsym max_size_security_id} Max_size_security_id = 512; // mapurltozone возвращает индекс зоны, полученный URL {$ Externalsym puaf_default} Puaf_default = $ 00000000; {$ Externalsym puaf_noui} Puaf_noui = $ 00000001; {$ Externalsym puaf_isfile} Puaf_isfile = $ 00000002; {$ Externalsym puaf_warn_if_denied} Puaf_warn_if_denied = $ 00000004; {$ Externalsym puaf_forceui_foreground} Puaf_forceui_foreground = $ 0000008; {$ Externalsym puaf_check_tifs} Puaf_check_tifs = $ 00000010; // Это функция обертки, которую большинство клиентов будут использовать. // он выясняет текущую политику для принятия в действии, // и выкладывает пользовательский интерфейс, если текущая политика указывает на то, что пользователь // следует запрашивать. // будет использовать, чтобы определить, должно ли действие быть разрешено // Это функция обертки для удобного чтения пользовательской политики. // setzonemapp // lpszpattern: строка, обозначающая узор URL -адреса // Примеры достоверных шаблонов: // *: //*.msn.com // http: //*.sony.co.jp // *: //et.msn.com // ftp://157.54.23.41/ // https: // localsvr // файл:/localsvr/share // *: //157.54.100-200.* // Примеры неверных паттернов: // http: //*.lcs.mit.edu // ftp: //* // dwflags: значения szm_flags {$ Externalsym szm_create} Szm_create = $ 00000000; {$ Externalsym szm_delete} Szm_delete = $ 00000001; тип {$ Externalsym iinternetsecuritymanager} Iinternetsecuritymanager = интерфейс ['{79EAC9EE-BAF9-11CE-8C82-00AA004BA90B}'] Функция SetSecuritySite (сайт: iInternetSecurityMgrsite): hResult; Функция GetSecuritySite (out сайт: iinternetsecuritymgrsite): hresult; Функция mapurltozone (pwszurl: lpcwstr; out dwzone: dword; DWFLAGS: DWORD): HRESULT; Функция GetSeCurityId (pwszurl: LPCWSTR; PBSecurityId: Pointer; var cbsecurityid: dword; Функциональный процесс (Pwszurl: LPCWSTR; DWACTION: DWORD; Ppolicy: указатель; DWFLAGS, DWRESERVED: DWORD): HRESULT; Функциональная QueryCustompolicy (pwszurl: LPCWSTR; Const Guidekey: TGUID; Out Ppolicy: указатель; DWRESERVED: DWORD): HRESULT; Функция setzonemapping (dwzone: dword; lpszpattern: lpcwstr; DWFLAGS: DWORD): HRESULT; Функция getzonemappings (dwzone: dword; out enumstring: ienumstring; DWFLAGS: DWORD): HRESULT; конец; {$ Externalsym iinternethostsecuritymanager} IinternethostSecurityManager = интерфейс ['{3AF280B6-CB3F-11D0-891E-00C04FB6BFC4}'] Функция GetSeCurityId (PBSecurityId: Pointer; var cbsecurityId: dword; DWRESERVED: DWORD): HRESULT; Функциональный процесс обработки (dwaction: dword; ppolicy: pointer; cbpolicy: dword; Pcontext: Pointer; Функциональная QueryCustompolicy (const guidekey: tguid; out ppolicy: pointer; out cbpolicy: dword; Pcontext: Pointer; конец; констант {$ 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_authenticate_cleartext_ok = $ 00000000; {$ Externalsym urlpolicy_authenticate_challenge_response} Urlpolicy_authenticate_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; {$ Externalsym urlpolicy_java_high} Urlpolicy_java_high = $ 00010000; {$ Externalsym urlpolicy_java_medium} Urlpolicy_java_medium = $ 00020000; {$ Externalsym urlpolicy_java_low} Urlpolicy_java_low = $ 00030000; {$ Externalsym 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; // Следующие действия в области информации не должны иметь политики по умолчанию // в реестре. // Вернуться к глобальному ограничению. // зона, затем переопределяет глобальное ограничение. {$ 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; тип 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; конец; 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. тип {$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; конец; // 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; Выполнение 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; конец. |