PC Review


Reply
Thread Tools Rate Thread

CreateFileMapping return ERROR_ACCESS_DENIED in Terminal Server environment

 
 
EagleChen
Guest
Posts: n/a
 
      17th Feb 2004
Hello,

I tried to use CreateFileMapping() in Terminal Server environment, and I can
do it successfully
with Administrator login, but will get ERROR_ACCESS_DENIED using a normal
user.
Does anyone know how to set the authority to normal user? or any hints ?
Thanks in advance, and the following is my code:

Eagle


InitializeSecurityDescriptor(&SecurityDescriptor,
SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorSacl(&SecurityDescriptor, false, NULL, true);
SetSecurityDescriptorDacl(&SecurityDescriptor, true, NULL, false);
SetSecurityDescriptorOwner(&SecurityDescriptor, NULL, false);
SetSecurityDescriptorGroup(&SecurityDescriptor, NULL, false);
//
SecurityAttribute.bInheritHandle = true;
SecurityAttribute.lpSecurityDescriptor=&SecurityDescriptor;
SecurityAttribute.nLength=sizeof(SecurityAttribute);
//
hMapObject = CreateFileMapping(
INVALID_HANDLE_VALUE,
&SecurityAttribute,
PAGE_READWRITE,
0,
1024, // size: low 32-bits
"Global\\ixgclientsharedmemory");







 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CAL for Windows Server 2008 in a Terminal Server environment Antje Microsoft Dot NET 1 25th Sep 2008 04:17 AM
MSI Applications in a terminal server environment =?Utf-8?B?dGF1Ym1hcw==?= Microsoft Windows 2000 Terminal Server Applications 0 24th Nov 2006 03:34 AM
Using in Terminal Server environment Jeffrey Latten Security Networking 0 27th Mar 2005 07:32 PM
CreateFileMapping return ERROR_ACCESS_DENIED in Terminal Server environment EagleChen Microsoft Windows 2000 Terminal Server Applications 0 17th Feb 2004 01:34 AM
Report printing in terminal server environment yn Microsoft Access Reports 0 20th Jul 2003 12:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 AM.