BCGControlBar Pro for MFC
BOOL CBCGPKeyboardManager::SaveState ( LPCTSTR  lpszProfileName = NULL,
CFrameWnd *  pDefaultFrame = NULL 
)

Saves accelerator table state to the Windows registry.

Returns
Nonzero if the accelerator table state was saved successfully.

Use this function to save the accelerator table state into Windows registry according to the path specified by the lpszProfileName parameter. Next time the application run, the state can be loaded by the LoadState() call.

Parameters
lpszProfileNameSpecifies the Windows registry path
pDefaultFrameA pointer to a frame window object.