当前位置: 首页> 健康> 母婴 > 网页设计实践报告_我的家乡ppt模板免费下载_搜索引擎优化seo什么意思_接推广一般多少钱

网页设计实践报告_我的家乡ppt模板免费下载_搜索引擎优化seo什么意思_接推广一般多少钱

时间:2025/7/20 2:56:33来源:https://blog.csdn.net/jangdong/article/details/142614208 浏览次数:0次
网页设计实践报告_我的家乡ppt模板免费下载_搜索引擎优化seo什么意思_接推广一般多少钱
#include <iostream>
#include <stdlib.h> 
#include <tchar.h>
#include <string> 
#include <windows.h> 
#include <KnownFolders.h>
#include <shlobj.h>void shellrun1() {wchar_t system_buffer[MAX_PATH];system_buffer[0] = 0;::GetSystemDirectory(system_buffer, MAX_PATH);std::wstring sys_path(system_buffer);std::wstring rundll32 = sys_path + _T("\\rundll32.exe");std::wstring shell32dll = sys_path + _T("\\shell32.dll");std::wstring inetcpl = sys_path + _T("\\inetcpl.cpl,,4");std::wstring args(shell32dll);args.append(L",Control_RunDLL ");args.append(inetcpl);::ShellExecute(NULL, L"open", rundll32.c_str(), args.c_str(), NULL,SW_SHOWNORMAL);
}void shellrun2(std::string url) {char system_buffer[MAX_PATH];system_buffer[0] = 0;::GetSystemDirectoryA(system_buffer, MAX_PATH);std::string sys_path(system_buffer);std::string escaped_url(url);escaped_url.insert(0, "\"");escaped_url += "\"";if (reinterpret_cast<ULONG_PTR>(ShellExecuteA(NULL, "open", escaped_url.c_str(), NULL,sys_path.c_str(), SW_SHOWNORMAL)) <= 32) {return;}}
int main()
{//网络代理 只需将特定url粘贴打开即可,其他的更多参考下方微软链接std::string url("ms-settings:network-proxy");shellrun2(url);//相机设置std::string came_url("ms-settings:privacy-webcam");shellrun2(came_url);//搜索设置std::string search_url("ms-settings:search");shellrun2(search_url);}

//打开其他设置项参考: 
// https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app#network--internet

截取部分,需要打开的项复制进去即可

效果图:

关键字:网页设计实践报告_我的家乡ppt模板免费下载_搜索引擎优化seo什么意思_接推广一般多少钱

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: