Artigos sobre a solução para filtrar completamente o IE sob o VC:
http://blog.csdn.net/111222/archive/2002/02/09/7255.aspx
Para a implementação de Delphi, há uma unidade PAS:
unidade ieconst; interface usa Shlobj, ActiveX, Windows; const Iid_idochoSuiHandler: tguid = '{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}'; Iid_idochoSuiHandler2: 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-4445553540000}'; Iid_iCeryInfo: tguid = (d1: $ 00021500; d2: $ 0000; d3: $ 0000; d4: ($ c0, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ 46); Msocmdf_supportted = olecmdf_supported; Msocmdf_enabled = olecmdf_enabled; MsocmdexEcot_promptUser = olecmdexEcot_promptuser; MsocmdexEcopt_dontpromptUser = olecmdexEcopt_dontpromptUser; Inchtométrico = 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; // no modo de navegador Context_menu_textSelect = 4; Context_menu_anchor = 5; Context_menu_unknown = 6; // Estes 2 são mapeados para a imagem para o público ") Context_menu_imgdynsrc = 7; Context_menu_imgart = 8; Context_menu_debug = 9; Context_menu_vscroll = 10; Context_menu_hscroll = 11; DISCID_AMBIENT_DLCONTROL = (-5512); DISCID_AMBIENT_USERAGENT = (-5513); Htmlid_find = 1; Htmlid_viewSource = 2; Htmlid_options = 3; DochoSTUIDADEPE_BROWSE = 0; DocHostuitype_author = 1; DOCHOSTUIDBLCLK_DEFAULL = 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_BLOCKDEFAULL = $ 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_unknown = 0; Idm_alignbottom = 1; Idm_alignhorizontalCenters = 2; Idm_alignleft = 3; Idm_alignright = 4; Idm_alignntogrid = 5; Idm_alignntop = 6; Idm_alignverticalCenters = 7; Idm_arrangeBottom = 8; Idm_arrangeright = 9; Idm_bringForward = 10; Idm_bringtofront = 11; Idm_centerHorizontally = 12; Idm_centerverticticamente = 13; Idm_code = 14; Idm_delete = 17; Idm_fontname = 18; Idm_fontsize = 19; Idm_group = 20; Idm_horizspaceConCatenate = 21; Idm_horizspacedecrease = 22; Idm_horizspaceincrease = 23; Idm_horizspacemakeEqual = 24; Idm_insertObject = 25; Idm_multilevelDo = 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_vertspacedecrease = 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_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_zoompopup = 2140; // idm_baselinefont1, idm_baselinefont2, idm_baselinefont3, idm_baselinefont4, // e idm_baselinefont5 devem ser inteiros consecutivos; // 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_cellleclect = 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_centeralignpara = 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_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_showAltags = 2320; Idm_showalignedSiteTags = 2321; Idm_showscriptTags = 2322; Idm_showstyleTags = 2323; Idm_showCommenttags = 2324; Idm_showareatags = 2325; Idm_showunknowntogs = 2326; Idm_showmiscTags = 2327; Idm_showZoROBORDERATDESIGNTIME = 2328; Idm_autodetect = 2329; Idm_scriptDebugger = 2330; Idm_getBytesDownloaded = 2331; Idm_noactivatenormalolecontrols = 2332; Idm_noActivatedesignTimecontrols = 2333; Idm_noactivateJavaApplets = 2334; Idm_showwbbrtags = 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_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_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; // aviso de aviso !!! Não se esqueça de modificar o idm_tried_last_cid // Quando você adiciona novos IDs de comando Idm_tried_last_cid = idm_tried_inserttable; Clsid_webbrowser: tguid = '{ed016940-bd5b-11cf-Ba4e-00c04fd70816}'; tipo PdochoSuiinfo = ^tdochoSuiinfo; TdochoSuiinfo = registro CBSize: Ulong; dwflags: dword; dwdoubleleclick: dword; chhostcss: polest; Chhostns: polest; fim; IdochoStshowui = interface (iunknown) ['{c4d244b0-d43e-11cf-893b-00aa00bdce1a}'] Função ShowMessage (HWND: THANDLE; LPSTRTEXT: POLEST; LPSTRCAPTION: POLEST; dwtype: longnt; Var PlResult: lResult): HRESULT; Função ShowHelp (HWND: THANDLE; PSZHELPFILE: POLEST; UCMAND: INTEGER; dwdata: longnt; var pdispatchobjecthit: idispatch): hRESULT; fim; Idochotuihandler = interface (iunknown) ['{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}'] função showContextMenu (const dwid: dword; const ppt: ppoint; const pcMdtreserved: iunknown; função gethostinfo (var pinfo: tdochotuiinfo): hRESULT; Função Showui (const dwid: dword; const pactiveObject: ioleinplaceActiveObject; const pcommandtarget: iolecommandTarget; const pdoc: ioleinplaceUiwindow): hRESULT; função hideui: hResult; Função Updateui: HRESULT; função enablemodless (const Fenable: bool): hRESULT; função ondocWindowActivate (const Factivate: bool): hRESULT; função onFrameWindowActivate (const Factivate: bool): hRESULT; função redimensionborder (const prcborder: prelect; Const Puiwindow: ioleinplaceUiwindow; const FrameWindow: bool): hRESULT; Função TranslateAccelerator (const LPMSG: PMSG; const pguidcmdGroup: pguid; const ncmdid: dword): hRESULT; função getOptionKeypath (var pchkey: polest; const dw: dword): hRESULT; função getDropTarget (const pdropTarget: iDropTarget; out ppdropTarget: iDropTarget): hRESULT; função getExternal (fora ppdispatch: idispatch): hRESULT; Função Tradrateurl (const dwtranslate: dword; const pchurlin: polest; var ppchurlout: polest): hResult; função filterDataObject (const pdo: idataObject; out ppdoret: idataObject): hRESULT; fim; IdochotuiHandler2 = interface (iunknown) ['{3050F6D0-98B5-11CF-BB82-00AA00BDCE0B}'] função getOverrideKeypath (PCHKEY: POLEST; DW: DWORD): HRESULT; fim; const Iid_iuniformResourcelocatora: tguid = ( D1: $ FBF23B80; Iid_iuniformResourcelocatorw: tguid = ( D1: $ CABB0DA0; {$ Ifdef Unicode} Iid_iuniformResourcelocator: tguid = ( D1: $ CABB0DA0; {$ Else} 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; {$ Else} Sid_iuniformResourcelocator = sid_iuniformResourcelocatora; {$ 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; TRANKURL_FL_GUESS_PROTOCOL = $ 0001; TRANKURL_FL_USE_DEFAULT_PROTOCOL = $ 0002; Urlassocdlg_fl_use_default_name = $ 0001; Urlassocdlg_fl_register_assoc = $ 0002; MIMESOSOCDLG_FL_REGISTER_ASSOC = $ 0001; tipo PurlinVokecommandinfoa = ^TurlinVokecommandinfoa; Turlinvokecommandinfoa = registro dwcbsize: dword; dwflags: DWORD; HWNDPARENT: HWND; PCSZVERB: LPCSTR; fim; PurlinVokecommandinfow = ^TurlinVokecommandinfow; TurlinVokecommandinfow = registro dwcbsize: dword; dwflags: DWORD; HWNDPARENT: HWND; PCSZVERB: LPCWSTR; // Verbo para invocar. fim; {$ Ifdef Unicode} PurlinVokecommandinfo = ^TurlinVokecommandinfow; TurlinVokecommandinfo = TurlinVokecommandinfow; {$ Else} PurlinVokecommandinfo = ^TurlinVokecommandinfoa; TurlinVokecommandinfo = TurlinVokecommandinfoa; {$ Endif} IuniformResourcelocatora = interface (iunknown) [Sid_iuniformResourcelocatora] função seturl (pcszurl: lpcstr; dwinflags: dword): hresult; função geturl (ppszurl: lpstr): hResult; Função Invokecommand (Purlici: PurlinVokecommandinfoa): HRESULT; fim; IuniformResourcelocatorw = interface (iunknown) [Sid_iuniformResourcelocatorw] função seturl (pcszurl: lpcwstr; dwinflags: dword): hresult; função geturl (ppszurl: lpwstr): hRESULT; Função Invokecommand (Purlici: PurlinVokecommandinfow): HRESULT; fim; {$ Ifdef Unicode} IuniformResourcelocator = iuniformResourcelocatorw; {$ Else} IuniformResourcelocator = iuniformResourcelocatora; {$ Endif} Função Tradrateurla (PCSZURL: LPCSTR; dwinflags: dword; ppsztranslatedurl: lpstr): hRESULT; Função TradrateUrlw (PCSZURL: LPCWSTR; dwinflags: dword; ppsztranslatedurl: lpwstr): hRESULT; {$ Ifdef Unicode} Função Tradrateurl (PCSZURL: LPCWSTR; dwinflags: dword; ppsztranslatedurl: lpwstr): hRESULT; {$ Else} Função Tradrateurl (PCSZURL: LPCSTR; dwinflags: dword; ppsztranslatedurl: lpstr): hRESULT; {$ Endif} função urlassociationDialoga (hwndParent: hwnd; dwinflags: dword; PCSZFILE: LPCSTR; PCSZURL: LPCSTR; PSZAPPBUF: LPSTR; UCAPPBUFLEN: UINT): HRESULT; função urLassociationDialogw (hwndParent: hwnD; dwinflags: dword; PCSZFILE: LPCWSTR; PCSZURL: LPCWSTR; PSZAPPBUF: LPWSTR; UCAPPBUFLEN: UINT): HRESULT; {$ Ifdef Unicode} função urlassociationDialog (hwndParent: hwnd; dwinflags: dword; PCSZFILE: LPCWSTR; PCSZURL: LPCWSTR; PSZAPPBUF: LPWSTR; UCAPPBUFLEN: UINT): HRESULT; {$ Else} função urlassociationDialog (hwndParent: hwnd; dwinflags: dword; PCSZFILE: LPCSTR; PCSZURL: LPCSTR; PSZAPPBUF: LPSTR; UCAPPBUFLEN: UINT): HRESULT; {$ Endif} Função MIMESSOCIATIONDIALOGA (HWNDPARENT: HWND; dwinflags: dword; PCSZFILE: LPCSTR; PCSZMIMECONTENTTYPE: LPCSTR; PSZAPPBUF: LPSTR; UCAPPBUFLEN: UINT): HRESULT; Função MIMESSOCIATIONDIALOGW (HWNDPARENT: HWND; dwinflags: dword; PCSZFILE: LPCWSTR; PCSZMIMECONTENTTYPE: LPCWSTR; PSZAPPBUF: LPWSTR; UCAPPBUFLEN: UINT): HRESULT; {$ Ifdef Unicode} Função MIMESSOCIATIONDIALOG (HWNDPARENT: HWND; dwinflags: dword; PCSZFILE: LPCWSTR; PCSZMIMECONTENTTYPE: LPCWSTR; PSZAPPBUF: LPWSTR; UCAPPBUFLEN: UINT): HRESULT; {$ Else} Função MIMESSOCIATIONDIALOG (HWNDPARENT: HWND; dwinflags: dword; PCSZFILE: LPCSTR; PCSZMIMECONTENTTYPE: LPCSTR; PSZAPPBUF: LPSTR; UCAPPBUFLEN: UINT): HRESULT; {$ Endif} função inetisoffline (dwflags: dword): bool; {$ Ifdef ver120} const Iid_iiinternetSession: tguid = '{79eAc9e7-BAF9-11CE-8C82-00AA004BA90B}'; Iid_iiinternetSecurityMgrsite: tguid = '{79eAc9ed-BAF9-11CE-8C82-00AAA004BA90B}'; Iid_iiinternetSecurityManager: tguid = '{79eAc9ee-BAF9-11CE-8C82-00AA004BA90B}'; Iid_iiinterThostSecurityManager: tguid = '{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'; Sid_iiinternetSecurityManager: tguid = '{79eAc9ee-BAF9-11CE-8C82-00AA004BA90B}'; Sid_iiinterThostSecurityManager: tguid = '{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'; Iid_iiinternetZoneManager: tguid = '{79eAc9ef-BAF9-11CE-8C82-00AA004BA90B}'; tipo Turlzonereg = Ulong; Pbindinfo = ^tbindinfo; _Tagbindinfo = registro embalado 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; DRERAVERADO: DWORD; fim; Tbindinfo = _Tagbindinfo; Bindinfo = _TagBindinfo; {$ Nodefine polestraRray} PolestRray = ^TolestRray; {$ Nodefine TolestRray} TolestRray = Array [0..MaxlongInt Div Sizeof (POLEST) - 1] de Polestr; {$ Externalsym iinternetbindinfo} Iinternetbindinfo = interface ['{79EAC9E1-BAF9-11CE-8C82-00AA004BA90B}'] função getBindinfo (out grfbindf: dword; var bindinfo: tbindinfo): hRESULT; função getBindString (UlStringType: ULONG; WZSTR: POLESTRARRAY; CEL: ULONG; Var Celfetched: Ulong): HRESULT; fim; Pprotocoldata = ^tprotocoldata; {$ ExternalSym _TagProtocoldata} _TagProtocoldata = registro embalado grfflags: dword; dwState: dword; pdata: ponteiro; cbdata: Ulong; fim; Tprotocoldata = _TagProtocoldata; {$ ExternalSym _TagProtocoldata} Protocoldata = _tagprotocoldata; {$ ExternalSym iinternetProtocolSink} IinternetProtocolSink = interface; {$ ExternalSym iinternetProtocolroot} IinternetProtocolroot = interface ['{79EAC9E3-BAF9-11CE-8C82-00AA004BA90B}'] Função Iniciar (Szurl: LPCWSTR; OIPROTSink: iinternetProtocolSink; Oibindinfo: iinternetbindinfo; Função Continue (Const Protocoldata: TProtocoldata): HRESULT; função abortar (HRROUSH: HRESULT; DWOPTIONS: DWORD): HRESULT; Função termina (dwOptions: DWORD): hRESULT; função suspenda: hRESULT; função currículo: hRESULT; fim; {$ ExternalSym iinternetProtocol} IinternetProtocol = interface (iiinternetProtocolroot) ['{79EAC9E4-BAF9-11CE-8C82-00AA004BA90B}'] Função Leia (PV: Ponteiro; CB: Ulong; Out CBread: Ulong): HRESULT; Função Busca (DlibMove: Large_Integer; Dworigin: DWORD; OUT LIBNEWPOSIÇÃO: ULARGE_INTEGER): HRESULT; Função LockRequest (DWOPTIONS: DWORD): HRESULT; função desblockRequest: hResult; fim; {$ ExternalSym iinternetProtocolSink} IinternetProtocolSink = interface ['{79EAC9E5-BAF9-11CE-8C82-00AA004BA90B}'] Switch de função (Protocoldata const: tprotocoldata): hRESULT; Relatório da funçãoProgress (Ulstatuscode: Ulong; Szstatustext: LPCWSTR): HRESULT; Função RelatórioData (GRFBSCF: DWORD; ULPROGRESS, ULPROGRESSMAX: ULONG): HRESULT; Função REPORTRESULT (HRRESULT: HRESULT; DWERROR: DWORD; SZRESULT: LPCWSTR): HRESULT; fim; {$ Nodefine tlpcwstray} TlpcwstraRray = matriz [0..maxlongint div sizeof (lpcwstr) - 1] de lpcwstr; {$ NodeFine PLPCWSTRARAY} PLPCWSTRARAY = ^TLPCWSTARRAY; {$ Externalsym iinternetssession} IinternetSession = interface ['{79EAC9E7-BAF9-11CE-8C82-00AA004BA90B}'] Função Registernamespace (cf: iclassFactory; const clsid: tclsid; pwzprotocol: lpcwstr; cpatterns: Ulong; função não registradora (cf: iclassFactory; pszprotocol: lpcwstr): hRESULT; Função RegisterMimeFilter (cf: iclassFactory; const rclsid: tclsid; pwztype: LPCWSTR): HRESULT; função não registradora (cf: iclassFactory; pwztype: lpcwstr): hRESULT; função createbinding (bc: ibindctx; szurl: lpcwstr; unkouter: iunknown; out Unk: iunknown; OinetProt: iinternetProtocol; Função SetSessionOption (DwOption: DWORD; PBUFFER: POINTER; DwBufferLength: DWORD; Dwrader: DWORD): HRESULT; função getSessionOption (dwOption: dword; pbuffer: ponteiro; var dwbufferLength: dword; Dwrader: DWORD): HRESULT; fim; {$ ExternalSym CoInternetGetSession} função CoInternetGetSession (dwSessionMode: dWord; var piinternetSession: iinternetssession; Dwrader: DWORD): HRESULT; tipo {$ ExternalSym iinternetSecurityMgrsite} IinternetSecurityMgrsite = interface ['{79eAc9ed-BAF9-11CE-8C82-00AA004BA90B}'] função getwindow (out hwnd: hwnd): hRESULT; Função Enablemodless (Fenable: Bool): HRESULT; fim; const {$ Externalsym max_size_security_id} Max_size_security_id = 512; // mapurltozone retorna o índice de zona dado um URL {$ Externalsym puf_default} PuAf_Default = $ 00000000; {$ Externalsym puf_noui} Puaf_noui = $ 00000001; {$ Externalsym puaf_isfile} PuAf_isfile = $ 00000002; {$ Externalsym puaf_warn_if_denied} Puaf_warn_if_denied = $ 00000004; {$ Externalsym puf_forceui_foreground} PuAf_forceui_foreground = $ 0000008; {$ Externalsym puf_check_tifs} Puaf_check_tifs = $ 00000010; // Esta é a função de invólucro que a maioria dos clientes usará. // Descobra a política atual para a ação aprovada, // e coloca a interface do usuário se a política atual indicar que o usuário // deve ser consultado. // usará para determinar se a ação deve ser permitida // Esta é a função Wrapper para ler convenientemente uma política personalizada. // setZoneMapping // lpszpattern: string indicando um padrão de URL // Exemplos de padrões válidos: // *: //*.msn.com // http: //*.sony.co.jp // *: //et.msn.com // ftp://157.54.23.41/ // https: // Localsvr // Arquivo:/LocalsVR/Share // *: //157.54.100-200.* // Exemplos de padrões inválidos: // http: //*.lcs.mit.edu // ftp: //* // dwflags: szm_flags valores {$ Externalsym szm_create} Szm_create = $ 00000000; {$ Externalsym szm_delete} Szm_delete = $ 00000001; tipo {$ ExternalSym iinternetSecurityManager} IinternetSecurityManager = interface ['{79EAC9EE-BAF9-11CE-8C82-00AA004BA90B}'] Função SetSecuritySite (Site: iinternetSecurityMgrsite): HRESULT; Função GetSecuritySite (Site OUT: iinternetSecurityMgrsite): HRESULT; função mapurltozone (pwszurl: lpcwstr; out dwzone: dword; dwflags: dword): hRESULT; função getSecurityId (PWSZURL: LPCWSTR; PbSecurityId: Pointer; var cbSecurityID: DWORD; Função Processurlaction (PWSZURL: LPCWSTR; DWACION: DWORD; ppolicy: ponteiro; dwflags, DRERAVERED: DWORD): HRESULT; função querycustompolicy (pwszurl: lpcwstr; const guidkey: tguid; fora do ppolicy: ponteiro; Dwrader: DWORD): HRESULT; função setZoneMapping (dwzone: dword; lpszpattern: lpcwstr; dwflags: dword): hRESULT; função getZoneMappings (dwzone: dword; out enumstring: ienumstring; dwflags: dword): hRESULT; fim; {$ ExternalSym iinterNeThostSecurityManager} IinterThostSecurityManager = interface ['{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'] função getSecurityId (pbSecurityId: ponteiro; var cbSecurityId: dword; Dwrader: DWORD): HRESULT; Função Processurlação (Dwação: DWORD; PPolicy: Pointer; CBPolicy: DWORD; PCONTEXT: Ponteiro; função querycustompolicy (const guidkey: tguid; out ppolicy: pointer; out cbpolicy: dword; pcontext: ponteiro; fim; 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_authenticate_cleartext_ok = $ 00000000; {$ ExternalSym urlpolicy_authenticate_challenge_pressonse} 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; // As seguintes ações de infodelivery não devem ter políticas padrão // No registro. // de volta à restrição global. // zona, então substitui a restrição global. {$ 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; tipo 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; fim; 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. tipo {$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; fim; // 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; Implementação 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; fim. |