Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DeviceIoControl to lock drive is not working Pin
Patcher3222-Oct-09 13:12
Patcher3222-Oct-09 13:12 
AnswerRe: DeviceIoControl to lock drive is not working Pin
Code-o-mat22-Oct-09 5:52
Code-o-mat22-Oct-09 5:52 
GeneralRe: DeviceIoControl to lock drive is not working Pin
Patcher3222-Oct-09 13:13
Patcher3222-Oct-09 13:13 
GeneralRe: DeviceIoControl to lock drive is not working Pin
David Crow22-Oct-09 6:20
David Crow22-Oct-09 6:20 
GeneralRe: DeviceIoControl to lock drive is not working Pin
Code-o-mat22-Oct-09 6:34
Code-o-mat22-Oct-09 6:34 
GeneralRe: DeviceIoControl to lock drive is not working Pin
David Crow22-Oct-09 6:56
David Crow22-Oct-09 6:56 
AnswerRe: DeviceIoControl to lock drive is not working Pin
Patcher3222-Oct-09 13:44
Patcher3222-Oct-09 13:44 
GeneralRe: DeviceIoControl to lock drive is not working Pin
Covean22-Oct-09 20:59
Covean22-Oct-09 20:59 
"But MSDN says the PreventMediaRemoval member is BOOLEAN? Thanks for confusing me MSDN!"

MSDN is right the problem is, that TRUE is a 32 Bit-Value (TRUE and true are not the same). So you send the value 0(FALSE) to your drive. And if I'm right, the function fails if you try to unlock drive you never locked before.
GeneralRe: DeviceIoControl to lock drive is not working Pin
Patcher3223-Oct-09 19:22
Patcher3223-Oct-09 19:22 
QuestionRenaming file in C++ failing Pin
StrayGrey22-Oct-09 3:58
StrayGrey22-Oct-09 3:58 
QuestionRe: Renaming file in C++ failing Pin
David Crow22-Oct-09 4:06
David Crow22-Oct-09 4:06 
AnswerRe: Renaming file in C++ failing Pin
StrayGrey22-Oct-09 4:20
StrayGrey22-Oct-09 4:20 
AnswerRe: Renaming file in C++ failing Pin
Michael Schubert22-Oct-09 4:12
Michael Schubert22-Oct-09 4:12 
GeneralRe: Renaming file in C++ failing Pin
StrayGrey22-Oct-09 4:17
StrayGrey22-Oct-09 4:17 
GeneralRe: Renaming file in C++ failing Pin
Michael Schubert22-Oct-09 4:22
Michael Schubert22-Oct-09 4:22 
GeneralRe: Renaming file in C++ failing Pin
StrayGrey22-Oct-09 5:08
StrayGrey22-Oct-09 5:08 
AnswerRe: Renaming file in C++ failing Pin
David Crow22-Oct-09 6:05
David Crow22-Oct-09 6:05 
AnswerRe: Renaming file in C++ failing Pin
Richard MacCutchan22-Oct-09 4:50
mveRichard MacCutchan22-Oct-09 4:50 
AnswerRe: Renaming file in C++ failing Pin
StrayGrey22-Oct-09 5:10
StrayGrey22-Oct-09 5:10 
QuestionDelaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 2:45
Kushagra Tiwari22-Oct-09 2:45 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
David Crow22-Oct-09 3:02
David Crow22-Oct-09 3:02 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Randor 22-Oct-09 3:08
professional Randor 22-Oct-09 3:08 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 3:24
Kushagra Tiwari22-Oct-09 3:24 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Randor 22-Oct-09 3:30
professional Randor 22-Oct-09 3:30 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 3:39
Kushagra Tiwari22-Oct-09 3:39 

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.