mirror of
https://github.com/eliboa/TegraRcmGUI.git
synced 2024-11-28 13:12:05 +00:00
minor fixes
This commit is contained in:
parent
ad20c28501
commit
74fa514608
3 changed files with 12 additions and 9 deletions
|
@ -194,10 +194,19 @@ void DialogTab03::CleanRegestry() {
|
||||||
if (lnRes != ERROR_FILE_NOT_FOUND)
|
if (lnRes != ERROR_FILE_NOT_FOUND)
|
||||||
{
|
{
|
||||||
//Remove regestry value
|
//Remove regestry value
|
||||||
lnRes = RegDeleteValueA(hKey, key.c_str());
|
lnRes = RegOpenKeyEx(HKEY_CURRENT_USER,
|
||||||
|
_T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"),
|
||||||
|
0L, KEY_WRITE,
|
||||||
|
&hKey);
|
||||||
|
|
||||||
// Create new shortcut
|
if (lnRes != ERROR_FILE_NOT_FOUND)
|
||||||
CreateLink();
|
{
|
||||||
|
//Remove regestry value
|
||||||
|
lnRes = RegDeleteValueA(hKey, subkey.c_str());
|
||||||
|
|
||||||
|
// Create new shortcut
|
||||||
|
CreateLink();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,10 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
//#define _WIN32_DCOM
|
|
||||||
//#include <comdef.h>
|
|
||||||
//#include <taskschd.h>
|
|
||||||
//#pragma comment(lib, "taskschd.lib")
|
|
||||||
//#pragma comment(lib, "comsupp.lib")
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "TegraRcmGUIDlg.h"
|
#include "TegraRcmGUIDlg.h"
|
||||||
#include "TegraRcm.h"
|
#include "TegraRcm.h"
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue