aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rpcs32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpcs32.cc')
-rw-r--r--lib/rpcs32.cc21
1 files changed, 19 insertions, 2 deletions
diff --git a/lib/rpcs32.cc b/lib/rpcs32.cc
index 85dd415..2175ef0 100644
--- a/lib/rpcs32.cc
+++ b/lib/rpcs32.cc
@@ -171,6 +171,22 @@ getMachineInfo(machineInfo &mi)
static unsigned long hhh;
Enum<rfsv::errs> rpcs32::
+regOpenIter(void)
+{
+ bufferStore a;
+ Enum<rfsv::errs> res;
+
+ a.addStringT("HKLM\\");
+ if (!sendCommand(rpcs::REG_OPEN_ITER, a))
+ return rfsv::E_PSI_FILE_DISC;
+ res = getResponse(a, true);
+ cout << "ro: r=" << res << " a=" << a << endl;
+ if (a.getLen() > 0)
+ hhh = a.getDWord(0);
+ return rfsv::E_PSI_GEN_NONE;
+}
+
+Enum<rfsv::errs> rpcs32::
configOpen(void)
{
bufferStore a;
@@ -179,8 +195,9 @@ configOpen(void)
if (!sendCommand(rpcs::CONFIG_OPEN, a))
return rfsv::E_PSI_FILE_DISC;
res = getResponse(a, true);
-cout << "co: r=" << res << " a=" << a << endl;
- hhh = a.getDWord(0);
+ cout << "co: r=" << res << " a=" << a << endl;
+ if (a.getLen() > 0)
+ hhh = a.getDWord(0);
return rfsv::E_PSI_GEN_NONE;
}