|
|
Restart & Recovery Sample in C#
File Details
| Downloads: |
657 |
File Size: |
45.3kB |
| Posted By: |
martin |
Views: |
1137 |
| Date Added: |
20 Dec 2006 |
|
This is an example of using the new Windows Vista Restart and Recovery APIs from a C# Windows Forms application.
It's a good source for copying & pasting the DllImport specifications for the necessary unmanaged APIs.
The only subtlety in the sample is that, when your app crashes, the Form object is destroyed. The sample illustrates how to keep the data somewhere safe so that your recovery callback can grab it and save it to a file.
|
|