c++ - Is it possible to query a privileged windows service from a user mode java application? -
background
i working on application need query files available on harddisk using java. performance major requirement, have written native application accesses windows master file table ($mbt)
valid file entries.
i planning modify native windows service (running admin privileges.. needed accessing mft) , use user mode java application contact via ipc technique (specifically shared memory or named pipe or sockets... need evaluate).
the target application windows specific , java used text processing (i know python/perl @ haven't used them long time).
questions
now question -
- whether possible query privileged windows service limited user level application?
- if not workaround achieve this?
- i think sockets possible ipc mechanism other 2 fail
access denied
. correct in assuming that? - is converting native code jni/dll , using correct on planning? in case have start java app admin privilege having custom manifest file.
platform
- windows 7 enterprise
- visual studio 2012 (for native $mft access)
- jdk build 1.7.0_25-b17
thanks
- you can query privileged service, application if provides way of it. (i.e. socket, pipe etc..)
- you can use socket tcp/udp socket this. must make sure firewall blocks port outside machine.
- the easiest & loosely coupled way socket. performance depends on amount of data transfer.
- monitoring hard disk files admin task. not bad thing run java app admin privileges. if allow normal users run app externally setting admin privileges, not practice.
Comments
Post a Comment