#include #include #include #include #include #include "board/config.h" void k92x0249_config_load(struct k92x0249_config *cfg, const wchar_t *filename) { assert(cfg != NULL); assert(filename != NULL); wchar_t wserial[17]; cfg->read_button = GetPrivateProfileIntW(L"reader", L"read_button", VK_RETURN, filename); GetPrivateProfileStringW(L"reader", L"card_serial", L"7020392000000000", wserial, _countof(wserial), filename); wcstombs_s(NULL, cfg->serial, sizeof(cfg->serial), wserial, sizeof(cfg->serial) - 1); } void k9101258_config_load(struct usbio_config *cfg, const wchar_t *filename) { assert(cfg != NULL); assert(filename != NULL); wchar_t wserial[17]; cfg->enabled = GetPrivateProfileIntW(L"usbio", L"enable", 1, filename); } void dongle_config_load(struct dongle_config *cfg, const wchar_t *filename) { assert(cfg != NULL); assert(filename != NULL); GetPrivateProfileStringW(L"reader", L"card_serial", L"702039200000000", cfg->serial, _countof(cfg->serial), filename); }