Optimizing Resident Flash Arrays in Windows CE Devices
By Dennis Edwards and Keith Garvin, November 01, 2001
Native support for resident flash devices has been missing from the Windows CE OS. Programmers have to handle details such as power interruptions, bad sectors, and memory optimization on their own. FlashFX is memory-management software that helps with these challenges.
Optimizing Resident Flash Arrays in Windows CE Devices
Example 2:
Establishing FlashFX persistent registry functionality
void EstablishFXRegistryFunctions( void )
{
extern DWORD FXReadRegistryFromOEM(DWORD dwFlags, LPBYTE pBuf, DWORD len);
extern DWORD (*pReadRegistryFromOEM)(DWORD dwFlags, LPBYTE lpData, DWORD cbData);
extern BOOL FXWriteRegistryToOEM(DWORD dwFlags, LPBYTE pBuf, DWORD len);
extern BOOL(*pWriteRegistryToOEM)(DWORD dwFlags, LPBYTE lpData, DWORD cbData);
pReadRegistryFromOEM = FXReadRegistryFromOEM;
pWriteRegistryToOEM = FXWriteRegistryToOEM;
}