题目
英语翻译
编程达人就不用多说了,
英语达人请帮忙翻译每一个从“/*”到“ */”中间的内容
/*
How add your application to startup!
Author:K1u
Site:k0h.org & k1u.org
Disclaimer:I am not responsible for how you use this.
This is purely for educational purposes.
BTW:If you wish to use this in your application give me a shout.
*/
#include
int main(void)
{
/* Grab filename of process/exe using GetModuleFileName() function.*/
TCHAR szPath[MAX_PATH];
GetModuleFileName(NULL,
szPath,
MAX_PATH);
/* Create a New HKEY.*/
HKEY newValue;
/* Open Registry key.*/
RegOpenKey(HKEY_LOCAL_MACHINE,
"Software\Microsoft\Windows\CurrentVersion\Run",
&newValue);
/* Note use HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun to add for the
current user only.
Now give a new value.
Syntax for RegSetValueEx() function is
LONG WINAPI RegSetValueEx(
__in HKEY hKey,
__in_opt LPCTSTR lpValueName,
__reserved DWORD Reserved,
提问时间:2020-11-02
编程达人就不用多说了,
英语达人请帮忙翻译每一个从“/*”到“ */”中间的内容
/*
How add your application to startup!
Author:K1u
Site:k0h.org & k1u.org
Disclaimer:I am not responsible for how you use this.
This is purely for educational purposes.
BTW:If you wish to use this in your application give me a shout.
*/
#include
int main(void)
{
/* Grab filename of process/exe using GetModuleFileName() function.*/
TCHAR szPath[MAX_PATH];
GetModuleFileName(NULL,
szPath,
MAX_PATH);
/* Create a New HKEY.*/
HKEY newValue;
/* Open Registry key.*/
RegOpenKey(HKEY_LOCAL_MACHINE,
"Software\Microsoft\Windows\CurrentVersion\Run",
&newValue);
/* Note use HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun to add for the
current user only.
Now give a new value.
Syntax for RegSetValueEx() function is
LONG WINAPI RegSetValueEx(
__in HKEY hKey,
__in_opt LPCTSTR lpValueName,
__reserved DWORD Reserved,
提问时间:2020-11-02
答案
/*
How add your application to startup!
把你的程序添加到开机启动项的方法
Author:K1u
作者:K1u
Site:k0h.org & k1u.org
网站:k0h.org & k1u.org
Disclaimer:I am not responsible for how you use this.
声明:我对你怎么使用这个程序不负责
This is purely for educational purposes.
这单纯的只是教育目的
BTW:If you wish to use this in your application give me a shout.
另:如果要用在你的程序里,跟我打声招呼
*/
#include
int main(void)
{
/* Grab filename of process/exe using GetModuleFileName() function.
获取exe或进程文件名用GetModuleFileName()函数*/
TCHAR szPath[MAX_PATH];
GetModuleFileName(NULL,
szPath,
MAX_PATH);
/* Create a New HKEY.
创建一个键值*/
HKEY newValue;
/* Open Registry key.
打开注册表中的键*/
RegOpenKey(HKEY_LOCAL_MACHINE,
"Software\Microsoft\Windows\CurrentVersion\Run",
&newValue);
/* Note use HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun to add for the
注意:HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun仅对当前用户有效
current user only.
Now give a new value.
给键值赋新值
Syntax for RegSetValueEx() function is
RegSetValueEx()函数的调用方法为:
LONG WINAPI RegSetValueEx(
__in HKEY hKey,
__in_opt LPCTSTR lpValueName,
__reserved DWORD Reserved,
__in DWORD dwType,
__in_opt const BYTE* lpData,
__in DWORD cbData
);
RegSetValueEx(newValue,
"Name_Me_Please",
0,
REG_SZ,
(LPBYTE)szPath,
sizeof(szPath));
/* Close the key.
关闭该键*/
RegCloseKey(newValue);
return 0;
}
How add your application to startup!
把你的程序添加到开机启动项的方法
Author:K1u
作者:K1u
Site:k0h.org & k1u.org
网站:k0h.org & k1u.org
Disclaimer:I am not responsible for how you use this.
声明:我对你怎么使用这个程序不负责
This is purely for educational purposes.
这单纯的只是教育目的
BTW:If you wish to use this in your application give me a shout.
另:如果要用在你的程序里,跟我打声招呼
*/
#include
int main(void)
{
/* Grab filename of process/exe using GetModuleFileName() function.
获取exe或进程文件名用GetModuleFileName()函数*/
TCHAR szPath[MAX_PATH];
GetModuleFileName(NULL,
szPath,
MAX_PATH);
/* Create a New HKEY.
创建一个键值*/
HKEY newValue;
/* Open Registry key.
打开注册表中的键*/
RegOpenKey(HKEY_LOCAL_MACHINE,
"Software\Microsoft\Windows\CurrentVersion\Run",
&newValue);
/* Note use HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun to add for the
注意:HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun仅对当前用户有效
current user only.
Now give a new value.
给键值赋新值
Syntax for RegSetValueEx() function is
RegSetValueEx()函数的调用方法为:
LONG WINAPI RegSetValueEx(
__in HKEY hKey,
__in_opt LPCTSTR lpValueName,
__reserved DWORD Reserved,
__in DWORD dwType,
__in_opt const BYTE* lpData,
__in DWORD cbData
);
RegSetValueEx(newValue,
"Name_Me_Please",
0,
REG_SZ,
(LPBYTE)szPath,
sizeof(szPath));
/* Close the key.
关闭该键*/
RegCloseKey(newValue);
return 0;
}
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点
- 1国产165型单缸4冲程汽油的汽缸直径为65mm,活塞冲程长55mm满负荷工作时做功冲程燃气的平均压强为9.58X10的五次方Pa,飞轮的转速是1500r|min.1.求这种汽油机满负荷工作时做功的功率
- 23x-2y=9 x-3y=2 x+y=5 x+2y=3 y=x 2x+y=8
- 3纸的总页数一定,每本的页数和装订的本数成不成比比例?
- 4设身处地这个成语中处的读音
- 5化简求值 当(x-3/16)²+|y+3/17|=0时,求[(y-2x)·(-2x-y)-4(x-2y)²]÷3y的值
- 6已知(a一b)(a^2+ab十b^2)/3一a^2b十ab^2=(a一b)^2且a≠b,则a一b=__!怎么写.
- 7什么植物适合在偏碱性的土壤中种植?
- 8已知M^2+3M+6=9,则代数式1/3M^2+M-2=?
- 9诗人我饿什么用物品来寄托思乡之情?
- 10用胶水把邮票粘贴在信封上,胶水干了后很难直接把邮票完整的揭下来,为什么?