Articles sur la solution pour filtrer soigneusement IE sous VC:
http://blog.csdn.net/111222/archive/2002/02/09/7255.aspx
Pour la mise en œuvre de Delphi, il y a une unité PAS:
unité ieConst; interface Utilise 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_TRIEDITCOMANDGROUP: TGUID = '{2582F1C0-084E-11D1-9A0E-006097C9B344}'; Cmdsetid_forms3: tGuid = '{de4ba900-59ca-11cf-9592-444553540000}'; IID_IQUERYInfo: 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_DONTPROPTUSER = OLECMDEXECOPT_DONTPROPTUSER; Inchtométrique = 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; // en mode navigateur Context_menu_textSelect = 4; Context_menu_anchor = 5; Context_menu_unknown = 6; // ces 2 sont mappés pour l'image pour le public ") 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; Dochostuptuitype_browse = 0; Dochostuptuitype_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_auto-complete = 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_alignntop = 6; Idm_alignVerticalCenters = 7; Idm_arrangebottom = 8; IDM_ArrangerIght = 9; Idm_bringForward = 10; Idm_bringtofront = 11; Idm_centerhorizontally = 12; Idm_centervertical = 13; Idm_code = 14; Idm_delete = 17; Idm_fontname = 18; Idm_fontSize = 19; Idm_group = 20; Idm_horizspaceCaCatenate = 21; IDM_HORIZSPACEDECHED = 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_VERTSPACECACATENATE = 46; IDM_VERTSPACEDECHERD = 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_JustifyCenter = 57; IDM_JustifyGeneral = 58; IDM_JustifyLeft = 59; IDM_JustifyRight = 60; IDM_RAISED = 61; Idm_sunken = 62; Idm_underline = 63; Idm_chiseled = 64; Idm_esched = 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_customalizetem = 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_insInpupUpload = 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_zoompopup = 2140; // idm_baselinefont1, idm_baselinefont2, idm_baselinefont3, idm_baselinefont4, // et idm_baselinefont5 devraient être des entiers consécutifs; // 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_incfontize = 2242; Idm_decfontsize = 2243; Idm_incfontsize1pt = 2244; Idm_decfontsize1pt = 2245; Idm_changecase = 2246; Idm_subscript = 2247; Idm_superscript = 2248; Idm_showspecialchar = 2249; IDM_CENDERATINIGNPARA = 2250; Idm_leftalignPara = 2251; Idm_rightalignpara = 2252; Idm_removeParaFormat = 2253; Idm_applyNormal = 2254; Idm_applyHeash1 = 2255; IDM_ApplyHeading2 = 2256; IDM_ApplyHeash3 = 2257; Idm_docproperties = 2260; IDM_ADDFAVORTIES = 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_insInputPassword = 2313; Idm_overwrite = 2314; Idm_parsecomplete = 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_NOACTIVEDESIGNTIMECONTROLS = 2333; Idm_noactivateJavaApplets = 2334; Idm_showwbrtags = 2340; Idm_persiststreAmSync = 2341; Idm_setdirty = 2342; Idm_mimecset__first__ = 3609; Idm_mimecset__last__ = 3640; Idm_muext_first__ = 3700; Idm_muext_last__ = 3732; Idm_muext_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_zoombercent = 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_constain = 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_mergells = 18; Idm_tried_splitcell = 19; Idm_tried_insertCell = 20; IDM_TRIED_DELETECELLS = 21; Idm_tried_insertTable = 22; // AVERTISSEMENT AVERTISSEMENT AVERTISSEMENT !!! // Lorsque vous ajoutez de nouveaux ID de commande Idm_tried_last_cid = idm_tried_insertTable; CLSID_WEBBROWNSER: TGUID = '{ED016940-BD5B-11CF-BA4E-00C04FD70816}'; taper Pdochostuiinfo = ^ tdochostuiinfo; Tdochostuiinfo = enregistrement CBSIZE: Ulong; dwflags: dword; dwdoubleClick: dword; Chhostcss: Polestr; Chhostns: Polestr; fin; IdochostShowui = Interface (iunknown) ['{C4D244B0-D43E-11CF-893B-00AA00BDCE1A}'] Fonction ShowMessage (HWND: Thandle; lpstrText: Polestr; lptrcaption: Polestr; DWTYPE: LONGINT; var plresult: lresult): hresult; fonction showhelp (hwnd: thandle; pszhelpfile: polestr; ucommand: entier; dwdata: longint; var pDispatchObjectThit: idispatch): hResult; fin; Idochostuihandler = interface (iunknown) ['{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}'] fonction showContextMenu (const dwid: dword; const ppt: ppoint; const pcmdtreServed: iunknown; Fonction Gethostinfo (var pinfo: tdochostuiinfo): hResult; fonction showui (const dwid: dword; const pactiveObject: ioleInplaceActiveObject; const pcommandtarget: iolecommandtarget; const pframe: ioleInplaceFrame; const pdoc: ioleinplaceuiwindow): hresult; Fonction Hideui: Hresult; Function UpdateUI: HRESULT; FONCTION INABLIBRE SANS (CONSABLE: BOOL): HRESULT; Fonction OnDocwindowActivate (const Factive: bool): hResult; Fonction surframewindowActivate (const factivate: bool): hResult; Fonction ResizeBorder (const Prcborder: PRECT; Const Puiwindow: IoleinplaceUiwindow; const framewindow: bool): hresult; Fonction TranslateAccelerator (const lpmsg: pmsg; const puidcmdgroup: pGuid; const ncmDid: dword): hResult; fonction getOptionKeyPath (var pchkey: polestr; const dw: dword): hResult; fonction getDropTarget (const pdroptarget: idroptarget; out ppdroptarget: idroptarget): hResult; fonction getExternal (out ppdispatch: idispatch): hResult; Fonction TranslateUrl (const dwtranslate: dword; const pchurlin: polestr; var ppchurlout: polestr): hresult; fonction filterDataObject (const pDo: idataObject; out ppdoret: idataObject): hresult; fin; Idochostuihandler2 = interface (iunknown) ['{3050f6d0-98b5-11cf-bb82-00aa00bdce0b}'] Fonction GetoverrideKeyPath (Pchkey: Polestr; DW: DWORD): HRESULT; fin; const Iid_iuniformesourcelocatora: tGuid = ( D1: $ FBF23B80; D2: $ E3F0; D3: 101B; Iid_iuniformesourcelocatorw: tGuid = ( D1: $ CABB0DA0; D2: $ DA57; D3: 11CF; {$ Ifdef Unicode} Iid_iuniformesourcelocator: tGuid = ( D1: $ CABB0DA0; D2: $ DA57; D3: 11CF; {$ Else} Iid_iuniformesourcelocator: tGuid = ( D1: $ FBF23B80; D2: $ E3F0; D3: 101B; {$ Endif} const ClSid_internetShortcut: tGuid = ( D1: $ FBF23B40; D2: $ E3F0; D3: 101B; Sid_iUniformesResourcelocatora = '{FBF23B80-E3F0-101B-8488-00AA003E56F8}'; Sid_iUniformesResourcelocatorw = '{CABB0DA0-DA57-11CF-9974-0020AFD79762}'; {$ Ifdef Unicode} Sid_iUniformesResourcelocator = sid_iUniformesResourcelocatorw; {$ Else} Sid_iUniformesResourcelocator = SID_IUniformesResourcelocatora; {$ Endif} Iurl_seturl_fl_guess_protocol = $ 0001; Iurl_seturl_fl_use_default_protocol = $ 0002; Iurl_invokecommand_fl_allow_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; taper Purlinvokecommandinfoa = ^ turlinvokecommandinfoa; Turlinvokecommandinfoa = record DWCBSIZE: DWORD; dwflags: dword; hwndparent: hwnd; PCSZVERB: lpcstr; // verbe à invoquer. fin; Purlinvokecommandinfow = ^ turlinvokecommandinfow; Turlinvokecommandinfow = enregistrer DWCBSIZE: DWORD; dwflags: dword; hwndparent: hwnd; PCSZVERB: lpcwstr; fin; {$ Ifdef Unicode} Purlinvokecommandinfo = ^ turlinvokecommandinfow; Turlinvokecommandinfo = turlinvokecommandinfow; {$ Else} Purlinvokecommandinfo = ^ turlinvokecommandinfoa; Turlinvokecommandinfo = turlinvokecommandinfoa; {$ Endif} Iuniformesourcelocatora = interface (iunknown) [SID_IUniformesourcelocatora] fonction setUrl (pcszurl: lpcstr; dwinflags: dword): hResult; Fonction GetUrl (ppszurl: LPSTR): HRESULT; Fonction Invokecommand (Purlici: PurLinvokeCommandInfoa): HRESULT; fin; Iuniformesourcelocatorw = interface (iunknown) [Sid_iUniformesourcelocatorw] fonction setUrl (pcszurl: lpcwstr; dwinflags: dword): hResult; Fonction GetUrl (ppszurl: lpwstr): hResult; Fonction Invokecommand (Purlici: PurLinvokeCommandInfow): HRESULT; fin; {$ Ifdef Unicode} Iuniformesourcelocator = iuniformesourcelocatorw; {$ Else} Iuniformesourcelocator = iuniformesourcelocatora; {$ Endif} Fonction TranslateUrla (PCSZURL: LPCSTR; DWINFLAGS: DWORD; ppszTranslatedUrl: LPSTR): HRESULT; Fonction TranslateUrlw (PCSZURL: LPCWSTR; DWINFLAGS: DWORD; ppszTranslatedUrl: lpwstr): hresult; {$ Ifdef Unicode} Fonction TranslateUrl (PCSZURL: LPCWSTR; DWINFLAGS: DWORD; ppszTranslatedUrl: lpwstr): hresult; {$ Else} Fonction TranslateUrl (PCSZURL: LPCSTR; DWINFLAGS: DWORD; ppszTranslatedUrl: LPSTR): HRESULT; {$ Endif} Fonction UrlassociationDialoga (Hwndparent: HWND; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; PCSZURL: LPCSTR; PSZAppBUF: LPSTR; ucappBuflen: uint): hresult; Fonction UrlassociationDialogw (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; PCSZURL: LPCWSTR; pszappbuf: lpwstr; ucappBuflen: uint): hresult; {$ Ifdef Unicode} Fonction UrlassociationDialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; PCSZURL: LPCWSTR; pszappbuf: lpwstr; ucappBuflen: uint): hresult; {$ Else} Fonction UrlassociationDialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; PCSZURL: LPCSTR; PSZAppBUF: LPSTR; ucappBuflen: uint): hresult; {$ Endif} fonction mimeassiationdialoga (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; pcszmimeContentType: lpcstr; PSZAppBUF: LPSTR; ucappBuflen: uint): hresult; fonction mimeassociationdialogw (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; pcszmimeContentType: lpcwstr; pszappbuf: lpwstr; ucappBuflen: uint): hresult; {$ Ifdef Unicode} fonction mimeassociationdialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCWSTR; pcszmimeContentType: lpcwstr; pszappbuf: lpwstr; ucappBuflen: uint): hresult; {$ Else} fonction mimeassociationdialog (hwndparent: hwnd; DWINFLAGS: DWORD; PCSZFILE: LPCSTR; pcszmimeContentType: lpcstr; PSZAppBUF: LPSTR; ucappBuflen: uint): hresult; {$ Endif} Fonction 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_iiinternThostSecurityManager: tGuid = '{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'; Iid_iiinternetzonemanager: tguid = '{79EAC9EF-BAF9-11CE-8C82-00AA004BA90B}'; taper Turlzonereg = ulong; Pbindinfo = ^ tbindinfo; _tagbindinfo = enregistrement emballé 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: Iunknown; dwreserved: dword; fin; TbindInfo = _TagBindInfo; BindInfo = _tagBindInfo; {$ Nodefine polestrarray} PolestraRray = ^ TolestraRray; {$ Nodefine tolestraRray} TolestraRray = array [0..maxlongint div sizeof (polestr) - 1] de polestr; {$ Externalsym iinternetbindinfo} Iinternetbindinfo = interface ['{79EAC9E1-BAF9-11CE-8C82-00AA004BA90B}'] fonction getBindInfo (out grfbindf: dword; var bindInfo: tbindInfo): hResult; fonction getbindstring (ulstringType: ulong; wzstr: polestrarray; cel: ulong; var celtended: ulong): hresult; fin; Pprotocoldata = ^ tprotocoldata; {$ Externalsym _tagprotocoldata} _tagprotocoldata = enregistrement emballé Grfflags: DWORD; dwstate: dword; pdata: pointeur; cbdata: ulong; fin; Tprotocoldata = _tagprotocoldata; {$ Externalsym _tagprotocoldata} ProtoData = _TagProtoColdata; {$ Externalsym iinternetprotocolsink} IinternetProtoColsink = interface; {$ Externalsym iinternetprotocolroot} IinternetProtoColRoot = interface ['{79EAC9E3-BAF9-11CE-8C82-00AA004BA90B}'] Fonction Start (Szurl: lpcwstr; oiprotSink: iinternTprotoColSink; OibinDinfo: iinternetbindinfo; La fonction continue (const protocoldata: tprotocoldata): hResult; Fonction ABORD (HRRREASE: HRESULT; DWOPTIONS: DWORD): HRESULT; Fonction Terminée (DWOPTIONS: DWORD): HRESULT; Fonction Suspende: HRESULT; CV de la fonction: HRESULT; fin; {$ Externalsym iinternetprotocol} IInternetProtoCol = Interface (iiinternetprotocolroot) ['{79EAC9E4-BAF9-11CE-8C82-00AA004BA90B}'] Fonction Read (PV: Pointer; CB: Ulong; Out CBread: Ulong): HRESULT; Fonction Seek (dlibmove: Large_integer; Dworigin: dword; out libNewPosition: ularge_integer): hResult; Fonction LockRequest (Dwoptions: DWORD): HRESULT; Fonction UnlockRequest: HRESULT; fin; {$ Externalsym iinternetprotocolsink} IinternetProtoColSink = interface ['{79EAC9E5-BAF9-11CE-8C82-00AA004BA90B}'] Commutateur de fonction (const protocoldata: tprotocoldata): hResult; Fonction ReportProgress (UlStaturcode: Ulong; SzStatustext: LPCWSTR): HRESULT; Fonction ReportData (GRFBSCF: DWORD; UlProgress, UlProgressMax: Ulong): HRESULT; Fonction ReportResult (HRRESULT: HRESULT; DWERROR: DWORD; SZRESULT: LPCWSTR): HRESULT; fin; {$ Nodefine tlpcwstrarray} TlpcwstrArray = array [0..maxLongInt div sizeof (lpcwstr) - 1] de lpcwstr; {$ Nodefine plpcwstrarray} PlpcwstrArray = ^ tlpcwstrArray; {$ Externalsym iinternetSession} IinternetSession = interface ['{79EAC9E7-BAF9-11CE-8C82-00AA004BA90B}'] Fonction RegisterNamespace (CF: iclassfactory; const clsid: tclsid; pwzprotocol: lpcwstr; cpatterns: ulong; const pwzpatterns: plpcwstrArray; fonction UnregisterNamespace (CF: iclassfactory; pszprotocol: lpcwstr): hResult; Fonction RegisterMimeFilter (CF: iclassfactory; const rclsid: tclsid; PWZTYPE: LPCWSTR): HRESULT; fonction UnregisterMimeFilter (CF: iclassfactory; pwzType: lpcwstr): hResult; Fonction CreateBinding (BC: ibindctx; szurl: lpcwstr; unkouter: iunknown; out unk: iunknown; Out Oinetprot: iinternTprotocol; Fonction setSessionOption (dwoption: dword; pbuffer: pointeur; dwbufferLength: dword; dwreserved: dword): hResult; function getSessionOption (dwoption: dword; pBuffer: pointer; var dwbufferLength: dword; dwreserved: dword): hResult; fin; {$ Externalsym CointerNetGetSession} fonction CointerNetGetSession (dwSessionMode: dword; var piinternetSession: iinternetSession; dwreserved: dword): hResult; taper {$ Externalsym iinternetsecuritymgrsite} IinternetECurityMgrsite = interface ['{79EAC9ED-BAF9-11CE-8C82-00AA004BA90B}'] fonction getwindow (out hwnd: hwnd): hresult; Fonction Implacemodless (Fenable: Bool): HRESULT; fin; const {$ Externalsym max_size_security_id} Max_size_security_id = 512; // mapurltozone renvoie l'indice de zone étant donné une URL {$ Externalsym puaf_default} Puaf_default = 00000000 $; {$ Externalsym puaf_noui} Puaf_noui = 00000001; {$ Externalsym puaf_isfile} Puaf_isfile = 00000002; {$ Externalsym puaf_warn_if_dened} PUAF_WARN_IF_DENIED = $ 00000004; {$ Externalsym puaf_forceui_foreground} Puaf_forceui_foreground = $ 0000008; {$ Externalsym puaf_check_tifs} PUAF_CHECK_TIFS = 00000010; // C'est la fonction de wrapper que la plupart des clients utiliseront. // il détermine la politique actuelle pour le passage en action, // et met en place une interface utilisateur si la stratégie actuelle indique que l'utilisateur // devrait être interrogé. // utilisera pour déterminer si l'action doit être autorisée // C'est la fonction de wrapper pour lire facilement une stratégie personnalisée. // setzonemapping // lpszpattern: chaîne dénotant un motif d'URL // Exemples de modèles valides: // *: //*.msn.com // http: //*.sony.co.jp // *: //et.msn.com // ftp://157.54.23.41/ // https: // localvr // fichier: / locauxvr / partage // *: //157.54.100-200.* // Exemples de modèles non valides: // http: //*.lcs.mit.edu // ftp: // * // dwflags: valeurs szm_flags {$ Externalsym szm_create} Szm_create = 00000000 $; {$ Externalsym szm_delete} Szm_delete = $ 00000001; taper {$ Externalsym iinternetsecuritymanager} IinternetECurityManager = interface ['{79EAC9EE-BAF9-11CE-8C82-00AA004BA90B}'] Fonction SetSecuritySite (site: iinternEtECurityMgrsite): HRESULT; Fonction GetSecuritySite (site out: iinternetECurityMgrsite): HRESULT; fonction mapurltozone (pwszurl: lpcwstr; out dwzone: dword; dwflags: dword): hResult; fonction getSecurityId (pwszurl: lpcwstr; pbSecurityId: pointeur; var cbsecurityId: dword; Fonction ProcessUrlaction (PWSZURL: LPCWSTR; DWACTION: DWORD; Ppolicy: pointeur; dwflags, dwreserved: dword): hresult; Function QueryCustomPolicy (PWSZURL: LPCWSTR; const GuidKey: TGUID; Out Ppolicy: Pointer; dwreserved: dword): hResult; fonction setzonemapping (dwzone: dword; lpszpattern: lpcwstr; dwflags: dword): hResult; fonction getzonemappings (dwzone: dword; out enumstring: ienumString; dwflags: dword): hResult; fin; {$ Externalsym iinternetHostSecurityManager} IinternThostSecurityManager = Interface ['{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'] fonction getSecurityId (pbSeCurity: pointeur; var cbSecurityId: dword; dwreserved: dword): hResult; Fonction ProcessUrlaction (dwaction: dword; ppolicy: pointeur; cbpolicy: dword; pcontext: pointeur; Fonction QueryCustomPolicy (const GuidKey: tGuid; out ppolicy: pointer; out cbpolicy: dword; pcontext: pointeur; fin; 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_crentials_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; // Les actions d'infodivery suivantes ne devraient avoir aucune stratégie par défaut // Dans le registre. // Retour à la restriction mondiale. // Zone, puis il remplace la restriction globale. {$ 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; taper 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; fin; 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. taper {$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; fin; // 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; Mise en œuvre 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; fin. |