CreateFileMapping
I have a large application suite (over 100 exes) that was originally developed for XP. One of the central elements is a service that provides named memory spaces that are shared with foreground GUI applications. The service creates a named memory segment using CreateFileMapping and the client apps use OpenFileMapping to access the same memory. Works fine under XP. We are now in the process of porting this application suite to Win7 - we skipped Vista. It appears that in Win7 the name spaces of the service and the foreground are separate. From what I have been able to find out, it appears that the Win7 security model requires that SeCreateGlobalPrivilege be added to the security descriptor for the servce which would then make mapped files/memory global. I attempted this from within the service but got access denied. What do I have to do to make CreateFileMapping work as it did on XP?
February 25th, 2010 12:46am

Hi, Since the issue is more related to API function and code, I suggest you create a new thread on MSDN forum. For your reference, I have enclosed the link below: Security for Applications in Microsoft Windows In this forum, we only discuss Windows 7 feature without code. Thank you for your understanding. Novak
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2010 9:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics