MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SetRegistryConfig

Method SetRegistryConfig

source/ParallelPrinter.cpp:205–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void ParallelPrinterCard::SetRegistryConfig(void)
206{
207 std::string regSection = RegGetConfigSlotSection(m_slot);
208 RegSaveValue(regSection.c_str(), REGVALUE_DUMP_TO_PRINTER, TRUE, GetDumpToPrinter() ? 1 : 0);
209 RegSaveValue(regSection.c_str(), REGVALUE_CONVERT_ENCODING, TRUE, GetConvertEncoding() ? 1 : 0);
210 RegSaveValue(regSection.c_str(), REGVALUE_FILTER_UNPRINTABLE, TRUE, GetFilterUnprintable() ? 1 : 0);
211 RegSaveValue(regSection.c_str(), REGVALUE_PRINTER_APPEND, TRUE, GetPrinterAppend() ? 1 : 0);
212 RegSaveString(regSection.c_str(), REGVALUE_PRINTER_FILENAME, TRUE, GetFilename());
213 RegSaveValue(regSection.c_str(), REGVALUE_PRINTER_IDLE_LIMIT, TRUE, GetIdleLimit());
214}
215
216//===========================================================================
217

Callers 1

ApplyConfigAfterCloseMethod · 0.80

Calls 3

RegGetConfigSlotSectionFunction · 0.85
RegSaveValueFunction · 0.85
RegSaveStringFunction · 0.85

Tested by

no test coverage detected