Home » Blog
@@@.Jan.2016
■ @@@ Some title
attempt to temp create registry keys not successful due to permissions
dokimase calling it manually alla with "proper" registration of surrogate in HKCR
lastly create required hkcu keys with REG, not program and see changes
otav to kavw me to diko mou tropo does it add the wow appie?
* after these APPID are added we don't need manual invoke, just cocreate!
dokimase manual copy of keys instead of shcopy
pses doulebe me REG sto hkcu, snmera papala
dokimase va to doulepsns MONO apo x64 ke gama ta alla, mporei va ften pou to grafn 32 bit
ekei de xreiazete KEY_WOW64_32KEY, use wow straight
* me to manifest isws doulebn ke to HKCR straight? NO
* dev exn APPID sto hklm try to add it and see -> afto eive alla only for elevated
dokimase me tov 32 bit tropo gia ta 64 bit allo main
last chance use class factory http://flylib.com/books/en/3.357.1.52/1/
http://stackoverflow.com/questions/38824988/using-dllhost-directly-to-host-com-objects
x try it as a local server
apply it for U if it works easily
prosoxn if server already running
must go through the persistent handler
if successful use it for deskrule too
prosoxn BlackListType -> oxi zero sized files ok?
dokimase ke me to registry fix installed
test:
x command line ama doulebn (32 and 64) me args
x try dllhost ama bgazn help, or scan EXE for processid and other possible switches
x see how it works when declared as delegate
x appid must be registered? YES so not much point for direct access
x process explorer see what files and registry keys touched
try class factory? http://stackoverflow.com/questions/10892736/cocreateinstance-fails-with-e-fail-when-clsctx-local-server-is-specified-and-sur
try requesting CLSCTX_LOCAL_SERVER only (i don't think it matters in 32/64)
x try dllhost {clsid} directly without appid NO CHANGE
@@@ will it cause servers not to be inproc in general though?
preview handlers ok
ulTIMATe ok to search via WDS
DOC registration
HKEY_CLASSES_ROOT\.doc\PersistentHandler={98DE59A0-D175-11CD-A7BD-00006B827D94}
same is used for XLS etc but NOT docx
HKEY_CLASSES_ROOT\CLSID\{98de59a0-d175-11cd-a7bd-00006b827d94}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}={f07f3920-7b8c-11cf-9be8-00aa004b9986}
[Microsoft Office Filter]
HKEY_CLASSES_ROOT\CLSID\{f07f3920-7b8c-11cf-9be8-00aa004b9986}\InprocServer32=%systemroot%\system32\OffFilt.dll
idgia ke sto wow -> 8eln ke to handler ke to final object wow
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{98de59a0-d175-11cd-a7bd-00006b827d94}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}={f07f3920-7b8c-11cf-9be8-00aa004b9986}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{f07f3920-7b8c-11cf-9be8-00aa004b9986}\InprocServer32=%systemroot%\system32\OffFilt.dll
but actually they are 2 different DLLs, one is 64 and one is 32
offfilt.dll 223,232 ---A------- Last year C:\Windows\SysWOW64\
offfilt.dll 284,672 ---A------- Last year C:\Windows\System32\
no trace of dll surrogate or whatnot
----
docx
HKEY_CLASSES_ROOT\.docx\PersistentHandler={D3B41FA1-01E3-49AF-AA25-1D0D824275AE}
HKEY_CLASSES_ROOT\CLSID\{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}={5A98B233-3C59-4B31-944C-0E560D85E6C3}
HKEY_CLASSES_ROOT\CLSID\{5A98B233-3C59-4B31-944C-0E560D85E6C3}\InprocServer32=C:\Program Files\Common Files\Microsoft Shared\Filters\offfiltx.dll
yparxouv ke sto local machine avtistoixa
@@@
blog: office 64 exn filter gia 32 bit x2 alla MONO gia doc, oxi docx
docx if you can do it, all 32-64 bit cases ke toumpaliv
bres command line apo dllhost gia apo to task manager
office 365 is recommended 32 bit
dllhost /Processid:{appid == clsid?}
http://mariusbancila.ro/blog/2010/11/04/32-bit-and-64-bit-com-servers/
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
https://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/
http://www.gfi.com/blog/32bit-object-64bit-environment/
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684044(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/ms691260(v=vs.85).aspx
https://blogs.msdn.microsoft.com/oldnewthing/20090212-00/?p=19173/
http://stackoverflow.com/questions/9185904/using-ifilter-from-a-32bit-app-on-a-x64-system
Post a comment on this topic »