Re: PWM Driver

From: Rui Tang (tangrui76_nospam_at_hotmail.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 13:23:06 -0800


  Read the PB online help on "Stream Interface Drvers".

-- 
Rui Tang
Centrality Communications Inc
"David V" <davev@> wrote in message
news:%23GyDRTpFEHA.3540@TK2MSFTNGP09.phx.gbl...
> I am trying to write a dll for a PWM driver. I am using Platform Builder
4.2
> for the x-scale.
>
> When i try to register the dll I use the code below and get error type 1.
>  dll = RegisterDevice(L"PWM", 1, L"pwm.dll", 0);
>
>
> In my dll project I have a init function, PWM_INIT.
>
>
> What should the signature be for this function? I have seen 3 different
> signatures. One with 2 input parameters, One that returns a BOOL. One that
> returns a DWORD handle.
>
> What should the handle be if all i want to do I use PWM_IOControl?
>
> There don't seem to be an good examples on how to write a driver. All the
> examples are poorly commented and extremely confusing.
>
>
> Dave V.
>
>


Relevant Pages

  • PWM Driver
    ... I am trying to write a dll for a PWM driver. ... When i try to register the dll I use the code below and get error type 1. ... In my dll project I have a init function, ... What should the signature be for this function? ...
    (microsoft.public.windowsce.platbuilder)
  • PWM driver
    ... I am trying to write a dll for a PWM driver. ... When i try to register the dll I use the code below and get error type 2. ... In my dll project I have a init function, ... What should the signature be for this function? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: PWM Driver
    ... > I am trying to write a dll for a PWM driver. ... > In my dll project I have a init function, ... > What should the signature be for this function? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Embedded Visual C++ DLL Memory Problems
    ... by the DLL to do these global allocations. ... call this function before calling any other entrypoints in the DLL. ... Then, to free, you would do that in DllMain when dwReason = ... DLL_PROCESS_DETACH, or, if you have an Init function, then a corresponding ...
    (microsoft.public.pocketpc.developer)
  • Re: Identifying parameter(s) on Functions in unmanaged DLLs
    ... P/Invoke declaration in your program? ... Windows API function, you can look in the documentation for the signature, ... > unmanaged DLL, ... > public static extern int MsgBox(PARMETER??? ...
    (microsoft.public.dotnet.languages.csharp)