Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to read the characters in the EditTable of SysListView32 style control ? Pin
wangningyu22-Oct-09 5:41
wangningyu22-Oct-09 5:41 
QuestionRe: How to read the characters in the EditTable of SysListView32 style control ? Pin
David Crow22-Oct-09 6:23
David Crow22-Oct-09 6:23 
AnswerRe: if the edit listcontrol in other programs, how can I read the list ?[modified] Pin
wangningyu22-Oct-09 6:35
wangningyu22-Oct-09 6:35 
GeneralRe: if the edit listcontrol in other programs, how can I read the list Pin
David Crow22-Oct-09 7:08
David Crow22-Oct-09 7:08 
AnswerRe: How to read the characters in the EditTable of SysListView32 style control ? Pin
rand094122-Oct-09 15:01
rand094122-Oct-09 15:01 
AnswerRe: How to read the characters in the EditTable of SysListView32 style control ? Pin
nenfa19-Jan-10 0:21
nenfa19-Jan-10 0:21 
QuestionDeviceIoControl to lock drive is not working Pin
Patcher3222-Oct-09 5:09
Patcher3222-Oct-09 5:09 
AnswerRe: DeviceIoControl to lock drive is not working Pin
Covean22-Oct-09 5:34
Covean22-Oct-09 5:34 
I can't find an error, but maybe you open the device in a wrong way?

MSDN says:
"hDevice [in]
A handle to the device. To obtain a device handle, call the CreateFile function.

Files must be opened with the FILE_READ_ATTRIBUTES access right. For more information, see File Security and Access Rights."

You try to open your device with generic read and write access.
Sorry buts the only thing I found, what could maybe explain this error.

Has hVolume the right value?
(Your check is right, but i wonder what GetLastError() says.)

Edit:
Maybe you should also change your sharing parameter in your CreateFile call (for example try 0 -> no share).
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 
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 

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.