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

C / C++ / MFC

 
GeneralRe: Load Bitmap from file to doc Pin
Amin.Abdi26-Aug-09 2:21
Amin.Abdi26-Aug-09 2:21 
GeneralRe: Load Bitmap from file to doc Pin
CPallini26-Aug-09 2:38
mveCPallini26-Aug-09 2:38 
GeneralRe: Load Bitmap from file to doc Pin
Amin.Abdi26-Aug-09 2:48
Amin.Abdi26-Aug-09 2:48 
GeneralRe: Load Bitmap from file to doc Pin
CPallini26-Aug-09 2:55
mveCPallini26-Aug-09 2:55 
QuestionDate and Time Pin
john563225-Aug-09 20:00
john563225-Aug-09 20:00 
AnswerRe: Date and Time Pin
Rajesh R Subramanian25-Aug-09 20:16
professionalRajesh R Subramanian25-Aug-09 20:16 
AnswerRe: Date and Time Pin
Cedric Moonen25-Aug-09 20:20
Cedric Moonen25-Aug-09 20:20 
QuestiondwDesiredAccess in CreateFile API Pin
Varghese Paul M25-Aug-09 18:47
Varghese Paul M25-Aug-09 18:47 
Hi everybody,
I don't know is this the right forum to ask this question. Guide me if I am wrong.

Right now I am working on some network related file systems.
My difficulty is to determine the desired access level of a file in its shared mode.
For example, I have a file opened with some dwDesiredAccess level flags set using CreateFile API.
Some other process is asking for the same file with a different dwDesiredAccess level flags which may or may not succeed when I call the CreateFile API.

Is there a way I can determine the result of the second CreateFile API without calling it?
ie, is there a way I can validate the second dwDesiredAccess by checking with the first dwDesiredAccess and return ERROR_SHARING_VIOLATION to the client without making a call to CreateFile API?

Please let me know if some good articles or other useful information available anywhere.

Thanks in advance

cheers
Varghese Paul

AnswerRe: dwDesiredAccess in CreateFile API Pin
Adam Roderick J25-Aug-09 19:45
Adam Roderick J25-Aug-09 19:45 
AnswerRe: dwDesiredAccess in CreateFile API Pin
Rajesh R Subramanian25-Aug-09 19:57
professionalRajesh R Subramanian25-Aug-09 19:57 
AnswerRe: dwDesiredAccess in CreateFile API Pin
Stuart Dootson25-Aug-09 21:06
professionalStuart Dootson25-Aug-09 21:06 
QuestionLNK1107 Pin
MozhdehQeraati25-Aug-09 18:39
MozhdehQeraati25-Aug-09 18:39 
AnswerRe: LNK1107 Pin
Code-o-mat25-Aug-09 20:45
Code-o-mat25-Aug-09 20:45 
GeneralRe: LNK1107 Pin
MozhdehQeraati25-Aug-09 21:31
MozhdehQeraati25-Aug-09 21:31 
AnswerRe: LNK1107 Pin
Stuart Dootson25-Aug-09 21:08
professionalStuart Dootson25-Aug-09 21:08 
GeneralRe: LNK1107 Pin
MozhdehQeraati25-Aug-09 21:32
MozhdehQeraati25-Aug-09 21:32 
GeneralRe: LNK1107 Pin
Stuart Dootson25-Aug-09 22:08
professionalStuart Dootson25-Aug-09 22:08 
QuestionOnSize [modified] Pin
zhenek9125-Aug-09 17:06
zhenek9125-Aug-09 17:06 
AnswerRe: OnSize Pin
Code-o-mat25-Aug-09 20:28
Code-o-mat25-Aug-09 20:28 
AnswerRe: OnSize Pin
Cedric Moonen25-Aug-09 20:32
Cedric Moonen25-Aug-09 20:32 
GeneralRe: OnSize [modified] Pin
zhenek9125-Aug-09 20:39
zhenek9125-Aug-09 20:39 
QuestionAdding Checkboxes to a list control in every column Pin
Member 470944425-Aug-09 13:00
Member 470944425-Aug-09 13:00 
AnswerRe: Adding Checkboxes to a list control in every column Pin
Code-o-mat25-Aug-09 20:34
Code-o-mat25-Aug-09 20:34 
AnswerRe: Adding Checkboxes to a list control in every column Pin
David Crow26-Aug-09 3:09
David Crow26-Aug-09 3:09 
GeneralRe: Adding Checkboxes to a list control in every column Pin
Member 470944426-Aug-09 4:03
Member 470944426-Aug-09 4:03 

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.