Questions tagged [activation-context-api]

The Activation Context API is used to manage the activation context and create version-named objects with manifests. It is part of the standard (ie unmanaged) Windows programming API.

The Activation Context API is used to manage the activation context and create version-named objects with manifests. It is part of the standard (ie unmanaged) Windows programming API. https://learn.microsoft.com/en-us/windows/desktop/sbscs/using-the-activation-context-api

29 questions
14
votes
2 answers

WebKit.Net and OpenWebKitSharp Error: Failed to initialize activation context

I am using both/either WebKit.Net and OpenWebKitSharp. However, as soon as I try to instantiate the WebKitBrowser, I get an error: Failed to initialize activation context Does anybody know what this is?
carlbenson
  • 3,177
  • 5
  • 35
  • 54
8
votes
1 answer

LoadLibraryEx ignores side-by-side manifest

Does LoadLibraryEx function use side-by-side manifests? I have bar.dll with embedded SxS manifest, and that manifest describes version of this bar.dll, other dll file foo.dll has manifest that lists bar.dll as dependency, with specified version. But…
Ibraim Ganiev
  • 8,934
  • 3
  • 33
  • 52
6
votes
5 answers

CreateEx Causes Unhandled exception The activation context being deactivated is not the most recently activated one

itsAnalysisDataTable.CreateEx( WS_EX_CLIENTEDGE, AfxRegisterWndClass( CS_DBLCLKS, LoadCursor( NULL, IDC_ARROW ), (HBRUSH)::GetStockObject( NULL_BRUSH ), NULL ), "AnalysiysTable", WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_TABSTOP, dialogItemRect, this,…
Ali
  • 1,462
  • 2
  • 17
  • 32
6
votes
1 answer

Win32. Enable visual styles in dll

I've got no experience in C++ and Win API so sorry if this question is nooby. I've got DLL where I create some components, MessageBox for example. I added pragma comment to enable visual styles and it does not work (and it shouldn't as I know from…
Moses
  • 1,243
  • 3
  • 14
  • 21
5
votes
1 answer

Activation Context lost when working with WinForm?

I have an application that uses some classes from a native COM dll in Isolated Deployment. Simplified: In run-time I download the dll with its manifest file to a certain directory without registering it. I then create an Activation Context pointing…
Erez Cohen
  • 1,507
  • 2
  • 16
  • 25
5
votes
1 answer

When creating a reg-free managed COM object, how can I get the CLR to look in a directory different to the main application's executable?

This is a kind of complex question, hitting on somewhat arcane areas relating to COM, the CLR, and reg-free COM. First, my main application is written in python. As such, it's codebase (in development) is at, say, C:\mainapp\main.py. Of course, on…
EB.
  • 3,383
  • 5
  • 31
  • 43
4
votes
1 answer

Using Activation Context API with many dlls in different locations

I am using Activation Context API in a .Net client running in a location A to load a COM component reg-free in location B (which is completely different location to A, not a sibling/descendent etc. on the same machine) on WS2008 by passing in…
HammerIp
  • 211
  • 1
  • 2
  • 11
4
votes
1 answer

Embed a Registration-Free COM manifest into a C# dll with native/managed environment

I'm currently working on a mixed native / managed application chain, which employs registration-free COM. The following image illustrates this: The C# wrapper DLL has been created using the tlbimp.exe utility. This allows each of the C# executables…
Aurora
  • 1,334
  • 8
  • 21
3
votes
1 answer

Using Activation Context API in C++ component

I am a c# developer currently working on some legacy c++ com components. I am trying to add activation context api code to the com components in order to call other com components without registration. I wrote a dummy c++ project to play with the…
HammerIp
  • 211
  • 1
  • 2
  • 11
3
votes
0 answers

Registration-Free COM not playing nice with single threaded objects. Activation context dropped during marshaling

I'm working on integrating a COM/CLI based library into a Java based application through JNI (yeah, it's a bit of a mess). For the most part it's working, but I've hit a bit of a snag when it comes to how activation contexts interact with single…
finalman
  • 774
  • 5
  • 14
3
votes
0 answers

Create Activation Context Failes

I try to put my VS 2012 .Net Project together with an old native Dll built with VS 2005 in one directory. For installation reason, I can not install the VC Redists on the users machine, therefore I put msvcr, msvcp, msvcm and vcomp Dll in the…
3
votes
1 answer

Is it correct to load the assembly manifest directly into the application context?

I'm currently trying to get a rather tangled scheme running with registration free COM. It's not that it is not working, it's that I have hit a kind of confusing situation, where it seems I should active the manifest of the assembly dependency…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
3
votes
1 answer

Where do I need to switch the Activation Context?

The problem I'm facing is essentially described here, that is: I have a DLL that is using a 3rd party in-process COM component dll. I want to use registration free COM with that in-process component. I want to embed and use a manfest into this DLL…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
3
votes
4 answers

What's wrong with this Windows API call WaitForSingleObject?

The process got crashed unstably in Windows 7. I use !analyze -v command in WinDbg for exception analysis. It tells below information. The exception is actually thrown by WaitForSingleObject function which is called by IrsSim!IrsNet_BlockOutput.…
Cary
  • 372
  • 1
  • 5
  • 14
2
votes
1 answer

Assembly identity names in SxS manifests

I have two questions regarding activation context API and SxS manifests. They look like very simple, but still I cannot find any good answer for them. I have two dll libraries with filenames foo.dll and bar.dll, both with embedded manifests, foo…
Ibraim Ganiev
  • 8,934
  • 3
  • 33
  • 52
1
2