hi all,
OS:- windows NT 4.0
H/w:- pci card.
In this following code snippet, I am sending the busID parameter to the
function. In the 1st and 2nd KdPrint, I am getting the exact busID value of
0, but in the 3rd KdPrint, the value of busID gets changed to 48 or some
arbitrary value.
I am not able to figure out how this could happen…
NTSTATUS
CreateDevice(IN PDRIVER_OBJECT drvObj, IN PUNICODE_STRING regPath,ULONG
busID,
ULONG slotId, IN PPCI_COMMON_CONFIG pciData)
{
WCHAR devNameBuf = L"\Device\Test0";
UNICODE_STRING devNameUniStr;
WCHAR devLinkBuf = L"\DosDevices\TEST";
KdPrint((“Bus ID :%d”, busID));==========================>1
devNameBuf[sizeof(devNameBuf) - 2] = L’0’ + devNum;
KdPrint((“Bus ID :%d”, busID));=============================>2
devLinkBuf[sizeof(devLinkBuf) - 2] = L’0’ + devNum;
devNum++;
KdPrint((“Bus ID :%d”, busID));=================================>3
…
…
…
}
Can somebody throw some light on this…
Thanx,
Ashok
THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.