void vncProperties::LoadUserPrefs(HKEY appkey) { // LOAD USER PREFS FROM THE SELECTED KEY return; // Connection prefs m_pref_SockConnect=LoadInt(appkey, "SocketConnect", m_pref_SockConnect); m_pref_HTTPConnect=LoadInt(appkey, "HTTPConnect", m_pref_HTTPConnect); m_pref_AutoPortSelect=LoadInt(appkey, "AutoPortSelect", m_pref_AutoPortSelect); m_pref_PortNumber=LoadInt(appkey, "PortNumber", m_pref_PortNumber); m_pref_IdleTimeout=LoadInt(appkey, "IdleTimeout", m_pref_IdleTimeout); m_pref_RemoveWallpaper=LoadInt(appkey, "RemoveWallpaper", m_pref_RemoveWallpaper); // Connection querying settings m_pref_QuerySetting=LoadInt(appkey, "QuerySetting", m_pref_QuerySetting); m_pref_QueryTimeout=LoadInt(appkey, "QueryTimeout", m_pref_QueryTimeout); // Load the password LoadPassword(appkey, m_pref_passwd); // CORBA Settings m_pref_CORBAConn=LoadInt(appkey, "CORBAConnect", m_pref_CORBAConn); // Remote access prefs m_pref_EnableRemoteInputs=LoadInt(appkey, "InputsEnabled", m_pref_EnableRemoteInputs); m_pref_LockSettings=LoadInt(appkey, "LockSetting", m_pref_LockSettings); m_pref_DisableLocalInputs=LoadInt(appkey, "LocalInputsDisabled", m_pref_DisableLocalInputs); // Polling prefs m_pref_PollUnderCursor=LoadInt(appkey, "PollUnderCursor", m_pref_PollUnderCursor); m_pref_PollForeground=LoadInt(appkey, "PollForeground", m_pref_PollForeground); m_pref_PollFullScreen=LoadInt(appkey, "PollFullScreen", m_pref_PollFullScreen); m_pref_PollConsoleOnly=LoadInt(appkey, "OnlyPollConsole", m_pref_PollConsoleOnly); m_pref_PollOnEventOnly=LoadInt(appkey, "OnlyPollOnEvent", m_pref_PollOnEventOnly); }
int main(void) { NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//设置系统中断优先级分组2 delay_init(168); //延时初始化 uart_init(9600); //串口1初始化波特率为9600 uart3_init(9600); //串口3初始化波特率为9600 LED_Init(); //初始化LED端口 EXTIX_Init(); //初始化外部中断输入 printf("keyup:写块数据中断!\r\n"); printf("key0:读块数据中断!\r\n"); printf("key1:读卡号中断!\r\n"); LoadPassword(); //装载密码 //等待中断发生 while(1) { } }