어떻게 당신은 당신의 자신을 만들 모니커(URL 프로토콜)에서 윈도우 시스템의 차이점은 무엇입니까?

StackOverflow https://stackoverflow.com/questions/4638

  •  08-06-2019
  •  | 
  •  

문제

당신은 어떻게 사용하 모니커(또는 URL 프로토콜)에서 윈도우 시스템의 차이점은 무엇입니까?

예제:

  • :http:
  • mailto:
  • 서비스:

다른 팁

여기에 몇 가지 오래 된 델피 코드를 우리가 사용하는 방법으로 얻기에 웹 응용 프로그램을 시작하는 윈도우 프로그램에 대해 로컬로 사용자.

procedure InstallIntoRegistry;
var
  Reg: TRegistry;
begin
  Reg := TRegistry.Create;
  try
    Reg.RootKey := HKEY_CLASSES_ROOT;
    if Reg.OpenKey('moniker', True) then
    begin
      Reg.WriteString('', 'URL:Name of moniker');
      Reg.WriteString('URL Protocol', '');
      Reg.WriteString('Source Filter', '{E436EBB6-524F-11CE-9F53-0020AF0BA770}');
      Reg.WriteInteger('EditFlags', 2);

      if Reg.OpenKey('shell\open\command', True) then
      begin
        Reg.WriteString('', '"' + ParamStr(0) + '" "%1"');
      end;
    end else begin
      MessageBox(0, 'You do not have the necessary access rights to complete this installation!' + Chr(13) +
        'Please make sure you are logged in with a user account with administrative rights!', 'Access denied', 0);
      Exit;
    end;
  finally
    FreeAndNil(Reg);
  end;

  MessageBox(0, 'Application WebStart has been installed successfully!', 'Installed', 0);
end;

내부 OLE Craig Brockschmidt 아마 최고의 범위에서 모니커.하려면 좀 더 깊이 파고 이 항목,나는 추천합니다.그것은 또한 포용 디스크와 함께 제공되는 대 6.0 경우에,당신은 여전히 있다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top