Click here to Skip to main content
15,908,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSearching for a sting in a CFile ? Pin
USAFHokie8022-Aug-08 4:01
USAFHokie8022-Aug-08 4:01 
AnswerRe: Searching for a sting in a CFile ? Pin
Wes Aday22-Aug-08 4:06
professionalWes Aday22-Aug-08 4:06 
GeneralRe: Searching for a sting in a CFile ? Pin
USAFHokie8022-Aug-08 4:11
USAFHokie8022-Aug-08 4:11 
AnswerRe: Searching for a sting in a CFile ? Pin
Hamid_RT22-Aug-08 4:35
Hamid_RT22-Aug-08 4:35 
AnswerRe: Searching for a sting in a CFile ? Pin
David Crow22-Aug-08 8:21
David Crow22-Aug-08 8:21 
QuestionHow to check whether user has delete permission on a file Pin
jpg64222-Aug-08 3:21
jpg64222-Aug-08 3:21 
QuestionUSB and CD ROM Enable/Disable Pin
ameyakoshti22-Aug-08 2:09
ameyakoshti22-Aug-08 2:09 
AnswerRe: USB and CD ROM Enable/Disable [modified] Pin
Perspx22-Aug-08 2:23
Perspx22-Aug-08 2:23 
I don't know about removing power but you can lock volumes with DeviceIoControl() with the FSCTL_LOCK_VOLUME which means that your process has exclusive access to that volume. Take a look at the documentation here. You could do this with the CD drive.

You can disable USB ports from the registry (which can be done programatically); take a look at this article for more info.

Hope this helps,
--Perspx

"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia

Introduction to Object-Oriented JavaScript

modified on Friday, August 22, 2008 8:44 AM

QuestionRe: USB and CD ROM Enable/Disable Pin
ameyakoshti22-Aug-08 18:21
ameyakoshti22-Aug-08 18:21 
AnswerRe: USB and CD ROM Enable/Disable Pin
Jijo.Raj22-Aug-08 2:33
Jijo.Raj22-Aug-08 2:33 
AnswerRe: USB and CD ROM Enable/Disable Pin
vikas amin22-Aug-08 4:26
vikas amin22-Aug-08 4:26 
Question.Net passport authentication samples? Pin
George_George22-Aug-08 1:57
George_George22-Aug-08 1:57 
GeneralRe: .Net passport authentication samples? Pin
led mike22-Aug-08 5:42
led mike22-Aug-08 5:42 
GeneralRe: .Net passport authentication samples? Pin
George_George24-Aug-08 19:18
George_George24-Aug-08 19:18 
QuestionRe: .Net passport authentication samples? Pin
led mike26-Aug-08 7:15
led mike26-Aug-08 7:15 
AnswerRe: .Net passport authentication samples? Pin
George_George26-Aug-08 15:32
George_George26-Aug-08 15:32 
AnswerRe: .Net passport authentication samples? Pin
George_George26-Aug-08 15:43
George_George26-Aug-08 15:43 
GeneralRe: .Net passport authentication samples? Pin
led mike27-Aug-08 6:02
led mike27-Aug-08 6:02 
GeneralRe: .Net passport authentication samples? Pin
George_George27-Aug-08 16:07
George_George27-Aug-08 16:07 
GeneralRe: .Net passport authentication samples? Pin
led mike28-Aug-08 5:25
led mike28-Aug-08 5:25 
GeneralRe: .Net passport authentication samples? Pin
George_George1-Sep-08 3:21
George_George1-Sep-08 3:21 
QuestionIs it any DLL problem? Pin
krishna Vuppala22-Aug-08 1:05
krishna Vuppala22-Aug-08 1:05 
AnswerRe: Is it any DLL problem? Pin
KarstenK22-Aug-08 1:56
mveKarstenK22-Aug-08 1:56 
GeneralRe: Is it any DLL problem? Pin
krishna Vuppala22-Aug-08 2:03
krishna Vuppala22-Aug-08 2:03 
QuestionRe: Is it any DLL problem? Pin
Perspx22-Aug-08 2:26
Perspx22-Aug-08 2:26 

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.