Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Classes, new, delete, destructors Pin
José Luis Sogorb18-May-01 9:40
José Luis Sogorb18-May-01 9:40 
GeneralRe: Classes, new, delete, destructors Pin
James R. Twine18-May-01 10:14
James R. Twine18-May-01 10:14 
GeneralRe: Classes, new, delete, destructors Pin
José Luis Sogorb18-May-01 23:22
José Luis Sogorb18-May-01 23:22 
GeneralRe: Classes, new, delete, destructors Pin
James R. Twine19-May-01 2:16
James R. Twine19-May-01 2:16 
GeneralMailslot Problem Pin
18-May-01 4:27
suss18-May-01 4:27 
GeneralGeneral Question Pin
mr200318-May-01 4:11
mr200318-May-01 4:11 
GeneralRe: General Question Pin
Stan Shannon18-May-01 9:45
Stan Shannon18-May-01 9:45 
GeneralMemory Mapped Files and Security under IIS 5.0 / Win2K... Pin
James R. Twine18-May-01 3:15
James R. Twine18-May-01 3:15 
   (Also posted on EE...)

   I have an interesting problem that I believe is Win2K (Professional) specific...

   I am creating a shared memory area using a named MMF.  If I create the MMF with a default security descriptor (by using a NULL "SECURITY_ATTRIBUTES" pointer in the call to ::CreateFileMapping), no other processes can open the file mapping object.  This occurs regardless of which user creates the file mapping object and which other user tries to open it.

   When I try to specify a SECURITY_ATTRIBUTES object with a NULL DACL (so that everyone can get to the object), I get an error of "ERROR_PRIVILEGE_NOT_HELD" from the ::CreateFileMapping call.  The only way I can get it to work is to give the IIS user (IWAM_<machinename>) Administrative privileges.  Then, the named MMF is created, and all other processes can open it.  This, of course, is an unacceptable solution.

   (Does anyone know the *specific* privilege that is required to create an object with a NULL DACL?  Having a custom local user with this privilege for IIS to use is acceptable.)

   I never had this problem under WinNT, so I believe that it is Win2K specific.

   Other information: The MMF backed by the paging-file; it is of a fixed size; syncronization is not a issue; multi-CPU system; plenty of free memory and storage; latest platform SDK and documentation.

   Hoping to hear from you all...

   Peace!

-=- James.
GeneralDrag and Drop Pin
Eran18-May-01 2:55
Eran18-May-01 2:55 
GeneralRe: Drag and Drop Pin
Tomasz Sowinski18-May-01 3:06
Tomasz Sowinski18-May-01 3:06 
GeneralTCP/IP Socket programming Pin
Gerry18-May-01 2:03
Gerry18-May-01 2:03 
GeneralRe: TCP/IP Socket programming Pin
18-May-01 2:29
suss18-May-01 2:29 
GeneralRe: TCP/IP Socket programming Pin
Gerry18-May-01 2:45
Gerry18-May-01 2:45 
GeneralRe: TCP/IP Socket programming Pin
markkuk20-May-01 21:06
markkuk20-May-01 21:06 
QuestionCPrintDialog::GetDefaults() doesn't work? Pin
Joep18-May-01 1:31
Joep18-May-01 1:31 
AnswerRe: CPrintDialog::GetDefaults() doesn't work? Pin
Gerry18-May-01 3:21
Gerry18-May-01 3:21 
GeneralUnsing STL in cunjunction with MFC Pin
18-May-01 1:19
suss18-May-01 1:19 
GeneralRe: Unsing STL in cunjunction with MFC Pin
James R. Twine18-May-01 2:57
James R. Twine18-May-01 2:57 
QuestionQuestion on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 1:01
suss18-May-01 1:01 
QuestionQuestion on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 1:01
suss18-May-01 1:01 
AnswerRe: Question on pass HBITMAP using WM_COPYDATA? Pin
#realJSOP18-May-01 2:48
professional#realJSOP18-May-01 2:48 
GeneralRe: Question on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 20:49
suss18-May-01 20:49 
GeneralMFC SplitterBar *** SDI without Document/View Architecture *** Pin
Hubbard18-May-01 0:50
Hubbard18-May-01 0:50 
GeneralChild window resizing problem!! Pin
17-May-01 23:22
suss17-May-01 23:22 
GeneralRe: Child window resizing problem!! Pin
Tomasz Sowinski18-May-01 0:23
Tomasz Sowinski18-May-01 0:23 

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.