diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -24,9 +24,16 @@ void test() DWORD exitcode;
string output;
TCHAR *bin_path = UniGetContactSettingUtf(NULL, szModuleName, "szGpgBinPath", _T(""));
+ TCHAR *home_dir = UniGetContactSettingUtf(NULL, szModuleName, "szHomePath", _T(""));
TCHAR bin[512];
_tcscpy(bin, bin_path);
+ _tcscat(bin, _T(" --homedir "));
+ _tcscat(bin, _T("\""));
+ _tcscat(bin, home_dir);
+ _tcscat(bin, _T("\""));
_tcscat(bin, _T(" --help"));
pxResult pxresult=pxExecute(bin,"",&output,&exitcode);
+ mir_free(bin_path);
+ mir_free(home_dir);
MessageBoxA(0, output.c_str(), "", MB_OK);
}
\ No newline at end of file |