Pelles C forum

C language => Windows questions => Topic started by: czerny on December 08, 2014, 02:01:00 PM

Title: ISOLATION_AWARE_ENABLED
Post by: czerny on December 08, 2014, 02:01:00 PM
I have a resource
ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID RT_MANIFEST "res2.xml"
and I have defined
#define ISOLATION_AWARE_ENABLED 1

I get the error
winuser.h(5834): fatal error #1014: #error: Isolation aware inline functions not supported.

So I have two questions:

Are RT_MANIFEST resources supported at all by Pelles C?
Is there a workaround?
Title: Re: ISOLATION_AWARE_ENABLED
Post by: aardvajk on December 10, 2014, 04:34:45 AM
All the Isolation functions do is essentially:
if(NotCreatedActCtx)
{
   hActCtx = Create activation context from your manifest
   NotCreatedActCtx = FALSE;
}

ActivateActCtx(hActCtx, &cookie)
(The function you were wanting to call, like CreateWindow or whatever)
DeactivateActCtx(0, cookie)
Title: Re: ISOLATION_AWARE_ENABLED
Post by: anosh123 on March 30, 2015, 10:38:08 AM
Just a question -> how do you hide a menu item (easily?) and make it reappear? The menu is done by using a menu resource.
I'm trying to make a simple recent file list, so it hides recent files that don't exist/ and haven't been made?