I don't think with a response like the above I'll be leaving any further comments on this site again. The immaturity is clearly shown just by the wording alone.
e.g. to help in your misunderstanding of your comments.
code:
// Partial e.g. Struct Store
// The structure below contains all of the AppBar settings that
// can be saved/loaded in/from the Registry.
typedef struct {
DWORD m_cbSize; // Size of this structure
BOOL m_Scroll_Text_COLOR; // Default Scroll Text Color Set
BOOL m_Scroll_Background_COLOR; // Default Scroll Background Color Set
COLORREF m_TXT_COLOR; // Scroll Actual Text Color
COLORREF m_BKG_COLOR; // Scroll Actual Background Color
TCHAR m_FONT_NAME[25];
INT m_FONT_SIZE; // Scroll Font Size
INT m_SPEED; // Scroll Speed Viewing
LONG m_FREQUENCY; // Frequency of viewing each line
TCHAR m_UserNameGmail[26];
TCHAR m_PasswordGmail[26];
} APPBARSTATE2, *PAPPBARSTATE2;
// Setup default state data for the AppBar
APPBARSTATE2 abs;
abs.m_cbSize = sizeof(abs);
abs.m_Scroll_Text_COLOR = TRUE; // Default Scroll Text Color Set
abs.m_Scroll_Background_COLOR = TRUE; // Default Scroll Background Color Set
abs.m_TXT_COLOR = m_crTextColor;
abs.m_BKG_COLOR = m_crBackColor; // 16767411; // Actual Default Background Color
abs.m_FONT_SIZE = m_size;
abs.m_SPEED = m_speed;
strcpy(abs.m_FONT_NAME, m_FONT_NAME);
abs.m_FONT_SIZE = m_FONT_SIZE;
abs.m_FREQUENCY = m_FREQUENCY;
strcpy(abs.m_UserNameGmail,m_UserNameGmail);
strcpy(abs.m_PasswordGmail, m_PasswordGmail);
// Create and Write imaietoolbar File Identification Into Registry?
if(! ( RegSetValueEx( scrollerOptions, // subkey handle
"ANYNAMEVAR", // value name
0, // must be zero
REG_BINARY,
(BYTE*)&abs,
sizeof(abs) ) == ERROR_SUCCESS ) )
{
AfxMessageBox("Unable to set ** Write ** ietbar ANYNAMEVAR ** label !", MB_ICONSTOP);
// _exit(0);
}
//Close Keys
rctCloseKey(scrollerOptions, _T("ScrollerOptions"));
// Partial e.g Binary Store
BYTE abSample [256];
HKEY hKey = NULL;
REGSAM sam = KEY_READ;
char* pszKey = "Software\\Blob";
if ( ERROR_SUCCESS != RegOpenKeyEx ( HKEY_LOCAL_MACHINE, pszKey, 0, sam, &hKey))\
{
// error
}
else
{
DWORD dwType = REG_BINARY;
DWORD dwSize = sizeof ( abSample);
if ( ERROR_SUCCESS != RegQueryValueEx ( hKey, "ValueName", NULL, &dwType, ( LPBYTE) abSample, &dwSize))
{
// error
}
}
RegCloseKey ( hKey);
On a personal note:
I will not be posting any longer here on Patchou's website.
I personally thank him and the Admins for allowing me to make
postings and comments. Thanks again Messenger Plus!
Respectfully,
LipoToid