Re: Question about PCIbus.dll in Windows CE 6.0
- From: "Dean Ramsier" <ramsiernospam@xxxxxxxxxx>
- Date: Wed, 28 Mar 2007 11:34:03 -0400
Answered in your other message - your application can't load this dll.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"Don" <Don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ABFCB6C4-0A04-45AD-8AFE-E6B4C7712E26@xxxxxxxxxxxxxxxx
Hi Dean,
I have found the code and successfully modified it in the following
directory:
C:\Wince600\Public\Common\OAK\Drivers\PCIBUS
I created a function is pcibus.c that looks like this
VOID
Myfunc()
{
RETAILMSG(1,(TEXT("My func\r\n")));
}
Then I created a console app that looks like this.
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace ConsoleApplication2
{
class Program
{
public class Win32
{
[DllImport("pcibus.dll")]
public static extern void Myfunc();
}
static void Main(string[] args)
{
Win32.Myfunc();
}
}
}
When I run my console app. I get the following run time error:
Can't find PINVOKE DLL "pcibus.dll",
at ConsoleApplication2.Program.Main()
Am I doing something wrong when it comes to calling functions in a DLL?
--
Don
"Dean Ramsier" wrote:
Yes, this is the PCIBus driver provided by MS. Note that it might not be
the one used by your device since your BSP could have a cloned/modified
version itself.
Don't make changes to this directory. If you want to modify it, clone
(copy) it to your BSP and make the changes there. To answer your
question,
just doing a sysgen would not be sufficient to get the changes. You
would
have to also build the directory, or do a Build and Sysgen. But don't do
that, it could cause you problems and is unnecessary.
CreatePCIBus is called by Enumerate, which is called by Init, which is
the
driver entry point. At least, that's the case in CE5, I don't have CE6
in
front of me.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"Don" <Don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A8C4B03C-57B3-47BC-A810-A7CDF6D182A6@xxxxxxxxxxxxxxxx
Hi,
I am trying to Write to a PCI card I have attached to my Mini-ITX M11
motherboard running Windows CE 6.0. I have been reading the
documentation.
In particular I have a question about the following statement
The PCI Bus driver is in %_WINCEROOT%\Public\Common\Oak\Drivers\PCIbus.
It
is responsible for enumerating the PCI bus and loading device drivers
for
all
PCI devices it finds and recognizes on the bus.
I am assuming that this is the source code for PCIbus.dll. Let me know
if
I
am wrong. If I make changes to the code in this directory would they
be
in
PCIbus.dll the next time I did a clean sysgen. If this is true. Then
what
calles the function
BOOL CreatePciBus(LPCTSTR lpActiveRegPath, LPCTSTR lpInstanceRegPath).
Not sure if I am on the righ track here. I would appreciate anyones
help.
--
Don
.
- References:
- Re: Question about PCIbus.dll in Windows CE 6.0
- From: Dean Ramsier
- Re: Question about PCIbus.dll in Windows CE 6.0
- From: Don
- Re: Question about PCIbus.dll in Windows CE 6.0
- Prev by Date: Re: Question about PCIbus.dll in Windows CE 6.0
- Next by Date: Re: Question about PCIbus.dll in Windows CE 6.0
- Previous by thread: Re: Question about PCIbus.dll in Windows CE 6.0
- Next by thread: Re: Question about PCIbus.dll in Windows CE 6.0
- Index(es):
Relevant Pages
|