Re: Encoder SDK

Tech-Archive recommends: Fix windows errors by optimizing your registry



Mike Lowery wrote:

> I'm needing to write an app that will stop and start WME
> (or just the encoding process) at specific times. I
> prefer this app be able to control a running instance of
> WME and not be an all-inclusive encoding app itself. The
> SDK seems to show examples of the latter but not the
> former. Is it possible to get a handle to an instance of
> WME and use the SDK to control it? If not, does anyone
> have other suggestions? I know I could probably write a
> script that starts or stops WME based on Windows
> Scheduler, but that's kind of ugly and I'd rather just
> write my own VB.Net app that controls this.

You can just send WME's window WM_COMMAND messages
corresponding to the menu items and you can find out the
item IDs using the Spy tool in the free Platform SDK or the
Spy++ tool in VisualStudio.

The System.Windows.Forms.Message struct wraps a Windows
message but I don't know of any managed SendMessage() and
FindWindow() wrappers so you need to call SendMessage() in
User32.dll via P/Invoke to send the message and FindWindow()
to find the HWND of the window.

--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


.



Relevant Pages

  • Re: Encoder SDK
    ... >>> I'm needing to write an app that will stop and start WME ... >>> (or just the encoding process) at specific times. ... >>> script that starts or stops WME based on Windows ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Windows.. its like coming home!
    ... gradual transition, especially in going from OS 9 to OS X. ... They needed something that could compete with Windows, ... mean by the "2 of every app" comment before - Apple took whatever apps ... I've found that because the Dock shows applications rather than windows, ...
    (comp.sys.mac.advocacy)
  • Re: Windows.. its like coming home!
    ... gradual transition, especially in going from OS 9 to OS X. ... They needed something that could compete with Windows, ... mean by the "2 of every app" comment before - Apple took whatever apps ... I've found that because the Dock shows applications rather than windows, ...
    (comp.sys.mac.advocacy)
  • RE: Beginners Questions
    ... We do use Windows form on the presentation layer which is on ... terminal server and call web services on the business logic side. ... of using "proxy" authentication on SQL Server. ... > I have written an app with a Windows Forms UI that is deployed to clients ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Frustration level with Windows -- ARG!
    ... I can have an app sieze and you can go take a ten ... That is MS-Outlook, not Windows. ... to the processes tab, not the applications tab. ... and it tries to stop them "gently" if it can, before resorting to kill -9. ...
    (comp.sys.mac.advocacy)