Re: how to find the base address of pci card through program
I am sure you know about PCI and when you say " base address of pci card ", you are probably referring to BARx (BAR0) value.
You can go to MSDN and find explanation of PCI for windows, guidelines on writing a driver as well as sample drivers.
If you haven't done windows driver development using WDK already then this is not going to be a simple task.
You may also want to have a look at Jungo's WinDriver and similar softwares that do major part of giving you access to the bus and detecting youe device and then can just concentrate on programming your device.