VC에 따라 철저한 필터링을위한 솔루션에 관한 기사 :
http://blog.csdn.net/111222/archive/2002/02/09/7255.aspx
Delphi의 구현에는 PAS 장치가 있습니다.
단위 IEConst; 인터페이스 Shlobj, ActiveX, Windows를 사용합니다. Const iid_idochostuihandler : tguid = '{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}'; iid_idochostuihandler2 : tguid = '{3050f6d0-98b5-11cf-bb82-00aa00bdce0b}'; iid_idochostshowui : tguid = '{c4d244b0-d43e-11cf-893b-00aa00bdce1a}'; GUID_TRIEDITCOMMANDGROUP : TGUID = '{2582F1C0-084E-11D1-9A0E-006097C9B344}'; cmdsetid_forms3 : tguid = '{de4ba900-59ca-11cf-9592-44453540000}'; iid_iqueryInfo : tguid = (d1 : $ 00021500; d2 : $ 0000; d3 : $ 0000; d4 : ($ c0, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ 00, $ 46); msocmdf_supported = elecmdf_supported; msocmdf_enabled = elecmdf_enabled; msocmdexecopt_promptuser = elecmdexecopt_promptuser; msocmdexecopt_dontpromptuser = elecmdexecopt_dontpromptuser; 인치 토메 트릭 = 25.4; no_command = 0; View_Command = 1; Explore_Command = 2; find_command = 3; isdigit = [ '0'.. '9', '-', '+']; context_menu_default = 0; context_menu_image = 1; context_menu_control = 2; context_menu_table = 3; // 브라우저 모드에서 context_menu_textselect = 4; context_menu_anchor = 5; context_menu_unknown = 6; //이 2는 대중을 위해 이미지에 매핑됩니다 ") context_menu_imgdynsrc = 7; context_menu_imgart = 8; context_menu_debug = 9; context_menu_vscroll = 10; context_menu_hscroll = 11; dispid_ambient_dlcontrol = (-5512); dispid_ambient_useragent = (-5513); htmlid_find = 1; htmlid_viewsource = 2; htmlid_options = 3; dochostuitype_browse = 0; dochostuitype_author = 1; 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 = $ 100000; dochostuiflag_ime_enable_reconversion = $ 2000; idm_unknown = 0; idm_alignbottom = 1; idm_alignhorizontalcenters = 2; idm_alignleft = 3; idm_alignright = 4; idm_aligntogrid = 5; idm_aligntop = 6; idm_alignverticalcenters = 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_HORIZSPACECOCATENATE = 21; idm_horizspacedecrease = 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_VERTSPACECOCATENATE = 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, // idm_baselinefont5는 연속 정수 여야합니다. // idm_baselinefont1 = 2141; idm_baselinefont2 = 2142; idm_baselinefont3 = 2143; idm_baselinefont4 = 2144; idm_baselinefont5 = 2145; idm_horizontalline = 2150; idm_linebreaknormal = 2151; idm_linebreakleft = 2152; idm_linebreakright = 2153; idm_linebreakboth = 2154; idm_nonbreak = 2155; idm_specialchar = 2156; idm_htmlsource = 2157; idm_iframe = 2158; idm_htmlcontain = 2159; idm_textbox = 2161; idm_textArea = 2162; idm_checkbox = 2163; idm_radiobutton = 2164; idm_dropdownbox = 2165; idm_listbox = 2166; idm_button = 2167; idm_image = 2168; idm_object = 2169; idm_1d = 2170; idm_imagemap = 2171; idm_file = 2172; idm_comment = 2173; idm_script = 2174; idm_javaapplet = 2175; idm_plugin = 2176; idm_pagebreak = 2177; idm_paragraph = 2180; idm_form = 2181; idm_marquee = 2182; idm_list = 2183; idm_orderList = 2184; idm_unorderList = 2185; idm_indent = 2186; idm_outdent = 2187; idm_preformatted = 2188; idm_address = 2189; idm_blink = 2190; idm_div = 2191; idm_tableInsert = 2200; idm_rcinsert = 2201; idm_cellinsert = 2202; idm_captioninsert = 2203; idm_cellmerge = 2204; idm_cellsplit = 2205; idm_cellSelect = 2206; idm_rowselect = 2207; idm_columnselect = 2208; idm_tableseLect = 2209; idm_tableProperties = 2210; idm_cellproperties = 2211; idm_rowinsert = 2212; IDM_COLUMNINSERT = 2213; idm_help_content = 2220; idm_help_about = 2221; idm_help_readme = 2222; idm_removeformat = 2230; idm_pageinfo = 2231; idm_teletype = 2232; idm_getBlockfmts = 2233; idm_blockfmt = 2234; idm_showhide_code = 2235; idm_table = 2236; idm_copyformat = 2237; idm_pasteformat = 2238; idm_goto = 2239; idm_changefont = 2240; idm_changefontsize = 2241; idm_incfontsize = 2242; idm_decfontsize = 2243; idm_incfontsize1pt = 2244; idm_decfontsize1pt = 2245; idm_changecase = 2246; idm_subscript = 2247; idm_superScript = 2248; idm_showspecialchar = 2249; idm_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_printqueryjobpending = 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_showzeroboderatdesigntime = 2328; idm_autodetect = 2329; idm_scriptdebugger = 2330; idm_getBytesdownloaded = 2331; idm_noactivatenormalolecontrols = 2332; IDM_NOACTIVATEDESIGNTIMECONTROLS = 2333; idm_noactivatejavaapplets = 2334; idm_showwbrtags = 2340; idm_persiststreamsync = 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; 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; // 경고 경고 경고 !!! IDM_TRIED_LAST_CID를 수정하는 것을 잊지 마십시오 // 새 명령 ID를 추가 할 때 idm_tried_last_cid = idm_tried_inserttable; clsid_webbrowser : tguid = '{ed016940-bd5b-11cf-ba4e-00c04fd70816}'; 유형 pdochostuiinfo = ^tdochostuiinfo; tdochostuiinfo = 레코드 cbsize : ulong; dwflags : dword; dwdoubleclick : dword; Chhostcss : Polests; Chhostns : Polest; 끝; idochostshowui = 인터페이스 (iunknown) [ '{C4D244B0-D43E-11CF-893B-00AA00BDCE1A}'] 함수 showmessage (hwnd : thandle; lpstrtext : polest; lpstrcaption : polest; dwtype : llpstrhelpfile : polest; var plresult : lresult) : Hresult; 함수 showHelp (HWND : Thandle; PSZHELPFILE : POLESTRE; UCOMMAND : Integer; dwdata : longint; ptmouse : tpoint; var pdispatchobjecthit : idispatch); 끝; // idochostshowui idochostuihandler = 인터페이스 (iunknown) [ '{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}'] 함수 showcontextMenu (const dwid : dword; const ppt : ppoint; const pcmdtreserved : Iunknown; 기능 gethostinfo (var pinfo : tdochostuiinfo) : Hresult; 함수 showui (const dwid : dword; const pactiveObject : ioleinplaceacectiveObject; CONST PCOMMANDTARGET : IOLECOMMANDTARGET; Const Pdoc : ioleinplaceuiwindow) : Hresult; 기능 Hideui : Hresult; 기능 updateui : Hresult; 기능 enablemodeless (const fenable : bool) : Hresult; 기능 ondocwindowactivate (const factivate : bool); onframewindowActivate (const factivate : bool) : Hresult; 기능 크기즈 보더 (Const Prcborder : Prect; Const Puiwindow : ioleinpaceuiwindow; Const Framewindow : bool) : Hresult; 함수 TranslateAccelerator (const lpmsg : pmsg; const pguidcmdgroup : pguid; const ncmdid : dword) : Hresult; 기능 getoptionkeypath (var pchkey : polest; const dw : dword) : Hresult; 함수 getDropTarget (const pdroptarget : idroptarget; out ppdroptarget : idroptarget) : Hresult; 함수 getExternal (out ppdispatch : idispatch) : Hresult; 기능 translateurl (const dwtranslate : dword; const pchurlin : polest; var ppchurlout : polest) : Hresult; 함수 FilterDataObject (const pdo : idataobject; out ppdoret : idataobject) : Hresult; 끝; // idochostuihandler idochostuihandler2 = 인터페이스 (iunknown) [ '{3050F6D0-98B5-11CF-BB82-00AA00BDCE0B}'] 기능 getoverridekeypath (pchkey : polest; dw : dword) : Hresult; 끝; Const IID_IUNIFORMRESOURCELOCATORA : TGUID = ( D1 : $ FBF23B80; D3; IID_IUNIFORMRESOURCELOCATORW : TGUID = ( D1 : D2; D3; {$ ifdef 유니 코드} IID_IUNIFORMRESOURCELOCATOR : TGUID = ( D1 : D2; D3; {$ else} IID_IUNIFORMRESOURCELOCATOR : TGUID = ( D1 : $ FBF23B80; D3; {$ endif} Const clsid_internetshortcut : tguid = ( D1 : $ FBF23B40; D3; sid_iuniformresourcelocatora = '{fbf23b80-e3f0-101b-8488-00aa003e56f8}'; sid_iuniformresourcelocatorw = '{cabb0da0-da57-11cf-9974-0020afd79762}'; {$ ifdef 유니 코드} 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; TranslateUrl_FL_GUESS_PROTOCOL = $ 0001; TranslateUrl_fl_use_default_protocol = $ 0002; 누락 된 경우 기본 프로토콜을 사용합니다 urlassocdlg_fl_use_default_name = $ 0001; urlassocdlg_fl_register_assoc = $ 0002; mimeassocdlg_fl_register_assoc = $ 0001; 유형 Purlinvokecommandinfoa = ^TurlinVokeCommandinfoa; TurlinVokeCommandInfoA = 레코드 dwcbsize : dword; // 구조 크기 dwflags : dword; // IURL_INVOKECOMMAND_FLAGS의 비트 필드 hwndparent : hwnd; pcszverb : lpcstr; 끝; PurlinVokeCommandInfow = ^TurlinVokeCommandinFow; TurlinVokeCommandInfow = 레코드 dwcbsize : dword; // 구조 크기 dwflags : dword; // IURL_INVOKECOMMAND_FLAGS의 비트 필드 hwndparent : hwnd; pcszverb : lpcwstr; 끝; {$ ifdef 유니 코드} PurlinVokeCommandInfo = ^TurlinVokeCommandInfow; TurlinVokeCommandInfo = TurlinVokeCommandinFow; {$ else} PurlinVokeCommandInfo = ^TurlinVokeCommandinfoa; Turlinvokecommandinfo = Turlinvokecommandinfoa; {$ endif} iuniformresourcelocatora = 인터페이스 (iunknown) [sid_iuniformresourcelocatora] 함수 seturl (pcszurl : lpcstr; dwinflags : dword) : hresult; 기능 geturl (ppszurl : lpstr) : Hresult; 기능 invokecommand (Purlici : Purlinvokecommandinfoa) : Hresult; 끝; iuniformresourcelocatorw = 인터페이스 (iunknown) [sid_iuniformresourcelocatorw] 함수 seturl (pcszurl : lpcwstr; dwinflags : dword) : Hresult; 기능 geturl (ppszurl : lpwstr) : Hresult; 기능 invokecommand (Purlici : Purlinvokecommandinfow) : Hresult; 끝; {$ ifdef 유니 코드} iuniformresourcelocator = iuniformResourcelocatorw; {$ else} iuniformresourcelocator = iuniformResourcelocatora; {$ endif} 함수 TranslateUrla (pcszurl : lpcstr; dwinflags : dword; ppsztranslatedurl : lpstr); 함수 TranslateUrlw (pcszurl : lpcwstr; dwinflags : dword; ppsztranslatedurl : lpwstr); {$ ifdef 유니 코드} 함수 translateurl (pcszurl : lpcwstr; dwinflags : dword; ppsztranslatedurl : lpwstr); {$ else} 함수 TranslateUrl (pcszurl : lpcstr; dwinflags : dword; ppsztranslatedurl : lpstr); {$ endif} 함수 urlassociationDialoga (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcstr; pcszurl : lpcstr; pszappbuf : lpstr; ucappbuflen : uint) : Hresult; 함수 urlassociationDialogw (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcwstr; pcszurl : lpcwstr; pszappbuf : lpwstr; ucappbuflen : uint) : Hresult; {$ ifdef 유니 코드} 함수 urlassociationDialog (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcwstr; pcszurl : lpcwstr; pszappbuf : lpwstr; ucappbuflen : uint) : Hresult; {$ else} 함수 urlassociationDialog (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcstr; pcszurl : lpcstr; pszappbuf : lpstr; ucappbuflen : uint) : Hresult; {$ endif} 함수 mimeassociationDialoga (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcstr; PCSZMIMECONTENTTYPE : LPCSTR; pszappbuf : lpstr; ucappbuflen : uint) : Hresult; 함수 mimeassociationDialogw (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcwstr; PCSZMIMECONTENTTYPE : LPCWSTR; pszappbuf : lpwstr; ucappbuflen : uint) : Hresult; {$ ifdef 유니 코드} 함수 mimeassociationDialog (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcwstr; PCSZMIMECONTENTTYPE : LPCWSTR; pszappbuf : lpwstr; ucappbuflen : uint) : Hresult; {$ else} 함수 mimeassociationDialog (hwndparent : hwnd; dwinflags : dword; pcszfile : lpcstr; PCSZMIMECONTENTTYPE : LPCSTR; pszappbuf : lpstr; ucappbuflen : uint) : Hresult; {$ endif} 기능 inetisoffline (dwflags : dword) : bool; {$ ifdef ver120} 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}'; 유형 Turlzonereg = ulong; pbindinfo = ^tbindinfo; _tagbindinfo = 포장 된 레코드 cbsize : ulong; szextrainfo : lpwstr; stgmeddata : tstgmedium; grfbindinfof : dword; dwbindverb : dword; szcustomverb : lpwstr; CBSTGMEDDATA : dword; dwoptions : dword; dwoptionsflags : dword; dwcodepage : dword; SecurityAttributes : tsecurityattributes; iid : tguid; 펑크 : iunknown; dwreserved : dword; 끝; tbindinfo = _tagbindinfo; bindinfo = _tagbindinfo; {$ nodefine polestrray} polestrarray = ^tolestrarray; {$ nodefine tolestrarray} tolestrarray = 배열 [0..maxlongint div sizeof (polest) -1]의 polest; {$ externalsym iinternetbindinfo} iinternetbindinfo = 인터페이스 [ '{79EAC9E1-BAF9-11CE-8C82-00AA004BA90B}'] getbindinfo (out grfbindf : dword; var bindinfo : tbindinfo) : Hresult; 함수 getBindstring (ulstringtype : ulong; wzstr : polestrarray; cel : ulong; var celfetched : ulong); 끝; pprotocoldata = ^tprotocoldata; {$ externalsym _tagprotocoldata} _tagprotocoldata = 포장 된 레코드 grfflags : dword; dwstate : dword; PDATA : 포인터; CBDATA : ulong; 끝; tprotocoldata = _tagprotocoldata; {$ externalsym _tagprotocoldata} protocoldata = _tagprotocoldata; {$ externalsym iinternetProtocolSink} IinternetProtocolSink = 인터페이스; {$ externalsym iinternetprotocolroot} iinternetProtocolRoot = 인터페이스 [ '{79EAC9E3-BAF9-11CE-8C82-00AA004BA90B}'] 함수 start (szurl : lpcwstr; oiprotsink : iinternetprotocolsink; oibindinfo : iinternetbindinfo, dwreserved : hresult; 기능 (const protocoldata : tprotocoldata) : Hresult; 기능 중단 (hrreason : hresult; dwoptions : dword) : Hresult; 함수 종료 (dwoptions : dword) : Hresult; 기능 중단 : Hresult; 기능 이력서 : Hresult; 끝; {$ externalsym iinternetprotocol} iinternetProtocol = 인터페이스 (iiinternetProtocolRoot) [ '{79EAC9E4-BAF9-11CE-8C82-00AA004BA90B}'] 함수 읽기 (PV : 포인터; CB : Ulong; Out Cbread) : Hresult; 기능 추구 (dlibmove : large_integer; dworigin : dword; out libnewposition : ularge_integer) : hresult; 함수 LockRequest (dwoptions : dword) : Hresult; 기능 잠금 해제 : Hresult; 끝; {$ externalsym iinternetProtocolSink} iinternetProtocolSink = 인터페이스 [ '{79EAC9E5-BAF9-11CE-8C82-00AA004BA90B}'] 함수 스위치 (const protocoldata : tprotocoldata) : Hresult; 함수 reportProgress (ulstatuscode : ulong; szstatustext : lpcwstr) : hresult; 함수 reportData (grfbscf : dword; ulprogress, ulprogressmax) : hresult; 기능 reportresult (hrresult : hresult; dwerror : dword; szresult : lpcwstr) : Hresult; 끝; {$ nodefine tlpcwstrarray} tlpcwstrarray = 배열 [0..maxlongint div sizeof (lpcwstr) -1]의 lpcwstr; {$ nodefine plpcwstrarray} plpcwstrarray = ^tlpcwstrarray; {$ externalsym iinternetsession} iinternetSession = 인터페이스 [ '{79EAC9E7-BAF9-11CE-8C82-00AA004BA90B}'] 함수 RegisterNamespace (CF : ICLASSFACTORY; CONST CLSID : TCLSID; PWZPROTOCOL : LPCWSTR; cpatterns : ulong; 함수 UnregisterNamespace (CF : ICLASSFACTORY; PSZPROTOCOL : LPCWSTR) : Hresult; 함수 RegisterMimeFilter (CF : ICLASSFACTORY; CONST RCLSID : TCLSID; pwztype : lpcwstr) : Hresult; 함수 UnregisterMimeFilter (cf : iclassfactory; pwztype : lpcwstr) : hresult; 함수 CreateBinding (BC : IBINDCTX; SZURL : LPCWSTR; UNKOUTER : IUNKNOWN; OUT UNK : IUNKNOWN; OUNETPROT : IinternetProtocol : dword; 함수 setSessionOption (dwoption : dword; pbuffer : 포인터; dwbufferlength : dword; dwreserved : dword) : Hresult; 함수 getSessionOption (dwoption : dword; pbuffer : 포인터; var dwbufferlength : dword; dwreserved : dword) : Hresult; 끝; {$ externalsym cointernetgetSession} 함수 cointernetgetSession (dwsessionmode : dword; var piinternetsession : iinternetsession; dwreserved : dword) : Hresult; 유형 {$ externalsym iinternetsecuritymgrsite} iinternetsecuritymgrsite = 인터페이스 [ '{79EAC9ED-BAF9-11CE-8C82-00AA004BA90B}'] 기능 getwindow (out hwnd : hwnd) : hresult; 기능 enablemodeless (fenable : bool) : Hresult; 끝; Const {$ externalsym max_size_security_id} max_size_security_id = 512; // Mapurltozone은 URL이 주어진 영역 색인을 반환합니다 {$ externalsym puaf_default} puaf_default = $ 00000000; {$ externalsym puaf_noui} puaf_noui = $ 00000001; {$ externalsym puaf_isfile} puaf_isfile = $ 00000002; {$ externalsym puaf_warn_if_denied} puaf_warn_if_denied = $ 00000004; {$ externalsym puaf_forceui_foreground} puaf_forceui_foreground = $ 0000008; {$ externalsym puaf_check_tifs} puaf_check_tifs = $ 00000010; // 이것은 대부분의 클라이언트가 사용할 래퍼 함수입니다. // 통과 된 행동에 대한 현재 정책을 파악하고 // 현재 정책에 사용자가 // 쿼리해야합니다 // 작업이 허용되어야하는지 확인하는 데 사용됩니다. // 이것은 사용자 지정 정책을 편리하게 읽는 래퍼 함수입니다. // setzonemapping // lpszpattern : 문자열이 URL 패턴을 나타냅니다 // 유효한 패턴의 예 : // *: //*.msn.com // http : //*.sony.co.jp // *: //et.msn.com // ftp://157.54.23.41/ // https : // localsvr // 파일 :/localsvr/share // *: //157.54.100-200.* // 잘못된 패턴의 예 : // http : //*.lcs.mit.edu // ftp : //* // dwflags : szm_flags 값 {$ externalsym szm_create} szm_create = $ 00000000; {$ externalsym szm_delete} szm_delete = $ 00000001; 유형 {$ externalsym iinternetsecuritymanager} iinternetsecurityManager = 인터페이스 [ '{79EAC9EE-BAF9-11CE-8C82-00AA004BA90B}'] 함수 setsecuritysite (사이트 : iinternetsecuritymgrsite) : hresult; getsecuritysite (Out Site : iinternetsecurityMgrsite) : Hresult; 함수 mapurltozone (pwszurl : lpcwstr; out dwzone : dword; dwflags : dword) : Hresult; 함수 getSecurityId (pwszurl : lpcwstr; pbsecurityId : 포인터; var cbsecurityid : dwreserved : hresult; 함수 processUrlaction (pwszurl : lpcwstr; dwaction : dword; ppolicy : cbpolicy : pcontext; dwflags, dwreserved : dword) : Hresult; 함수 QueryCustOmpolicy (pwszurl : lpcwstr; const guidkey : tguid; out ppolicy : 포인터; dwreserved : dword) : Hresult; 함수 setzonemapping (dwzone : dword; lpszpattern : lpcwstr; dwflags : dword) : Hresult; 기능 getzonemappings (dwzone : dword; out enumstring : ienumstring; dwflags : dword) : Hresult; 끝; {$ externalsym iinternethostsecurityManager} iinternethostsecurityManager = 인터페이스 [ '{3AF280B6-CB3F-11D0-891E-00C04FB6BFC4}'] 함수 getSecurityId (pbsecurityId : 포인터; var cbsecurityId : dword; dwreserved : dword) : Hresult; 함수 processUrlaction (dwaction : dword; ppolicy : 포인터; cbpolicy : dword; PCONTEXT : 포인터; CBCONTEXT, DWFLAGS : DWORD; 함수 QueryCustOmpolicy (const Guidkey : tguid; out ppolicy : 포인터; out cbpolicy : dword; pContext : 포인터; dwreserved : hresult; 끝; 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_response} urlpolicy_authentice_challenge_response = $ 00010000; {$ externalsym urlpolicy_authenticate_mutual_only} urlpolicy_authentice_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; // 다음 infodelivery 조치에는 기본 정책이 없어야합니다. // 레지스트리에서는 기본 정책이 떨어지지 않는다고 가정합니다 // 관리자가 정책을 설정하는 경우 // Zone, 그런 다음 글로벌 제한을 무시합니다. {$ externalsym urlaction_infodelivery_min} urlaction_infodelivery_min = $ 00001d00; {$ externalsym urlaction_infodelivery_no_adding_channels} urlaction_infodelivery_no_adding_channels = $ 00001d00; {$ externalsym urlaction_infodelivery_no_editing_channels} urlaction_infodelivery_no_editing_channels = $ 00001d01; {$ externalsym urlaction_infodelivery_no_removing_channels} urlaction_infodelivery_no_removing_channels = $ 00001d02; {$ externalsym urlaction_infodelivery_no_adding_subscriptions} urlaction_infodelivery_no_adding_subscriptions = $ 00001d03; {$ externalsym urlaction_infodelivery_no_editing_subscriptions} urlaction_infodelivery_no_editing_subscriptions = $ 00001d04; {$ externalsym urlaction_infodelivery_no_removing_subscriptions} urlaction_infodelivery_no_removing_subscriptions = $ 00001d05; {$ externalsym urlaction_infodelivery_no_channel_logging} urlaction_infodelivery_no_channel_logging = $ 00001d06; {$ externalsym urlaction_infodelivery_curr_max} urlaction_infodelivery_curr_max = $ 00001d06; {$ externalsym urlaction_infodelivery_max} urlaction_infodelivery_max = $ 00001dff; {$ externalsym urlaction_channel_softdist_min} urlaction_channel_softdist_min = $ 00001e00; {$ externalsym urlaction_channel_softdist_permissions} urlaction_channel_softdist_permissions = $ 00001e05; {$EXTERNALSYM URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT} URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT = $00010000; {$EXTERNALSYM URLPOLICY_CHANNEL_SOFTDIST_PRECACHE} URLPOLICY_CHANNEL_SOFTDIST_PRECACHE = $00020000; {$EXTERNALSYM URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL} URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL = $00030000; {$EXTERNALSYM URLACTION_CHANNEL_SOFTDIST_MAX} URLACTION_CHANNEL_SOFTDIST_MAX = $00001EFF; // For each action specified above the system maintains // a set of policies for the action. // The only policies supported currently are permissions (ie is something allowed) // and logging status. // IMPORTANT: If you are defining your own policies don't overload the meaning of the // loword of the policy. You can use the hiword to store any policy bits which are only // meaningful to your action. // For an example of how to do this look at the URLPOLICY_JAVA above // Permissions {$EXTERNALSYM URLPOLICY_ALLOW} URLPOLICY_ALLOW = $00; {$EXTERNALSYM URLPOLICY_QUERY} URLPOLICY_QUERY = $01; {$EXTERNALSYM URLPOLICY_DISALLOW} URLPOLICY_DISALLOW = $03; // Notifications are not done when user already queried. {$EXTERNALSYM URLPOLICY_NOTIFY_ON_ALLOW} URLPOLICY_NOTIFY_ON_ALLOW = $10; {$EXTERNALSYM URLPOLICY_NOTIFY_ON_DISALLOW} URLPOLICY_NOTIFY_ON_DISALLOW = $20; // Logging is done regardless of whether user was queried. {$EXTERNALSYM URLPOLICY_LOG_ON_ALLOW} URLPOLICY_LOG_ON_ALLOW = $40; {$EXTERNALSYM URLPOLICY_LOG_ON_DISALLOW} URLPOLICY_LOG_ON_DISALLOW = $80; {$EXTERNALSYM URLPOLICY_MASK_PERMISSIONS} URLPOLICY_MASK_PERMISSIONS = $0F; // The ordinal #'s that define the predefined zones internet explorer knows about. // When we support user-defined zones their zone numbers should be between // URLZONE_USER_MIN and URLZONE_USER_MAX Const {$EXTERNALSYM URLZONE_PREDEFINED_MIN} URLZONE_PREDEFINED_MIN = 0; {$EXTERNALSYM URLZONE_LOCAL_MACHINE} URLZONE_LOCAL_MACHINE = 0; {$EXTERNALSYM URLZONE_INTRANET} URLZONE_INTRANET = URLZONE_LOCAL_MACHINE + 1; {$EXTERNALSYM URLZONE_TRUSTED} URLZONE_TRUSTED = URLZONE_INTRANET + 1; {$EXTERNALSYM URLZONE_INTERNET} URLZONE_INTERNET = URLZONE_TRUSTED + 1; {$EXTERNALSYM URLZONE_UNTRUSTED} URLZONE_UNTRUSTED = URLZONE_INTERNET + 1; {$EXTERNALSYM URLZONE_PREDEFINED_MAX} URLZONE_PREDEFINED_MAX = 999; {$EXTERNALSYM URLZONE_USER_MIN} URLZONE_USER_MIN = 1000; {$EXTERNALSYM URLZONE_USER_MAX} URLZONE_USER_MAX = 10000; {$EXTERNALSYM URLTEMPLATE_CUSTOM} URLTEMPLATE_CUSTOM = $00000000; {$EXTERNALSYM URLTEMPLATE_PREDEFINED_MIN} URLTEMPLATE_PREDEFINED_MIN = $00010000; {$EXTERNALSYM URLTEMPLATE_LOW} URLTEMPLATE_LOW = $00010000; {$EXTERNALSYM URLTEMPLATE_MEDIUM} URLTEMPLATE_MEDIUM = $00011000; {$EXTERNALSYM URLTEMPLATE_HIGH} URLTEMPLATE_HIGH = $00012000; {$EXTERNALSYM URLTEMPLATE_PREDEFINED_MAX} URLTEMPLATE_PREDEFINED_MAX = $00020000; {$EXTERNALSYM MAX_ZONE_PATH} MAX_ZONE_PATH = 260; {$EXTERNALSYM MAX_ZONE_DESCRIPTION} MAX_ZONE_DESCRIPTION = 200; {$EXTERNALSYM ZAFLAGS_CUSTOM_EDIT} ZAFLAGS_CUSTOM_EDIT = $00000001; {$EXTERNALSYM ZAFLAGS_ADD_SITES} ZAFLAGS_ADD_SITES = $00000002; {$EXTERNALSYM ZAFLAGS_REQUIRE_VERIFICATION} ZAFLAGS_REQUIRE_VERIFICATION = $00000004; {$EXTERNALSYM ZAFLAGS_INCLUDE_PROXY_OVERRIDE} ZAFLAGS_INCLUDE_PROXY_OVERRIDE = $00000008; {$EXTERNALSYM ZAFLAGS_INCLUDE_INTRANET_SITES} ZAFLAGS_INCLUDE_INTRANET_SITES = $00000010; {$EXTERNALSYM ZAFLAGS_NO_UI} ZAFLAGS_NO_UI = $00000020; {$EXTERNALSYM ZAFLAGS_SUPPORTS_VERIFICATION} ZAFLAGS_SUPPORTS_VERIFICATION = $00000040; {$EXTERNALSYM ZAFLAGS_UNC_AS_INTRANET} ZAFLAGS_UNC_AS_INTRANET = $00000080; 유형 PZoneAttributes = ^TZoneAttributes; {$EXTERNALSYM _ZONEATTRIBUTES} _ZONEATTRIBUTES = packed record cbSize: ULONG; szDisplayName: array[0..260 - 1] of WideChar; szDescription: array[0..200 - 1] of WideChar; szIconPath: array[0..260 - 1] of WideChar; dwTemplateMinLevel: DWORD; dwTemplateRecommended: DWORD; dwTemplateCurrentLevel: DWORD; dwFlags: DWORD; 끝; TZoneAttributes = _ZONEATTRIBUTES; {$EXTERNALSYM ZONEATTRIBUTES} ZONEATTRIBUTES = _ZONEATTRIBUTES; // Gets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes are fixed as: // Sets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes as above. // Returns S_OK or ??? if failed to write the zone attributes. { Registry Flags When reading, default behavior is: If HKLM allows override and HKCU value exists Then use HKCU value Else use HKLM value When writing, default behavior is same as HKCU If HKLM allows override Then Write to HKCU Else Fail } Const {$EXTERNALSYM URLZONEREG_DEFAULT} URLZONEREG_DEFAULT = 0; {$EXTERNALSYM URLZONEREG_HKLM} URLZONEREG_HKLM = URLZONEREG_DEFAULT + 1; {$EXTERNALSYM URLZONEREG_HKCU} URLZONEREG_HKCU = URLZONEREG_HKLM + 1; // Gets a named custom policy associated with a zone; // eg the Java VM settings can be defined with a unique key such as 'Java'. // Custom policy support is intended to allow extensibility from the predefined // set of policies that IE4 has built in. // // pwszKey is the string name designating the custom policy. Components are // responsible for having unique names. // ppPolicy is the callee allocated buffer for the policy byte blob; caller is // responsible for freeing this buffer eventually. // pcbPolicy is the size of the byte blob returned. // dwRegFlags determines how registry is accessed (see above). // Returns S_OK if key is found and buffer allocated; ??? if key is not found (no buffer alloced). // Sets a named custom policy associated with a zone; // eg the Java VM settings can be defined with a unique key such as 'Java'. // Custom policy support is intended to allow extensibility from the predefined // set of policies that IE4 has built in. // // pwszKey is the string name designating the custom policy. Components are // responsible for having unique names. // ppPolicy is the caller allocated buffer for the policy byte blob. // pcbPolicy is the size of the byte blob to be set. // dwRegFlags determines if HTCU or HKLM is set. // Returns S_OK or ??? if failed to write the zone custom policy. // Gets action policy associated with a zone, the builtin, fixed-length policies info. // dwAction is the action code for the action as defined above. // pPolicy is the caller allocated buffer for the policy data. // cbPolicy is the size of the caller allocated buffer. // dwRegFlags determines how registry is accessed (see above). // Returns S_OK if action is valid; ??? if action is not valid. 유형 {$EXTERNALSYM IInternetZoneManager} IInternetZoneManager = interface ['{79eac9ef-baf9-11ce-8c82-00aa004ba90b}'] // Gets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes are fixed as: function GetZoneAttributes(dwZone: DWORD; var ZoneAttributes: TZoneAttributes): HResult; stdcall; // Sets the zone attributes (information in registry other than actual security // policies associated with the zone). Zone attributes as above. // Returns S_OK or ??? if failed to write the zone attributes. function SetZoneAttributes(dwZone: DWORD; const ZoneAttributes: TZoneAttributes): HResult; stdcall; function GetZoneCustomPolicy(dwZone: DWORD; const guidKey: TGUID; out pPolicy: Pointer; out cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function SetZoneCustomPolicy(dwZone: DWORD; const guidKey: TGUID; pPolicy: Pointer; cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function GetZoneActionPolicy(dwZone, dwAction: DWORD; pPolicy: Pointer; cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function SetZoneActionPolicy(dwZone, dwAction: DWORD; pPolicy: Pointer; cbPolicy: DWORD; urlZoneReg: TUrlZoneReg): HResult; stdcall; function PromptAction(dwAction: DWORD; hwndParent: HWnd; pwszUrl, pwszText: LPCWSTR; dwPromptFlags: DWORD): HResult; stdcall; function LogAction(dwAction: DWORD; pwszUrl, pwszText: LPCWSTR; dwLogFlags: DWORD): HResult; stdcall; function CreateZoneEnumerator(out dwEnum, dwCount: DWORD; dwFlags: DWORD): HResult; stdcall; function GetZoneAt(dwEnum, dwIndex: DWORD; out dwZone: DWORD): HResult; stdcall; function DestroyZoneEnumerator(dwEnum: DWORD): HResult; stdcall; function CopyTemplatePoliciesToZone(dwTemplate, dwZone, dwReserved: DWORD): HResult; stdcall; 끝; // Creates the security manager object. The first argument is the Service provider // to allow for delegation {$EXTERNALSYM CoInternetCreateSecurityManager} function CoInternetCreateSecurityManager(SP: IServiceProvider; var SM: IInternetSecurityManager; dwReserved: DWORD): HResult; stdcall; {$EXTERNALSYM CoInternetCreateZoneManager} function CoInternetCreateZoneManager(SP: IServiceProvider; var ZM: IInternetZoneManager; dwReserved: DWORD): HResult; stdcall; {$ENDIF} function SHLockShared(Handle: THandle; DWord: DWORD): Pointer; stdcall; function SHUnlockShared(Pnt: Pointer): BOOL; stdcall; function SHFreeShared(Handle: THandle; DWord: DWORD): Pointer; stdcall; function Free(Pidl: PItemIDList): BOOL; stdcall; function HtmlHelp(hwndCaller: HWND; pszfile: PChar; uCommand: Integer; dwData: DWORD): HWND; stdcall; 구현 Const urldll = 'url.dll'; function InetIsOffline; external urldll name 'InetIsOffline'; function MIMEAssociationDialogW; external urldll name 'MIMEAssociationDialogW'; function MIMEAssociationDialogA; external urldll name 'MIMEAssociationDialogA'; {$IFDEF UNICODE} function MIMEAssociationDialog; external urldll name 'MIMEAssociationDialogW'; {$ELSE} function MIMEAssociationDialog; external urldll name 'MIMEAssociationDialogA'; {$ENDIF} function URLAssociationDialogW; external urldll name 'URLAssociationDialogW'; function URLAssociationDialogA; external urldll name 'URLAssociationDialogA'; {$IFDEF UNICODE} function URLAssociationDialog; external urldll name 'URLAssociationDialogW'; {$ELSE} function URLAssociationDialog; external urldll name 'URLAssociationDialogA'; {$ENDIF} function TranslateURLA; external urldll name 'TranslateURLA'; function TranslateURLW; external urldll name 'TranslateURLW'; {$IFDEF UNICODE} function TranslateURL; external urldll name 'TranslateURLW'; {$ELSE} function TranslateURL; external urldll name 'TranslateURLA'; {$ENDIF} {$IFDEF VER120} Const UrlMonLib = 'URLMON.DLL'; function CoInternetGetSession; external UrlMonLib name 'CoInternetGetSession'; function CoInternetCreateSecurityManager; external UrlMonLib name 'CoInternetCreateSecurityManager'; function CoInternetCreateZoneManager; external UrlMonLib name 'CoInternetCreateZoneManager'; {$ENDIF} function HtmlHelp(hwndCaller: HWND; pszfile: PChar; uCommand: Integer; dwData: DWORD): HWND; stdcall; external 'hhctrl.ocx' name 'HtmlHelpA'; function SHLockShared; external 'shell32.dll' index 521; function SHUnlockShared; external 'shell32.dll' index 522; function SHFreeShared; external 'shell32.dll' index 523; function Free; external 'comctl32.dll' index 73; 끝. |