From 108cbdee49661d0c6e0a8980795c5593dc077d91 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 9 Oct 2000 19:54:42 +0000 Subject: Added a hack for Jotter on S5mx and some experimental stuff. --- lib/rpcs32.cc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'lib/rpcs32.cc') diff --git a/lib/rpcs32.cc b/lib/rpcs32.cc index 85dd415..2175ef0 100644 --- a/lib/rpcs32.cc +++ b/lib/rpcs32.cc @@ -170,6 +170,22 @@ getMachineInfo(machineInfo &mi) static unsigned long hhh; +Enum rpcs32:: +regOpenIter(void) +{ + bufferStore a; + Enum 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 rpcs32:: configOpen(void) { @@ -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; } -- cgit v1.2.3