It was a sort of ridiculous problem: an attempt to instantiate a Microsoft.Jet.OLEDB.4.0 object failed with error. Still some applications are still running without problems connecting to Jet databases, how comes? There has been a number of posts on Internet, but none of the top ones appeared to be relevant. The problem is reproduced extremely [...]
Posts Tagged ‘registry’
Microsoft.Jet.OLEDB.4.0 ProgID is not available (Windows 7 but probably not only)
Posted: 30th October 2009 by Roman in TechnologyTags: bug, COM, environment, microsoft, ole, oledb, registry, win7
RegSetKeySecurity, CRegKey::SetKeySecurity and CSecurityDesc
Posted: 22nd June 2009 by Roman in ATL, SourceTags: API, ATL, CRegKey, CSecurityDesc, registry, RegSetKeySecurity, security, SetKeySecurity, windows
One thing is worth special mentioning in connection with previous post on DirectShow Filter Graph Spy on Microsoft Vista system: ATL’s CSecurityDesc class caused to waste some time. CRegKey Key; ATLENSURE_SUCCEEDED(HRESULT_FROM_WIN32(Key.Open(HKEY_CLASSES_ROOT, pszKeyName, READ_CONTROL | WRITE_OWNER))); CSecurityDesc AdministratorsOwnerSecurityDescriptor; AdministratorsOwnerSecurityDescriptor.SetOwner(Sids::Admins()); ATLENSURE_SUCCEEDED(HRESULT_FROM_WIN32(Key.SetKeySecurity(OWNER_SECURITY_INFORMATION, &AdministratorsOwnerSecurityDescriptor))); The code compiles fine, but on runtime it gives error 87 (ERROR_INVALID_PARAMETER, E_INVALIDARG) in the [...]
DirectShow Filter Graph Spy on Vista
Posted: 22nd June 2009 by Roman in UtilitiesTags: ATL, C++, COM, DirectShow, filter, graph, registry, security, Source, spy, Vista
I have been receiving comments that Filter Graph Spy tool does not work with Microsoft Vista operating system. I never had a moment to check until recently, and this time I realized that it really does not work. I am definitely aware of dramatic changes introduced with this operating system, and in particular UAC feature, [...]
ATL Registration Script
Posted: 6th September 2008 by Roman in ATLTags: ATL, COM, registry, rgs, script
Since ATL version 3, and actually it probably existed even since even earlier time, I have seen Microsoft Visual Studio (and its predecessor Visual C++) generating .RGS registration script with hardcoded CLSID value, ProgID values and other strings entered through IDE wizard. While it seems to work nice at the moment of generation, it still [...]
