标签:man 打开 注册 双击 \n world %s comm ++
使用自定义的协议打开应用程序
#include <stdio.h>
int main(int argc, char** argv)
{
int i;
printf("hello world!\n");
for (i = 0; i < argc; ++i)
{
printf("argv[%d] = %s\n", i, argv[i]);
}
getchar();
return 0;
}
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\test-url-protocol]
"URL Protocol"="c:\\test.exe"
@="fooProtocol"
[HKEY_CLASSES_ROOT\test-url-protocol\shell]
[HKEY_CLASSES_ROOT\test-url-protocol\shell\open]
[HKEY_CLASSES_ROOT\test-url-protocol\shell\open\command]
@="\"c:\\test.exe\" \"%1\""
test-url-protocol://xxx
(xxx是参数)标签:man 打开 注册 双击 \n world %s comm ++
原文地址:https://www.cnblogs.com/jffun-blog/p/10212025.html