Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to close opened files Pin
toxcct23-Jan-07 22:14
toxcct23-Jan-07 22:14 
GeneralRe: how to close opened files Pin
pavan_sw23-Jan-07 22:25
pavan_sw23-Jan-07 22:25 
GeneralRe: how to close opened files Pin
toxcct23-Jan-07 22:33
toxcct23-Jan-07 22:33 
QuestionRe: how to close opened files Pin
Roger Stoltz23-Jan-07 22:23
Roger Stoltz23-Jan-07 22:23 
AnswerRe: how to close opened files Pin
pavan_sw23-Jan-07 22:28
pavan_sw23-Jan-07 22:28 
AnswerRe: how to close opened files Pin
Roger Stoltz23-Jan-07 22:59
Roger Stoltz23-Jan-07 22:59 
GeneralRe: how to close opened files Pin
pavan_sw24-Jan-07 1:22
pavan_sw24-Jan-07 1:22 
GeneralRe: how to close opened files Pin
Roger Stoltz24-Jan-07 2:41
Roger Stoltz24-Jan-07 2:41 
If you're in control over the service that grants access to the files on the memory stick, can't you simply register the process handle in the service?
For info about how to close an application or process: see here[^].
The article also contains a code example which is great to have as reference.

The tricky part is to know what processes that are accessing the memory stick when you want to disable it.
Perhaps you can find anything useful in the CP section about processes here[^].

Hope this helps
--
Roger


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

AnswerRe: how to close opened files Pin
Waldermort23-Jan-07 22:36
Waldermort23-Jan-07 22:36 
QuestionContextMenu : First Item selected Pin
baerten23-Jan-07 21:42
baerten23-Jan-07 21:42 
AnswerRe: ContextMenu : First Item selected Pin
Nibu babu thomas23-Jan-07 21:53
Nibu babu thomas23-Jan-07 21:53 
GeneralRe: ContextMenu : First Item selected Pin
baerten23-Jan-07 22:12
baerten23-Jan-07 22:12 
GeneralRe: ContextMenu : First Item selected Pin
Nibu babu thomas23-Jan-07 22:18
Nibu babu thomas23-Jan-07 22:18 
Questionhelp Pin
Bravoone_200623-Jan-07 21:00
Bravoone_200623-Jan-07 21:00 
AnswerRe: help Pin
KKumarTG24-Jan-07 0:10
KKumarTG24-Jan-07 0:10 
AnswerRe: help Pin
S Douglas24-Jan-07 1:29
professionalS Douglas24-Jan-07 1:29 
QuestionApllication Error Pin
siddharthsan23-Jan-07 20:57
siddharthsan23-Jan-07 20:57 
AnswerRe: Apllication Error Pin
Cedric Moonen23-Jan-07 21:00
Cedric Moonen23-Jan-07 21:00 
GeneralRe: Apllication Error Pin
siddharthsan23-Jan-07 22:30
siddharthsan23-Jan-07 22:30 
AnswerRe: Apllication Error Pin
Don Box23-Jan-07 21:01
Don Box23-Jan-07 21:01 
GeneralRe: Apllication Error Pin
toxcct23-Jan-07 21:43
toxcct23-Jan-07 21:43 
GeneralRe: Apllication Error Pin
Don Box23-Jan-07 22:34
Don Box23-Jan-07 22:34 
GeneralRe: Apllication Error Pin
toxcct23-Jan-07 22:39
toxcct23-Jan-07 22:39 
GeneralRe: Apllication Error Pin
Don Box23-Jan-07 23:58
Don Box23-Jan-07 23:58 
JokeRe: Apllication Error Pin
Nibu babu thomas24-Jan-07 0:05
Nibu babu thomas24-Jan-07 0:05 

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.