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

C / C++ / MFC

 
QuestionCFile used together with Lined List Pin
Manoj Srivastava28-Aug-07 17:28
Manoj Srivastava28-Aug-07 17:28 
AnswerRe: CFile used together with Lined List Pin
Nishad S28-Aug-07 20:44
Nishad S28-Aug-07 20:44 
QuestionRe: CFile used together with Lined List Pin
David Crow29-Aug-07 3:21
David Crow29-Aug-07 3:21 
QuestionHow make a dll in VC++ to use in C#? Pin
Rui A Sousa28-Aug-07 16:29
Rui A Sousa28-Aug-07 16:29 
AnswerRe: How make a dll in VC++ to use in C#? Pin
Karismatic28-Aug-07 20:25
Karismatic28-Aug-07 20:25 
GeneralRe: How make a dll in VC++ to use in C#? Pin
Rui A Sousa29-Aug-07 3:33
Rui A Sousa29-Aug-07 3:33 
GeneralRe: How make a dll in VC++ to use in C#? Pin
Hamid_RT29-Aug-07 7:51
Hamid_RT29-Aug-07 7:51 
QuestionOpenFileMapping call Fails on VISTA Pin
praveenpl28-Aug-07 13:53
praveenpl28-Aug-07 13:53 
I start process which does CreateFilemapping as follows.
=====================================================================================
hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, // Current file handle.
&sa, // Default security.
PAGE_READWRITE, // Read/write permission.
0, // Max. object size.
1, // Size of hFile.
NONWTS_SERVICE_FILE_MAPOBJ); // Name of mapping object.

lpMapAddress = MapViewOfFile(hMapFile, // Handle to mapping object.
FILE_MAP_ALL_ACCESS, // Read/write permission
0, // Max. object size.
0, // Size of hFile.
0); // Map entire file.

.....

FlushViewOfFile(lpMapAddress, 0);
=====================================================================================
This process is running under session id = 1 and running under administrator user
without Administrative previlages.


From my other application(process) i call OpenFileMapping. This process is running under system context with session id = 0.
=====================================================================================
hMapFile = OpenFileMapping(
FILE_MAP_ALL_ACCESS, // Read permission.
FALSE, // Inherit handle
NONWTS_SERVICE_FILE_MAPOBJ); // Name of mapping object. //Non WTS Environment
=====================================================================================
Here the OpenFileMapping call fails. This same thing works fine if i have done the CreateFilemapping
from an application running under administrator user with Administrative previlages.

Can any one please help me in overcoming this problem.

Thanks in advance,




Praveen
QuestionWhy ain't this in the docs? Pin
Waldermort28-Aug-07 13:24
Waldermort28-Aug-07 13:24 
AnswerRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 15:55
Naveen28-Aug-07 15:55 
GeneralRe: Why ain't this in the docs? Pin
Waldermort28-Aug-07 16:02
Waldermort28-Aug-07 16:02 
GeneralRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 16:44
Naveen28-Aug-07 16:44 
GeneralRe: Why ain't this in the docs? Pin
Waldermort28-Aug-07 17:45
Waldermort28-Aug-07 17:45 
GeneralRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 18:40
Naveen28-Aug-07 18:40 
GeneralRe: Why ain't this in the docs? Pin
Waldermort29-Aug-07 2:46
Waldermort29-Aug-07 2:46 
GeneralRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 19:27
Naveen28-Aug-07 19:27 
GeneralRe: Why ain't this in the docs? Pin
Waldermort29-Aug-07 5:05
Waldermort29-Aug-07 5:05 
GeneralRe: Why ain't this in the docs? Pin
Waldermort28-Aug-07 16:08
Waldermort28-Aug-07 16:08 
GeneralRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 16:46
Naveen28-Aug-07 16:46 
QuestionMFC Win32 Dialog application not being updated under Win-XP OS. Pin
Ralph_L28-Aug-07 12:24
Ralph_L28-Aug-07 12:24 
AnswerRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
Mark Salsbery28-Aug-07 13:04
Mark Salsbery28-Aug-07 13:04 
QuestionRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
David Crow29-Aug-07 3:23
David Crow29-Aug-07 3:23 
AnswerRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
Mark Salsbery29-Aug-07 6:54
Mark Salsbery29-Aug-07 6:54 
GeneralRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
David Crow29-Aug-07 7:09
David Crow29-Aug-07 7:09 
QuestionUsing the debugger Pin
Waldermort28-Aug-07 10:36
Waldermort28-Aug-07 10:36 

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.