??????? ShellExecute ??? ????? ?????? ??? ?????????

?????? ????????? ?????? ?????????
???? ???????: 224816 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ??????? ???? ??? ????? ????? ?????? ??? ????????? ?? ???? ??? ????? ??? ????? ?????? ??? ????????? ?? ????? ????? ????????? "ShellExecute" (API). ??? ???? ?????? ??? ????? ???? ShellExecute Microsoft Internet Explorer ???????? ??? ???? ???? ????????? (URL).

??????? ????

????? ?????? ??? ?????????

???? ???????? Microsoft Internet Explorer ??????? ??? ??? ??? ?????? ??? ????????? ?? ??? ???? ??????. ??? ???? ?????? ????? ??????? (HTML) ?????? ?????? ?? ?????? ??? ??? ????? Internet Explorer ? ????? Internet Explorer ???? ???????? ????????? ????? ?? ?????? ????? ???????? ?????????.

?? ???? ????? "??? ??? ???????? ?????????" ?? Internet Explorer ??? ????????? ??????? ?? Netscape ? ???????? ????? ????? ?? ???? ???????? ??????? ?????? ?? ???? ???????? ????????? (??? ????????? ?????? ???? ??? ???????). HKEY_CLASSES_ROOT\http\shell\open\command HKEY_CLASSES_ROOT\.html HKEY_CLASSES_ROOT\.htm HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application HKEY_CLASSES_ROOT\ftp\shell\open\command HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Application HKEY_CLASSES_ROOT\gopher\shell\open\command HKEY_CLASSES_ROOT\gopher\shell\open\ddeexec\Application


??? ????? ?????? ??? ????????? ?? ??????? ????? ??

??????? ShellExecute API ???????? ????. ????? ???? ????? ?????? ?? ??? ????? ?????? ??? ????????? ?? ??????? ????? ??. ??? ?? ????? ?????? ??? ????????? ??????, ????? ShellExecute ?????? ???? ??? ????? ????? ??? ???? ???? ???? ????????? (URL). ???? ??? ????? ? ShellExecute ??? ????? ??????? ????????? ?? ??? URL ????? ??.

??? ??? ?????? Microsoft Visual C++ ?????? ??????? ????? ?? ???????? ???????? ??????? ???? ????? ??????? ShellExecute.
LONG r = ShellExecute(NULL, "open", "http://www.microsoft.com", NULL, NULL, SW_SHOWNORMAL);
				
???? ??????? Microsoft Visual Basic ??? ???? ????? ????? ShellExecute ?? ???????. ????? ?????? ??? ??? ??????? ?? ??? Win32api.txt ??????? ?? ???? ???? ????? Microsoft Visual Studio. ???? ???????? ?? ????? ?? ???? ???? ?? API ???? ???? ?? 6.0 Visual Studio.

?????? ShellExecute API ?? ??????? ???? ??????? ???????:
  1. ????? ????? ???? ?? Visual Basic.
  2. ??? EXE ?????.
  3. ????? ?? ??? ??????? ????? ??.
  4. ?? ????????? ???????? ??????? ?? ???????.
    Private Declare Function ShellExecute _
                                Lib "shell32.dll" _
                                Alias "ShellExecuteA"( _
                                ByVal hwnd As Long, _
                                ByVal lpOperation As String, _
                                ByVal lpFile As String, _
                                ByVal lpParameters As String, _
                                ByVal lpDirectory As String, _
                                ByVal nShowCmd As Long) _
                                As Long
    
    Private Sub Command1_Click()
       Dim r As Long
       r = ShellExecute(0, "open", "http://www.microsoft.com", 0, 0, 1)
    End Sub
    						
  5. ????? ??????? ?? ???? ??? ???? ???????? ??? URL ????? ?? ?? ?????? ??? ?????????.
ShellExecute API ??? ?????? ?? Microsoft Windows 95 ? Microsoft Windows NT 3.1 ?? ????? ????. ????? ??????? ShellExecute ?????? ?????? ??? ????????? ?? Win32 ???? ??????? Microsoft Internet Explorer ?? ??????? 1.0 ?????????? ??????. ?? ??? ?????? ??? ??????? ??? 3.x Microsoft Windows UNIX? ?? ??? MacIntosh ??????? ????????.

????? ??? ShellExecute

????? "??????" ???? ?????? ??????? ???. ??? ????? ??? ???????? ???? ????? ??? ????? ????? ??????? ?? ???? ??????? ???? ????. ?? ????? ???????? ??? ???????? ????? ?? ??? ?????????. ??? ?? ???? ?? ??? ??????? ?? ????? ?? ???????? ??????? ?????? Microsoft.

??? ???? ShellExecute URL ?????

???? ShellExecute ??????? ???? ??? ??????? ???? ???? ???? ????????? ShellExecute ???? ???????? ?? ????. ??? ???? ShellExecute ????? ?? ??????? ? ?? ?????? ???? ???????? ?? ?????? ?????? ?? ????????? ????. ??? ??? ?????? http://www.microsoft.com ??? ShellExecute ????? ShellExecute sub-string http:// ????????? ???? ShellExecute ????
HKEY_CLASSES_ROOT\http\shell\open
?????? ??? ??????? ??? ????? ?????. ??? ??? ?????? myfile.htm ??? ShellExecute ????? ShellExecute sub-string ".htm" ??? ?? ????. ???? ??? ShellExecute ????
HKEY_CLASSES_ROOT\.htm
? ??? ???? ???
HKEY_CLASSES_ROOT\htmlfile\shell\open
.

???? ???? ???? ?? ?????? ?????? URL ????? ?? ???? ???? ?? ??????? ???? ??? ??????? ??? ShellExecute ??? ???? ??????: http://www.microsoft.com ????? ?? www.microsoft.com. ??? ????? URL ???? ????, ???? ?? ?? ???? ShellExecute ?????? ???????? ???? ?????. ???? ???????? ??? ???? ShellExecute ?????? ?? ??? ?????? ????? www.*ftp.* ?? ?? ????? ???? ??? ??? ?????????? "???????? ??? ???? ??????? (HTTP)" ? "??? ??????? ???????? (FTP) ? ??? ???????.

????? ????? ShellExecute ?? ??? ??? ??? ??? ???? ????

????? ???? ShellExecute ???? ???????, ???? ???? ?? ??????? ??????
shell\open
. ??? ?? ????? ?????
shell\open\ddeexec
??????? ????? ???????? ?????? (DDE) ?? ??????? ?????? IExplore ???????? ?? WWW_OpenURL ??? ???? ???????? ??? ??????? ?????? ??? ??? ??????. ??????? ????? ????????? ??? ??? ??????? ?? ??????? ???? ????? ??? URL ???????. ??? ??? ??????? ?? ?????? ??? ??? ??????? DDE ? ShellExecute ?????? ????????? ???????? ?? ??????? ??????
shell\open\command
???? ????? ???????. re-broadcasts ?? ????? DDE ???????? ??? URL ???????.

?????

?????? ??? ???? ?? ????????? ??? ????????? ???????? ??? ? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
153774?? ??? ????? ???????? ?????????? Internet Explorer
?????? ?????? ?????? ???????? ?? ??? ??????? ???? ????? ?????? ?????? ?? Microsoft. ?? ???? Microsoft ?? ???? ? ?????? ?? ??????? ??? ???? ?? ???? ?????? "?? ??? ????????.

???????

???? ???????: 224816 - ????? ??? ??????: 17/???/1428 - ??????: 2.1
????? ???
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Internet Explorer 3.01
  • Microsoft Internet Explorer 3.02
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 4.01 Service Pack 1
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 5.0
  • Microsoft Internet Explorer 5.01
  • Microsoft Internet Explorer (Programming) 5.01 SP1
  • Microsoft Internet Explorer 5.5
  • Microsoft Internet Explorer (Programming) 5.5 SP1
  • Microsoft Internet Explorer (Programming) 5.5 SP2
  • Microsoft Internet Explorer (Programming) 6 (SP1)
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
????? ??????: 
kbmt kbinfo kbwebbrowser KB224816 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????224816

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com