Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcustom messages in windows forms app. Pin
Member 341989110-Aug-05 19:43
Member 341989110-Aug-05 19:43 
GeneralRe: custom messages in windows forms app. Pin
ThatsAlok10-Aug-05 20:40
ThatsAlok10-Aug-05 20:40 
GeneralRe: custom messages in windows forms app. Pin
S Douglas10-Aug-05 22:55
professionalS Douglas10-Aug-05 22:55 
GeneralHelp with fseek() Pin
Raza568010-Aug-05 19:26
Raza568010-Aug-05 19:26 
GeneralRe: Help with fseek() Pin
El Corazon10-Aug-05 19:59
El Corazon10-Aug-05 19:59 
GeneralRe: Help with fseek() Pin
Jose Lamas Rios10-Aug-05 20:11
Jose Lamas Rios10-Aug-05 20:11 
GeneralXP System Restore Pin
yqzq10-Aug-05 18:05
yqzq10-Aug-05 18:05 
GeneralRe: XP System Restore Pin
Supriya Tonape23-Aug-05 20:05
Supriya Tonape23-Aug-05 20:05 
Hi, Hope below function elps U.

========================================================
HRESULT CreateRestorePoint(void)
{
RESTOREPOINTINFO RestPtInfo;
STATEMGRSTATUS SMgrStatus;

// Initialize the RESTOREPOINTINFO structure
RestPtInfo.dwEventType = BEGIN_SYSTEM_CHANGE;

// Notify the system that
// An application is to be installed.
RestPtInfo.dwRestorePtType = APPLICATION_INSTALL;

// Set RestPtInfo.llSequenceNumber.
RestPtInfo.llSequenceNumber = 0;

// String to be displayed by System Restore
strcpy(RestPtInfo.szDescription, "New Restore Point");

// Notify the system that changes are to be made and that
// the beginning of the restore point should be marked.
if(!SRSetRestorePoint(&RestPtInfo, &SMgrStatus))
{
cout<<"Couldn't set the restore point as it is disabled !\n";
return(HRESULT_FROM_WIN32(SMgrStatus.nStatus));
}
// When the call succeeds, the SmgrStatus, llSequenceNumber
//wil have the sequence number for the restore point.


// The application should perform some installation
// operations here.


// Re-initialize the RESTOREPOINTINFO structure to notify the
// system that the operation is finished.
RestPtInfo.dwEventType = END_SYSTEM_CHANGE;

// End the system change by returning the sequence number
// received from the first call to SRSetRestorePoint()
RestPtInfo.llSequenceNumber = SMgrStatus.llSequenceNumber;

// Notify the system that the operation is done and that this
// is the end of the restore point.
if(!SRSetRestorePoint(&RestPtInfo, &SMgrStatus))
{
cout << "Couldn't set the end of the restore point."<
GeneralList Subitem Background! Pin
LiYS10-Aug-05 17:59
LiYS10-Aug-05 17:59 
GeneralRe: List Subitem Background! Pin
Jose Lamas Rios10-Aug-05 18:10
Jose Lamas Rios10-Aug-05 18:10 
GeneralRe: List Subitem Background! Pin
LiYS10-Aug-05 18:34
LiYS10-Aug-05 18:34 
GeneralRe: List Subitem Background! Pin
Jose Lamas Rios10-Aug-05 19:54
Jose Lamas Rios10-Aug-05 19:54 
GeneralRe: List Subitem Background! Pin
LiYS10-Aug-05 20:36
LiYS10-Aug-05 20:36 
GeneralRe: List Subitem Background! Pin
LiYS10-Aug-05 20:46
LiYS10-Aug-05 20:46 
GeneralRe: List Subitem Background! Pin
Jose Lamas Rios10-Aug-05 21:17
Jose Lamas Rios10-Aug-05 21:17 
GeneralRe: List Subitem Background! Pin
LiYS10-Aug-05 21:23
LiYS10-Aug-05 21:23 
GeneralRe: List Subitem Background! Pin
Jose Lamas Rios10-Aug-05 21:39
Jose Lamas Rios10-Aug-05 21:39 
GeneralRe: List Subitem Background! Pin
LiYS10-Aug-05 21:43
LiYS10-Aug-05 21:43 
GeneralNewbie need help..! Pin
cue_ball10-Aug-05 16:48
cue_ball10-Aug-05 16:48 
GeneralRe: Newbie need help..! Pin
Christian Graus10-Aug-05 16:53
protectorChristian Graus10-Aug-05 16:53 
GeneralRe: Newbie need help..! Pin
cue_ball10-Aug-05 16:59
cue_ball10-Aug-05 16:59 
GeneralRe: Newbie need help..! Pin
Christian Graus10-Aug-05 17:01
protectorChristian Graus10-Aug-05 17:01 
GeneralRe: Newbie need help..! Pin
cue_ball10-Aug-05 17:05
cue_ball10-Aug-05 17:05 
GeneralRe: Newbie need help..! Pin
Christian Graus10-Aug-05 17:06
protectorChristian Graus10-Aug-05 17:06 
GeneralRe: Newbie need help..! Pin
cue_ball10-Aug-05 17:10
cue_ball10-Aug-05 17:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.