Artikel tentang solusi untuk memfilter secara menyeluruh IE di bawah VC:
http://blog.csdn.net/111222/archive/2002/02/09/7255.aspx
Untuk implementasi Delphi, ada unit PAS:
unit ieconst; antarmuka menggunakan shlobj, activex, windows; const IID_IDOCHOSTUIHINGLER: tguid = '{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}'; IID_IDOCHOSTUIHINGLER2: tguid = '{3050f6d0-98b5-11cf-bb82-00aa00bdce0b}'; Iid_idochostshowui: tguid = '{c4d244b0-d43e-11cf-893b-00aa00bdce1a}'; Guid_trieditcommandgroup: tguid = '{2582f1c0-084e-11d1-9a0e-006097c9b344}'; Cmdsetid_forms3: tguid = '{de4ba900-59ca-11cf-9592-444553540000}'; Iid_iqueryInfo: tguid = (d1: $ 00021500; d2: $ 0000; 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; // dalam mode browser Context_menu_textselect = 4; Context_menu_anchor = 5; Context_menu_unknown = 6; // 2 ini dipetakan ke gambar untuk publik ") Context_menu_imgdynsrc = 7; Context_menu_imgart = 8; Context_menu_debug = 9; Context_menu_vscroll = 10; Context_menu_hscroll = 11; Dispid_ambient_dlcontrol = (-5512); Dispid_ambient_useragent = (-5513); Htmlid_find = 1; Htmlid_viewsource = 2; Htmlid_options = 3; Dochostuitype_browse = 0; Dochostuitype_author = 1; Dochostuidblclk_default = 0; Dochostuidblclk_showproperties = 1; Dochostuidblclk_showcode = 2; Dochostuiflag_dialog = $ 0001; Dochostuiflag_disable_help_menu = $ 0002; Dochostuiflag_no3dborder = $ 0004; Dochostuiflag_scroll_no = $ 0008; Dochostuiflag_disable_script_inactive = $ 0010; Dochostuiflag_opennewwin = $ 0020; Dochostuiflag_disable_offscreen = $ 0040; Dochostuiflag_flat_scrollbar = $ 0080; Dochostuiflag_div_blockdefault = $ 0100; Dochostuiflag_activate_clienthit_only = $ 0200; Dochostuiflag_overridebehaviorfactory = $ 0400; Dochostuiflag_codepagelinkedfonts = $ 0800; Dochostuiflag_url_encoding_disable_utf8 = $ 1000; Dochostuiflag_url_encoding_enable_utf8 = $ 2000; Dochostuiflag_enable_forms_autocomplete = $ 4000; Dochostuiflag_enable_inplace_navigation = $ 10000; Dochostuiflag_ime_enable_reconversion = $ 20000; Idm_unknown = 0; Idm_alignbottom = 1; Idm_alignhorizontalcenter = 2; Idm_alignleft = 3; Idm_alignright = 4; Idm_aligntogrid = 5; Idm_aligntop = 6; Idm_alignverticalCenter = 7; Idm_arrangebottom = 8; Idm_arrangeright = 9; Idm_bringforward = 10; Idm_bringtofront = 11; Idm_centerhorizontally = 12; Idm_centervertically = 13; Idm_code = 14; Idm_delete = 17; Idm_fontname = 18; Idm_fontsize = 19; Idm_group = 20; Idm_horizspaceconcateNate = 21; Idm_horizspakedecrease = 22; Idm_horizspaceEncrease = 23; IDM_HorizspaceEqual = 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_VERTSPADECREASE = 47; IDM_VERTSPACEINCREASE = 48; IDM_VERTSPACEKEEQUAL = 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, // dan idm_baselinefont5 harus berupa bilangan bulat berturut -turut; // 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_prefformatted = 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_CENTERIGNPARA = 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_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_PERSISTREAMSYNC = 2341; Idm_setdirty = 2342; Idm_mimecset__first__ = 3609; IDM_MIMECSET__LAST__ = 3640; Idm_menuext_first__ = 3700; Idm_menuext_last__ = 3732; Idm_menuext_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; 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; // [dalam, vt_bool] 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; // [Dalam, VT_Array] // peringatan peringatan !!! // Saat Anda menambahkan id perintah baru Idm_tried_last_cid = idm_tried_insertTable; Clsid_webbrowser: tguid = '{ed016940-bd5b-11cf-ba4e-00c04fd70816}'; jenis Pdochostuiinfo = ^tdochoStUiinfo; Tdochostuiinfo = Rekam CBSIZE: Ulong; DWFLAGS: DWORD; dwdoubleclick: dword; Chhostcss: Polestr; Chhostns: Polestr; akhir; Idochostshowui = antarmuka (iunknown) ['{C4D244B0-D43E-11CF-893B-00AA00BDCE1A}'] Function Showmessage (hwnd: thandle; lpstrtext: polestr; lpstrcaption: polestr; dwtype: longint; var plresult: lResult): hResult; fungsi showhelp (hwnd: thandle; pszhelpfile: polestr; ucommand: integer; dwdata: longint; var Pdispatchobjecthit: Idispatch): hResult; akhir; IDochostuIhandler = antarmuka (iunknown) ['{BD3F23C0-D43E-11CF-893B-00AA00BDCE1A}'] function showContextMenu (const dwid: dword; const ppt: ppoint; const pcmdtreserved: iunknown; fungsi gethostinfo (var pinfo: tdochostUiinfo): hResult; fungsi showui (const dwid: dword; const pactiveObject: ioleINPLACEACTIVEObject; Const PcommandTarget: IoleCommandTarget; Const PDOC: IoleinPlaceUIWindow): HRESULT; fungsi hideui: hResult; function updateUi: hResult; fungsi enablemodeless (const fenable: bool): hResult; Fungsi ondocWindowActivate (Const Factivate: Bool): hResult; Fungsi OnFrameWindowActivate (Const Factivate: Bool): HRESULT; Fungsi Penyisihan Umpan Ulang (Const Prcborder: Prect; Const Puiwindow: IoleinPlaceUIWindow; const framewindow: bool): hResult; function translateaccelerator (const lpmsg: pmsg; const pguidcmdgroup: pGuid; const ncmdid: dword): hResult; fungsi getOptionKeypath (var pchkey: polestr; const dw: dword): hResult; fungsi getDropTarget (const PdropTarget: idroptarget; keluar ppdroptarget: idroptarget): hResult; fungsi getExternal (keluar ppdispatch: idispatch): hResult; fungsi translateUrl (const dwtranslate: dword; const pchurlin: polestr; var ppchurlout: polestr): hResult; function filterDataObject (const PDO: idataObject; Out ppdoret: idataObject): hResult; akhir; IDochostuIhandler2 = antarmuka (iunknown) ['{3050F6D0-98B5-11CF-BB82-00AA00BDCE0B}'] fungsi getoverridEypath (pchkey: polestr; dw: dword): hResult; akhir; const Iid_iuniformResourcelocatora: tguid = ( D1: $ FBF23B80; Iid_iuniformResourcelocatorw: tguid = ( D1: $ CAB0DA0; {$ Ifdef unicode} Iid_iuniformResourcelocator: tguid = ( D1: $ CAB0DA0; {$ 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; // Gunakan protokol default jika hilang IURL_INVOKECOMMAND_FL_ALLOW_UI = $ 0001; Iurl_invokecommand_fl_use_default_verb = $ 0002; // abaikan pcszverb IURL_INVOKECOMMAND_FL_DDEWAIT = $ 0004; TranslateUrl_fl_guess_protocol = $ 0001; // tebak protokol jika hilang TranslateUrl_fl_use_default_protocol = $ 0002; Urlassocdlg_fl_use_default_name = $ 0001; Urlassocdlg_fl_register_assoc = $ 0002; Mimeassocdlg_fl_register_assoc = $ 0001; jenis PurlinvokeCommandinfoa = ^TurlinvokeCommandinfoa; TurlinvokeCommandinfoa = Rekam DWCBSIZE: DWORD; // Ukuran Struktur DWFLAGS: DWORD; HWNDPARENT: HWND; pcszverb: lpcstr; // kata kerja untuk diabaikan. akhir; PurlinvokeCommandinfow = ^turlinvokeCommandinfow; TurlinvokeCommandinfow = Rekam DWCBSIZE: DWORD; // Ukuran Struktur DWFLAGS: DWORD; HWNDPARENT: HWND; pcszverb: lpcwstr; // kata kerja untuk diabaikan. akhir; {$ Ifdef unicode} PurlinvokeCommandinfo = ^turlinvokeCommandinfow; TurlinvokeCommandinfo = turlinvokeCommandinfow; {$ Else} PurlinvokeCommandinfo = ^turlinvokeCommandinfoa; TurlinvokeCommandinfo = turlinvokeCommandinfoa; {$ Endif} IuniformResourcelocatora = antarmuka (iunknown) [Sid_iuniformResourcelocatora] function setUrl (pcszurl: lpcstr; dwinflags: dword): hResult; function getUrl (ppszurl: LPSTR): hResult; Function Invokecommand (Purlici: PurlinvokeCommandinfoa): HRESULT; akhir; IuniformResourcelocatorw = antarmuka (iunknown) [Sid_iuniformResourcelocatorw] function setUrl (pcszurl: lpcwstr; dwinflags: dword): hResult; function getUrl (ppszurl: lpwstr): hResult; Function Invokecommand (Purlici: PurlinvokeCommandinfow): HRESULT; akhir; {$ Ifdef unicode} IuniformResourcelocator = iuniformResourcelocatorw; {$ Else} IuniformResourcelocator = iuniformResourcelocatora; {$ Endif} function TranslateUrla (PCSZURL: LPCSTR; Dwinflags: DWORD; PPSZTRANCLATEDURL: LPSTR): HRESULT; function TranscorUrlw (PCSZURL: LPCWSTR; Dwinflags: DWORD; PPSZTRANCLATEDURL: LPWSTR): HRESULT; {$ Ifdef unicode} fungsi translateUrl (pcszurl: lpcwstr; Dwinflags: DWORD; PPSZTRANCLATEDURL: LPWSTR): HRESULT; {$ Else} fungsi translateUrl (pcszurl: lpcstr; Dwinflags: DWORD; PPSZTRANCLATEDURL: LPSTR): HRESULT; {$ Endif} fungsi urlassociationdialoga (hwndparent: hwnd; Dwinflags: DWORD; PCSZFile: LPCSTR; PCSZURL: LPCSTR; PSZAppBUF: LPSTR; ucappbuflen: uint): hResult; fungsi urlassociationdialogw (hwndparent: hwnd; Dwinflags: DWORD; pcszfile: lpcwstr; PCSZURL: LPCWSTR; pszappbuf: lpwstr; ucappbuflen: uint): hResult; {$ Ifdef unicode} fungsi urlassociationdialog (hwndparent: hwnd; Dwinflags: DWORD; pcszfile: lpcwstr; PCSZURL: LPCWSTR; pszappbuf: lpwstr; ucappbuflen: uint): hResult; {$ Else} fungsi urlassociationdialog (hwndparent: hwnd; Dwinflags: DWORD; PCSZFile: LPCSTR; PCSZURL: LPCSTR; PSZAppBUF: LPSTR; ucappbuflen: uint): hResult; {$ Endif} fungsi mimeassociationdialoga (hwndparent: hwnd; Dwinflags: DWORD; PCSZFile: LPCSTR; pcszmimeContentType: LPCSTR; PSZAppBUF: LPSTR; ucappbuflen: uint): hResult; fungsi mimeassociationdialogw (hwndparent: hwnd; Dwinflags: DWORD; pcszfile: lpcwstr; pcszmimeContentType: lpcwstr; pszappbuf: lpwstr; ucappbuflen: uint): hResult; {$ Ifdef unicode} fungsi mimeassociationdialog (hwndparent: hwnd; Dwinflags: DWORD; pcszfile: lpcwstr; pcszmimeContentType: lpcwstr; pszappbuf: lpwstr; ucappbuflen: uint): hResult; {$ Else} fungsi mimeassociationdialog (hwndparent: hwnd; Dwinflags: DWORD; PCSZFile: LPCSTR; pcszmimeContentType: LPCSTR; PSZAppBUF: LPSTR; ucappbuflen: uint): hResult; {$ Endif} fungsi inetisoffline (dwflags: dword): bool; {$ Ifdef ver120} const Iid_iiInternetsession: tguid = '{79eac9e7-baf9-11ce-8c82-00aa004ba90b}'; Iid_iiInternetsecurityMgrsite: tguid = '{79eAc9ed-baf9-11ce-8c82-00aa004ba90b}'; Iid_iiInternetsecurityManager: tguid = '{79eac9ee-baf9-11ce-8c82-00aa004ba90b}'; Iid_iiinternethostsecurityManager: tguid = '{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'; Sid_iiInternetsecurityManager: tguid = '{79eac9ee-baf9-11ce-8c82-00aa004ba90b}'; Sid_iiinternethostsecurityManager: tguid = '{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'; Iid_iiInternetzonemanager: tguid = '{79eac9ef-baf9-11ce-8c82-00aa004ba90b}'; jenis Turlzonereg = Ulong; Pbindinfo = ^tbindinfo; _tagbindInfo = Rekor yang dikemas 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; akhir; TbindInfo = _tagBindInfo; BindInfo = _tagBindInfo; {$ Nodefine polestrarray} Polestrarray = ^tolestrarray; {$ Nodefine Tolestrarray} Tolestrarray = array [0..maxlongint div sizeof (polestr) - 1] dari polestr; {$ Externalsym iinternetBindInfo} IinternetBindInfo = antarmuka ['{79eac9e1-baf9-11ce-8c82-00aa004ba90b}'] fungsi getBindInfo (keluar grfbindf: dword; var bindinfo: tbindinfo): hResult; Fungsi getBindString (UlstringType: Ulong; WZSTR: Polestrarray; Cel: Ulong; var celfetched: ulong): hResult; akhir; Pprotocoldata = ^tprotocoldata; {$ Externalsym _tagprotocoldata} _tagprotocoldata = catatan yang dikemas Grfflags: DWORD; DWState: DWORD; pdata: pointer; CBData: Ulong; akhir; Tprotocoldata = _tagprotocoldata; {$ Externalsym _tagprotocoldata} Protocoldata = _tagprotocoldata; {$ Externalsym iinternetprotocolsink} IinternetProtocolSink = antarmuka; // Maju {$ Externalsym iinternetprotocolroot} Iinternetprotocolroot = antarmuka ['{79eac9e3-baf9-11ce-8c82-00aa004ba90b}'] Function Start (szurl: lpcwstr; oiprotsink: iinternetprotocolsink; Oibindinfo: iinternetbindinfo; Fungsi Lanjutkan (Const Protocoldata: TProtocoldata): HRESULT; Fungsi Abort (hrreason: hResult; dwoptions: dword): hResult; Fungsi Terakhir (Dwoptions: DWORD): HRESULT; Fungsi Tangguhkan: HRESULT; resume fungsi: hResult; akhir; {$ Externalsym iinternetprotocol} Iinternetprotocol = antarmuka (iiinternetprotocolroot) ['{79eac9e4-baf9-11ce-8c82-00aa004ba90b}'] fungsi baca (pv: pointer; cb: ulong; out cbread: ulong): hResult; function Seek (dlibmove: large_integer; dworigin: dword; out libnewPosition: ularge_integer): hResult; Function LockRequest (Dwoptions: DWORD): HRESULT; Function UnlockRequest: hResult; akhir; {$ Externalsym iinternetprotocolsink} IinternetProtocolSink = antarmuka ['{79eac9e5-baf9-11ce-8c82-00aa004ba90b}'] sakelar fungsi (const protocoldata: tprotocoldata): hResult; Function ReportProgress (ulstatuscode: ulong; szstatustext: lpcwstr): hResult; Function ReportData (GRFBSCF: DWORD; Ulprogress, UlprogressMax: Ulong): HRESULT; Fungsi reportresult (hrresult: hResult; dwerror: dword; szresult: lpcwstr): hResult; akhir; {$ Nodefine tlpcwstrarray} Tlpcwstrarray = array [0..maxlongint div sizeof (lpcwstr) - 1] dari lpcwstr; {$ Nodefine plpcwstrarray} Plpcwstrarray = ^tlpcwstrarray; {$ Externalsym iinternetsession} Iinternetsession = antarmuka ['{79eac9e7-baf9-11ce-8c82-00aa004ba90b}'] Fungsi registerNeNespace (cf: iclassfactory; const clsid: tclsid; pwzprotocol: lpcwstr; CPatterns: Ulong; fungsi unregisternamespace (cf: iclassfactory; pszprotocol: lpcwstr): hResult; function registermimefilter (cf: iclassfactory; const rclsid: tclsid; pwztype: lpcwstr): hResult; fungsi unregistermimefilter (cf: iclassfactory; pwztype: lpcwstr): hResult; fungsi createBinding (bc: ibindctx; szurl: lpcwstr; unkouter: iunknown; out unk: iunknown; oinetprot: iinternetprotocol; Fungsi setSessionOption (dwoption: dword; pbuffer: pointer; dwbufferlength: dword; Dwreserved: DWORD): HRESULT; fungsi getsessionoption (dwoption: dword; pbuffer: pointer; var dwbufferlength: dword; Dwreserved: DWORD): HRESULT; akhir; {$ ExternalSym CointernetGetSession} Fungsi CointernetGetSession (DWSessionMode: DWORD; var piinternetsession: iinternetsession; Dwreserved: DWORD): HRESULT; jenis {$ Externalsym iinternetsecuritymgrsite} IinternetsecurityMgrsite = antarmuka ['{79eac9ed-baf9-11ce-8c82-00aa004ba90b}'] function getWindow (out hwnd: hwnd): hResult; fungsi enablemodeless (fenable: bool): hResult; akhir; const {$ ExternalSym max_size_security_id} Max_size_security_id = 512; // mapurltozone mengembalikan indeks zona yang diberikan 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; // Ini adalah fungsi pembungkus yang akan digunakan sebagian besar klien. // itu mencari tahu kebijakan saat ini untuk yang dilewati dalam tindakan, // dan memasang UI jika kebijakan saat ini menunjukkan bahwa pengguna // harus ditanyai. // akan digunakan untuk menentukan apakah tindakan harus diizinkan // Ini adalah fungsi pembungkus untuk dengan mudah membaca kebijakan khusus. // setZonemapping // LPSZPattern: String yang menunjukkan pola URL // Contoh pola yang valid: // *: //*.msn.com // http: //*.sony.co.jp // *: //et.msn.com // ftp://157.54.23.41/ // https: // localsvr // file:/localsvr/share // *: //157.54.100-200.* // Contoh pola tidak valid: // http: //*.lcs.mit.edu // ftp: //* // dwflags: nilai szm_flags {$ Externalsym szm_create} Szm_create = $ 00000000; {$ Externalsym szm_delete} Szm_delete = $ 00000001; jenis {$ Externalsym iinternetsecurityManager} IinternetSecurityManager = antarmuka ['{79eac9ee-baf9-11ce-8c82-00aa004ba90b}'] function setSecuritySite (situs: iinternetsecuritymgrsite): hResult; Fungsi GetSecuritySite (di luar situs: iinternetsecurityMgrSite): hResult; fungsi mapurltozone (pwszurl: lpcwstr; out dwzone: dword; DWFLAGS: DWORD): HRESULT; fungsi getSecurityId (pwszurl: lpcwstr; pbsecurityid: pointer; var cbsecurityId: DWORD; Fungsi prosesurlaksi (pwszurl: lpcwstr; dwaction: dword; PPOLICY: CBPOLICY: DWORD; dwflags, dwreserved: dword): hResult; Function QueryCustompolicy (PWSZURL: LPCWSTR; Const GuidKey: TGUID; Out ppolicy: Pointer; Dwreserved: DWORD): HRESULT; fungsi setZonemapping (dwzone: dword; lpszpattern: lpcwstr; DWFLAGS: DWORD): HRESULT; fungsi getZonemappings (dwzone: dword; out enumstring: ienumstring; DWFLAGS: DWORD): HRESULT; akhir; {$ Externalsym iinternetHostSecurityManager} IinternetHostSecurityManager = antarmuka ['{3af280b6-cb3f-11d0-891e-00c04fb6bfc4}'] fungsi getSecurityId (pBsecurityId: pointer; var cbsecurityid: dword; Dwreserved: DWORD): HRESULT; Fungsi prosesurlaksi (dwaction: dword; ppolicy: pointer; cbpolicy: dword; PCONTEXT: Pointer; Function QueryCustompolicy (const guidkey: tguid; out ppolicy: pointer; out cbpolicy: dword; PCONTEXT: Pointer; akhir; 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_treatersuntrusted} Urlaction_activex_treatersuntrusted = $ 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_promppt} Urlpolicy_credentials_conditional_promppt = $ 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_probhibit} Urlpolicy_java_probibit = $ 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; // Tindakan infodelivery berikut seharusnya tidak memiliki kebijakan default // dalam registri. // Kembali ke pembatasan global. // zona, lalu mengesampingkan pembatasan global. {$ Externalsym urlaction_infodeelivery_min} Urlaction_infodelivery_min = $ 00001d00; {$ Externalsym urlaction_infodeelivery_no_adding_channels} Urlaction_infodelivery_no_adding_channels = $ 00001d00; {$ Externalsym urlaction_infodeelivery_no_editing_channels} Urlaction_infodelivery_no_editing_channels = $ 00001D01; {$ Externalsym urlaction_infodeelivery_no_removing_channels} Urlaction_infodelivery_no_removing_channels = $ 00001D02; {$ Externalsym urlaction_infodeelivery_no_adding_subscriptions} Urlaction_infodelivery_no_adding_subscriptions = $ 00001D03; {$ Externalsym urlaction_infodeelivery_no_editing_subscriptions} Urlaction_infodelivery_no_editing_subscriptions = $ 00001D04; {$ Externalsym urlaction_infodeelivery_no_removing_subscriptions} Urlaction_infodelivery_no_removing_subscriptions = $ 00001D05; {$ ExternalSym urlaction_infodeelivery_no_channel_logging} Urlaction_infodelivery_no_channel_logging = $ 00001D06; {$ ExternalSym urlaction_infodeelivery_curr_max} Urlaction_infodelivery_curr_max = $ 00001D06; {$ Externalsym urlaction_infodeelivery_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; jenis 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; akhir; 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. jenis {$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; akhir; // 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; Pelaksanaan 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; akhir. |