Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WSABUF WSASend and WSAReceive and server question Pin
Kuniva17-Aug-03 2:09
Kuniva17-Aug-03 2:09 
GeneralRe: WSABUF WSASend and WSAReceive and server question Pin
Kuniva17-Aug-03 2:18
Kuniva17-Aug-03 2:18 
GeneralRe: WSABUF WSASend and WSAReceive and server question Pin
valikac17-Aug-03 5:34
valikac17-Aug-03 5:34 
GeneralCancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Kayembi16-Aug-03 8:25
Kayembi16-Aug-03 8:25 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Michael Dunn16-Aug-03 9:01
sitebuilderMichael Dunn16-Aug-03 9:01 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Kayembi16-Aug-03 11:57
Kayembi16-Aug-03 11:57 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Michael Dunn16-Aug-03 13:11
sitebuilderMichael Dunn16-Aug-03 13:11 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Kayembi16-Aug-03 14:54
Kayembi16-Aug-03 14:54 
Hi, thanks again for your reply, I'm grateful for your suggestions.

You are of course right, but the problem is that some of the (less responsible) users I am writing this program for *are* likely to reboot mid-program - with the intention of accessing the temporary files. I'm actually writing a freeware 3rd party packer and launcher for a "hobbyist" game engine. Because it is third party, it needs temporarily to write a few of the game files to disk (nothing can be done about that, short of writing a whole virtual file system which is way beyond my ability). The main concern of some of the users who will use this program to pack and launch their own games will be how safe their temporary files are (as these temporary files may be original models or even game scripts that have taken a lot of work). To facilitate this I have added about as much protection as is reasonable for files that have to be temporarily on the hard drive - the files are deleted if the program is exited or if the system is rebooted, and whilst the game is in action the user can be prevented from alt-tabbing to Windows to find the files (the last part is optional - most people, myself included, would not want to use a program that prevents the switching to Windows whilst in use, but I've included the option for those developers who want to release demos to other users of the engine whilst the game is in development, so that they can prevent others ripping their files).

So essentially, it's a security issue as opposed to a "cleanliness" issue, which is why I want to include the remove-on-reboot code but also cancel it if it proves unnecessary. I hope this makes sense. I'm aware that what I want to do isn't ideal, but it's kind of necessary.

Again, many thanks, and any further help that anyone can give would be much appreciated.

Cheers,
KB
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
PJ Arends16-Aug-03 15:38
professionalPJ Arends16-Aug-03 15:38 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Kayembi16-Aug-03 22:52
Kayembi16-Aug-03 22:52 
GeneralChange mouse button Pin
Svinnn16-Aug-03 7:41
sussSvinnn16-Aug-03 7:41 
GeneralRe: Change mouse button Pin
John R. Shaw16-Aug-03 8:42
John R. Shaw16-Aug-03 8:42 
GeneralMDIChildWnd flicker !!! Pin
_skidrow_vn_16-Aug-03 7:41
_skidrow_vn_16-Aug-03 7:41 
GeneralRe: MDIChildWnd flicker !!! Pin
John R. Shaw16-Aug-03 8:56
John R. Shaw16-Aug-03 8:56 
GeneralRe: MDIChildWnd flicker !!! Pin
_skidrow_vn_17-Aug-03 13:04
_skidrow_vn_17-Aug-03 13:04 
GeneralRe: MDIChildWnd flicker !!! Pin
John R. Shaw19-Aug-03 9:50
John R. Shaw19-Aug-03 9:50 
GeneralSerial Ports Pin
Nnamdi Onyeyiri16-Aug-03 7:10
Nnamdi Onyeyiri16-Aug-03 7:10 
GeneralRe: Serial Ports Pin
Trollslayer16-Aug-03 8:18
mentorTrollslayer16-Aug-03 8:18 
GeneralRe: Serial Ports Pin
Nnamdi Onyeyiri16-Aug-03 8:22
Nnamdi Onyeyiri16-Aug-03 8:22 
GeneralRe: Serial Ports Pin
Trollslayer16-Aug-03 8:56
mentorTrollslayer16-Aug-03 8:56 
GeneralRe: Serial Ports Pin
pxw16-Aug-03 11:20
pxw16-Aug-03 11:20 
GeneralRe: Serial Ports Pin
NigelQ16-Aug-03 16:50
NigelQ16-Aug-03 16:50 
GeneralRe: Serial Ports Pin
Nnamdi Onyeyiri16-Aug-03 22:18
Nnamdi Onyeyiri16-Aug-03 22:18 
GeneralRe: Serial Ports Pin
Ryan Binns16-Aug-03 23:42
Ryan Binns16-Aug-03 23:42 
GeneralRe: Serial Ports Pin
Nnamdi Onyeyiri16-Aug-03 23:44
Nnamdi Onyeyiri16-Aug-03 23:44 

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.