These are strictly undocumented,I am using GetProfileBinary and WriteProfileBinary in my app to save the
WINDOWPLACEMENT structure, and it works
UINT nSize = 0 ;
LPBYTE pPlacementBytes = NULL ;
if ( AfxGetApp()->GetProfileBinary( "Window", "Placement",
&pPlacementBytes, &nSize ) )
{
ASSERT(pPlacementBytes != NULL);
if ( pPlacementBytes != NULL )
{
ASSERT(nSize == sizeof(WINDOWPLACEMENT));
if ( nSize == sizeof(WINDOWPLACEMENT) )
{
memcpy( &m_Placement, pPlacementBytes, nSize ) ;
bSized = true ;
}
These are strictly undocumented,I am using GetProfileBinary and WriteProfileBinary in my app to save the
WINDOWPLACEMENT structure, and it works
UINT nSize = 0 ;
LPBYTE pPlacementBytes = NULL ;
if ( AfxGetApp()->GetProfileBinary( "Window", "Placement",
&pPlacementBytes, &nSize ) )
{
ASSERT(pPlacementBytes != NULL);
if ( pPlacementBytes != NULL )
{
ASSERT(nSize == sizeof(WINDOWPLACEMENT));
if ( nSize == sizeof(WINDOWPLACEMENT) )
{
memcpy( &m_Placement, pPlacementBytes, nSize ) ;
bSized = true ;
}