Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 ShellExecute 将用户的默认浏览器打开到特定的网站。
我想在 URL 中添加一个引用字段。
在继续使用 ShellExecute 的同时可以这样做吗?
如果没有,是否有任何其他建议可以让用户默认浏览器打开带有引用者的 URL?
引荐来源网址是 HTTP 协议的一部分。ShellExecute 打开一个应用程序,然后通过发送 HTTP 请求来处理 URL。正是那个应用程序指定了推荐人。
您可以做的最好的事情是在 URL 中包含一些内容并在 HTTP 服务器端处理它(假设您控制着服务器端)。