Problem with CreateFileMapping() window7/Vista.
-
Hi All, My problem is that the code no longer works under Windows 7/Vista when called from within the limited user account. CreateFileMapping() routine returns ERROR_ACCESS_DENIED (code 5) upon attempt to create the file mapping object in global namespace. I've searched the web and discovered that from Vista onwards, Microsoft has changed the policy that affects who will be granted to obtain SeCreateGlobalPrivilege and that is it impossible for any code called from within the limited user account to create global objects. Does anyone know how to work around this limitation? Any pointers on how to make this code compatible with Windows 7/Vista would be highly appreciated. Thanks & Regards, Uday.
-
Hi All, My problem is that the code no longer works under Windows 7/Vista when called from within the limited user account. CreateFileMapping() routine returns ERROR_ACCESS_DENIED (code 5) upon attempt to create the file mapping object in global namespace. I've searched the web and discovered that from Vista onwards, Microsoft has changed the policy that affects who will be granted to obtain SeCreateGlobalPrivilege and that is it impossible for any code called from within the limited user account to create global objects. Does anyone know how to work around this limitation? Any pointers on how to make this code compatible with Windows 7/Vista would be highly appreciated. Thanks & Regards, Uday.
What type of program are your code in? normal application or service? A service has the highest permission. If you put your code in a service, there won't be error, i think.
-
Hi All, My problem is that the code no longer works under Windows 7/Vista when called from within the limited user account. CreateFileMapping() routine returns ERROR_ACCESS_DENIED (code 5) upon attempt to create the file mapping object in global namespace. I've searched the web and discovered that from Vista onwards, Microsoft has changed the policy that affects who will be granted to obtain SeCreateGlobalPrivilege and that is it impossible for any code called from within the limited user account to create global objects. Does anyone know how to work around this limitation? Any pointers on how to make this code compatible with Windows 7/Vista would be highly appreciated. Thanks & Regards, Uday.