精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 英語翻譯

    英語翻譯
    編程達(dá)人就不用多說了,
    英語達(dá)人請幫忙翻譯每一個從“/*”到“ */”中間的內(nèi)容
    /*
    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_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 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,
    __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;
    }
    其他人氣:542 ℃時間:2019-09-09 17:46:40
    優(yōu)質(zhì)解答
    /*
    How add your application to startup!
    把你的程序添加到開機(jī)啟動項的方法
    Author:K1u
    作者:K1u
    Site:k0h.org & k1u.org
    網(wǎng)站:k0h.org & k1u.org
    Disclaimer:I am not responsible for how you use this.
    聲明:我對你怎么使用這個程序不負(fù)責(zé)
    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或進(jìn)程文件名用GetModuleFileName()函數(shù)*/
    TCHAR szPath[MAX_PATH];
    GetModuleFileName(NULL,
    szPath,
    MAX_PATH);
    /* Create a New HKEY.
    創(chuàng)建一個鍵值*/
    HKEY newValue;
    /* Open Registry key.
    打開注冊表中的鍵*/
    RegOpenKey(HKEY_LOCAL_MACHINE,
    "Software\\Microsoft\\Windows\\CurrentVersion\\Run",
    &newValue);
    /* Note use HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run to add for the
    注意:HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run僅對當(dāng)前用戶有效
    current user only.
    Now give a new value.
    給鍵值賦新值
    Syntax for RegSetValueEx() function is
    RegSetValueEx()函數(shù)的調(diào)用方法為:
    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.
    關(guān)閉該鍵*/
    RegCloseKey(newValue);
    return 0;
    }
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版