Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Raw Image & GUI- Newbie Pin
KingsGambit3-Mar-10 20:09
KingsGambit3-Mar-10 20:09 
AnswerRe: Raw Image & GUI- Newbie Pin
Tim Craig4-Mar-10 19:25
Tim Craig4-Mar-10 19:25 
GeneralRe: Raw Image & GUI- Newbie Pin
Trevor Johansen5-Mar-10 16:12
Trevor Johansen5-Mar-10 16:12 
GeneralRe: Raw Image & GUI- Newbie Pin
Tim Craig5-Mar-10 18:07
Tim Craig5-Mar-10 18:07 
QuestionMFC Tree Pin
RakeshManohar3-Mar-10 17:43
RakeshManohar3-Mar-10 17:43 
QuestionGetHandle Pin
john56323-Mar-10 16:44
john56323-Mar-10 16:44 
AnswerRe: GetHandle Pin
Stephen Hewitt3-Mar-10 17:26
Stephen Hewitt3-Mar-10 17:26 
GeneralRe: GetHandle Pin
john56323-Mar-10 17:32
john56323-Mar-10 17:32 
I am using Createfile() API to get handle of alogical drive. My code is working in windowx Xp but not in vista.

Code:

HANDLE hHandle=CreateFile(_T("c:"),
0,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);

UAC is enabled. If I use GENERIC_READ, function is returning INVALID_FILE_HANDLE but If I use 0 instead of GENERIC_READ, I am getting handle but Readfile() API fails to read with this handle.

How to resolve this problem. I have to enable UAC at any cost.

Please suggest the solution.
GeneralRe: GetHandle Pin
Adam Roderick J3-Mar-10 17:35
Adam Roderick J3-Mar-10 17:35 
GeneralRe: GetHandle Pin
john56323-Mar-10 17:37
john56323-Mar-10 17:37 
GeneralRe: GetHandle Pin
john56323-Mar-10 17:41
john56323-Mar-10 17:41 
GeneralRe: GetHandle Pin
Adam Roderick J3-Mar-10 17:46
Adam Roderick J3-Mar-10 17:46 
GeneralRe: GetHandle Pin
john56323-Mar-10 17:50
john56323-Mar-10 17:50 
GeneralRe: GetHandle Pin
Adam Roderick J3-Mar-10 18:06
Adam Roderick J3-Mar-10 18:06 
GeneralRe: GetHandle Pin
john56323-Mar-10 18:08
john56323-Mar-10 18:08 
GeneralRe: GetHandle Pin
Adam Roderick J3-Mar-10 18:16
Adam Roderick J3-Mar-10 18:16 
GeneralRe: GetHandle Pin
john56323-Mar-10 18:28
john56323-Mar-10 18:28 
GeneralRe: GetHandle Pin
KarstenK3-Mar-10 21:39
mveKarstenK3-Mar-10 21:39 
AnswerRe: GetHandle Pin
Adam Roderick J3-Mar-10 17:32
Adam Roderick J3-Mar-10 17:32 
GeneralRe: GetHandle Pin
john56323-Mar-10 17:34
john56323-Mar-10 17:34 
GeneralRe: GetHandle Pin
Adam Roderick J3-Mar-10 17:48
Adam Roderick J3-Mar-10 17:48 
QuestionControl Bar Focus Issue [modified] [SOLVED] Pin
Kyudos3-Mar-10 16:21
Kyudos3-Mar-10 16:21 
AnswerRe: Control Bar Focus Issue Pin
Kyudos3-Mar-10 16:46
Kyudos3-Mar-10 16:46 
GeneralRe: Control Bar Focus Issue Pin
Kyudos3-Mar-10 16:56
Kyudos3-Mar-10 16:56 
GeneralRe: Control Bar Focus Issue Pin
chevu3-Mar-10 18:28
chevu3-Mar-10 18:28 

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.