取消Wince App 应用启动动画和隐藏分区注册表项

 

在WinCE系统中,应用启动时窗体有一个动画效果(从中间往窗体边缘扩散开)。

有些人不想要此效果,可以通过修改注册表来完成。

 

[HKEY_LOCAL_MACHINE/system/gwe] 
"PORepaint"=dword:1

去掉APP窗口的动画显示效果 
"Animate"=dword:0

 

隐藏分区:

 

[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/FlashDrv/ROFATFS]

MountHidden 1: 隐藏/0: 不隐藏

注: 修改注册表后,需要重启系统或在CE控制面板的存贮管理中Unmount/Mount分区

/* * HKEY hKey: * HKEY_CLASSES_ROOT * HKEY_CURRENT_USER * HKEY_LOCAL_MACHINE * HKEY_USERS * LPCWSTR lpSubKey: * L"System/StorageManager/Profiles/FlashDrv/ROFATFS" * LPCTSTR lpValueName * L"MountHidden" */ BOOL CLeoZhengDlg::RegSetDword(HKEY hRoot,LPCWSTR lpSubKey,LPCTSTR lpValueName,DWORD dwValue) { HKEY hKey; DWORD dwRegType = REG_DWORD; DWORD dwGetValue = 0; DWORD dwSize = 4; LONG nRet = ERROR_SUCCESS; nRet = RegOpenKeyEx(hRoot,lpSubKey,0,0,&hKey); if(ERROR_SUCCESS == nRet) { nRet = RegQueryValueEx(hKey,lpValueName,NULL,&dwRegType,(BYTE *)&dwGetValue,&dwSize); if(ERROR_SUCCESS == nRet) { if(1 == dwGetValue) { nRet = RegSetValueEx(hKey,lpValueName,0,REG_DWORD,(BYTE *)&dwValue,sizeof(DWORD)); if(ERROR_SUCCESS == nRet) { } } } RegFlushKey(hKey); RegCloseKey(hKey); } return TRUE; } 

 

 

你可能感兴趣的:(user,null,byte,WinCE)