Category : com

Microsoft ASAN, Compiling com dll with ASAN and registering it produce follow error: Enabling Per-user Redirection doesn’t help…… Generic_SLN c:jenkins_shareworkspacews_15.0.0.0_sanitizework_dir_deliverycompilelogsGeneric_SLN_log.txt 554>C:Program Files (x86)Microsoft Visual Studio19ProfessionalMSBuildMicrosoftVCv160Microsoft.CppCommon.targets(2301,5): error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. [V:subprod1cfgsrcCFGcfg.vcxproj] Any ideas? Source: Windows..

Read more

I’ve created a COM object in PowerShell using the following code segment and I want to give it an interface (let’s say ‘IFileOperation’), but I don’t know how. I tried multiple things, but nothing works (it’s my first time using PowerShell/COM): $clsid = New-Object Guid ‘3ad05575-8857-4850-9277-11b85bdb8e09’ $type = [Type]::GetTypeFromCLSID($clsid) $object = [Activator]::CreateInstance($type) Get-Member -InputObject $object ..

Read more

As it’s written in the MSDN documentation CComBSTR::operator= creates a copy of src. So when I write someCComBSTR = std::to_wstring(someVal).c_str(); I will have a copy of the temporary and everything is ok. But I haven’t found what happens with the previous value, will it be freed or rewritten, or I first should manually empty my ..

Read more

When registering a dll, an identifier is assigned to it and a section named id is allocated. This section contains the InProcServer32 section. The general path looks something like this: HKEY_LOCAL_MACHINE SOFTWARE Classes WOW6432Node CLSID {77CA5AA0-1D99-4E2A-8D16-D2D7D00E9A9B} InProcServer32.Inside this section is the path to the dll. Unfortunately, I cannot find a way to get the dll ..

Read more

When registering a COM DLL in the Registry, a GUID identifier is assigned to the DLL and a key named after that GUID is created. This key contains the InProcServer32 key. The general path looks something like this: HKEY_LOCAL_MACHINE SOFTWARE Classes WOW6432Node CLSID {77CA5AA0-1D99-4E2A-8D16-D2D7D00E9A9B} InProcServer32 Inside this key is the path to the DLL. Unfortunately, ..

Read more