Android NDK builder for Eclipse in Windows

If you worked on android NDK, you must be knowing current eclipse ADT doesn’t have option for NDK building you have to manually run the build command in cygwin shell. Now i will show you step by step how to make a builder for android NDK project which will build your native code to android library when you build your project or save a c source file
Requirements

  1. Eclipse
  2. Android ADT
  3. Android NDK
  4. Cygwin

Continue reading Android NDK builder for Eclipse in Windows

Run a UserProcess from Windows service in user Desktop

Windows Service

I have been wondering is there any easy method to start a process on user desktop from a windows service for a long time. During my research i came across a lot of security issues like system process blah blah etc… finally i got it working using some win32 API like

  • WTSGetActiveConsoleSessionId
  • WTSQueryUserToken
  • CreateProcessAsUser

i wrote a c# wrapper class for simplicity  and it will be like

 

Continue reading Run a UserProcess from Windows service in user Desktop