NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 16 17 18 19 20 … 93 Next »
Creating a Windows service

 
  • 0 Vote(s) - 0 Average
Creating a Windows service
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2011-03-29, 01:11 PM (This post was last modified: 2011-03-29, 03:18 PM by McBainUK.)
I'd like to investigate creating a Windows service that can communicate (both ways) with a NPVR plugin.

Anyone got any hints and/or sample code? Smile
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
markbb1
Offline

Member

Posts: 155
Threads: 7
Joined: Jul 2006
#2
2011-03-29, 03:14 PM
McBainUK Wrote:I'd like to investigate creating a Windows service that can communicate with a NPVR plugin.

Anyone got any hints and/or sample code? Smile
I once used srvany.exe to run a program as a service in Windows XP. Could you just write your program that communicates with NPVR and then run it as a service?
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2011-03-29, 03:18 PM (This post was last modified: 2011-03-29, 03:28 PM by McBainUK.)
I'm more interested in service/plugin inter-process communications.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#4
2011-03-29, 03:19 PM
McBainUK Wrote:I'm more interested in service / plugin inter-process communications.
PM me your email address and I'll send you some template files.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#5
2011-03-29, 03:21 PM
bgowland Wrote:PM me your email address and I'll send you some template files.
PM sent.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2011-03-29, 03:41 PM
I use .NET Remoting, which is pretty straight forward. http://msdn.microsoft.com/en-us/library/...s.71).aspx
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#7
2011-03-29, 04:00 PM
McBainUK Wrote:PM sent.
You have mail. Smile
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#8
2011-03-30, 03:23 AM (This post was last modified: 2011-03-30, 03:33 AM by pBS.)
built-in sc.exe can run any progrm as a service, but you need to adhere to certain constraints as to what kind of functions you need to have to make it a real service..
Code:
sc create MYPROG binpath= "c:\Program Files\MYDIR\MYPROG.exe" type= own type= interact
net start MYPROG

or a nice program called Launcher Service, http://emutastic.emulation64.com/netosoft
but i haven't tried it in vista/7 yet..
sc works everywhere back to 2000 i believe..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#9
2011-03-30, 03:29 AM
McBainUK Wrote:I'm more interested in service/plugin inter-process communications.

If you need an example using standard sockets for IPC let me know.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows FM Radio support in v5. mvallevand 125 25,888 2023-01-29, 08:13 PM
Last Post: mvallevand
  is there a service?method which returns listings for multiple channels? reven 16 6,793 2022-04-11, 04:30 PM
Last Post: mandai
  NextPVR "Service" Backend? jcole998 5 4,731 2018-05-24, 01:17 PM
Last Post: jcole998
  Problems with Windows UWP App spitefulgod 4 3,765 2016-12-15, 08:35 PM
Last Post: spitefulgod
  Transcoding service mvallevand 27 12,286 2016-08-26, 07:43 PM
Last Post: sub
  Best approach to creating recurring recordings from c# drmargarit 0 2,584 2015-09-27, 01:32 AM
Last Post: drmargarit
  Time to make Touch web Service less experimental fred250 106 27,781 2014-06-15, 09:13 PM
Last Post: fred250
  Any ideas about programming for Windows Firewall? bgowland 4 5,554 2014-04-10, 09:05 AM
Last Post: bgowland
  New web service clarification needed bgowland 6 3,185 2013-10-19, 02:36 AM
Last Post: bgowland
  [REQ] Additional web service API calls reven 26 8,099 2013-08-31, 10:08 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode