Subversion Repositories filter_foundry

Rev

Rev 206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 206 Rev 444
Line 23... Line 23...
23
 
23
 
24
BOOL ActivateManifest(HMODULE hModule, int manifestResourceID, PManifestActivationCtx vars) {
24
BOOL ActivateManifest(HMODULE hModule, int manifestResourceID, PManifestActivationCtx vars) {
25
        f_ActivateActCtx fActivateActCtx;
25
        f_ActivateActCtx fActivateActCtx;
26
        f_CreateActCtxA fCreateActCtxA;
26
        f_CreateActCtxA fCreateActCtxA;
27
 
27
 
28
        if (!(vars->hKernel32 = LoadLibraryA("KERNEL32.DLL"))) return FALSE;
28
        if (!(vars->hKernel32 = LoadLibrary(TEXT("KERNEL32.DLL")))) return FALSE;
29
 
29
 
30
        if (!(fActivateActCtx = (f_ActivateActCtx)(void*)GetProcAddress(vars->hKernel32, "ActivateActCtx"))) { FreeLibrary(vars->hKernel32); return FALSE; }
30
        if (!(fActivateActCtx = (f_ActivateActCtx)(void*)GetProcAddress(vars->hKernel32, "ActivateActCtx"))) { FreeLibrary(vars->hKernel32); return FALSE; }
31
        if (!(fCreateActCtxA = (f_CreateActCtxA)(void*)GetProcAddress(vars->hKernel32, "CreateActCtxA"))) { FreeLibrary(vars->hKernel32); return FALSE; }
31
        if (!(fCreateActCtxA = (f_CreateActCtxA)(void*)GetProcAddress(vars->hKernel32, "CreateActCtxA"))) { FreeLibrary(vars->hKernel32); return FALSE; }
32
 
32
 
33
        ZeroMemory(&vars->actCtx, sizeof(vars->actCtx));
33
        ZeroMemory(&vars->actCtx, sizeof(vars->actCtx));