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 -

  1. whether possible query privileged windows service limited user level application?
  2. if not workaround achieve this?
  3. i think sockets possible ipc mechanism other 2 fail access denied. correct in assuming that?
  4. is converting native code jni/dll , using correct on planning? in case have start java app admin privilege having custom manifest file.

platform

  1. windows 7 enterprise
  2. visual studio 2012 (for native $mft access)
  3. jdk build 1.7.0_25-b17

thanks

  1. you can query privileged service, application if provides way of it. (i.e. socket, pipe etc..)
  2. you can use socket tcp/udp socket this. must make sure firewall blocks port outside machine.
  3. the easiest & loosely coupled way socket. performance depends on amount of data transfer.
  4. 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

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -