Windows システム上で独自のモニカ (URL プロトコル) を作成するにはどうすればよいですか?
質問
Windows システム上で独自のカスタム モニカ (または URL プロトコル) を作成するにはどうすればよいですか?
例:
- http:
- メールアドレス:
- サービス:
解決
を見てみましょう URL モニカーの作成と使用 , 非同期プラガブルプロトコルについて そして URLプロトコルへのアプリケーションの登録 MSDN より
他のヒント
ここでは、Web アプリケーションでショートカットを取得し、ユーザーが Windows プログラムをローカルで起動する方法として使用した古い Delphi コードをいくつか示します。
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 の記事は、おそらくあだ名に関して最もよく報道されています。このトピックをもう少し深く掘り下げたい場合は、この本を入手することをお勧めします。まだお持ちの場合に備えて、VS 6.0 に付属の MSDN ディスクにも含まれています。
所属していません StackOverflow