How to develope a NDIS miniport driver to detect network connection

I need to develope a NDIS miniport driver to detect the current network status of a machine. If someone know how to do it please let me know.
Thanks in advance

Hi,
I think we all need a little more information to help you. Are you using any NI hardware or software? What port are you trying to connect to. Some more information would be helpful.
Thanks
Regards
Krista S.
Applications Engineering
National Instruments

Similar Messages

  • How can i stop firefox from asking "Choose A Network Connection" when i'm offline and using my saved pages

    How can i stop Firefox from asking "Choose A Network Connection" when i'm offline and using my saved pages
    i use Firefox 22.0 on windows 7
    it's about one week that it ask for "Network Connections" when i'm offline and disconnected from the internet even when i don't open a save page and just opening Firefox with a blank page
    Image of the Error:
    http://home.sums.ac.ir/~rowshansh/firefox.png
    http://www.sums.ac.ir/~rowshansh/firefox.png

    Did you check the network setting?
    Sounds that you have set to connect automatically when a connection is not available.
    *http://kb.mozillazine.org/Autoconnect
    *http://kb.mozillazine.org/Browser_attempts_to_connect_when_already_connected

  • How to Detecting Network Connectivity(internet is on or off) in Flex web application?

    Hi
    Detecting Network Connectivity in Flex web application not in AIR Application.
    how to check wheather internet is on of off in PC via Web appliaction in Flex?
    Thanks
    Sunil

    Thank You  very much  yancaoshi

  • How to assign the proper printer driver for a network shared HP PSC 1315 on the client side

    Hi,
    For the sake of simplicity I'll start with the simplest part: I have successfully  got the above mentioned printer to work on the PC where it is connected to via USB (running MS Windowx XP SP 3). I recently downloaded the latest install program for the printer drivers to do that. I connected it then to another PC (also MS Windows XP SP 3), and also installed the printer drivers using the HP install program and could also print on that one.
    Now I wanted to share. I shared the printer on the PC connected to the printer, and on the other one I started the "Add printer" dialogue, chose  network, and found it, and selected it. However, I am then told, that the host doesn't have a printer driver so I have to choose one on the client. And this is the problem, as I don't have the printer driver file. As I mentioned, there are no individual divers on the HP home page, only this install program, which I did run on both PCs, but this doesn't help me for the case of assigning the correct printer driver on a network client. Of course I also checked the list of available installed models, but it doesn't show up. So, what do I do?  

    just so u know I was not trying to print directly to the HP PSC 2355 from my iBook G4, I wanted to print to it over the network, wirelessly. So installing the HP Printer drivers would not serve that purpose. As I tried to explain in my email.
    By the way I did find a solution that has worked for me.
    The solution is to go to Print & Fax in the System Preferences.
    This is assuming that you have shared the printer from the PC.
    Then click on the + to add a printer to the iBook G4.
    Then click on the More Printers button at the bottom.
    You should then ensure that you have Windows Printing selected
    You should then make sure that the drop down below is Workgroup I think
    Then you should select the computer that u have your printer shared from
    Then you should press the Choose button.
    Your shared printer should be listed there
    You should then select that printer and choose HP from the Model drop down
    Then under Model Name pick HP DeskJet 900 series and press the Add button
    This model is not for an HP PSC 2355, but it is the appropriate driver for this
    printer, if you choose this print driver, everything will work and you can
    print wirelessly from your iBook G4 to a HP PSC 2355
    I have tested it on several different things including just text and color
    graphics as well, and it all worked beautifully, I am so happy now, that I
    figured it out.

  • How many Samsung Stratosphere users do not have reliable network connectivity using hotspot or tethering?

    I am on my 3rd phone in as little as 9 months because I have never been able to stay on the network using the hotspot or tethering. The network keeps disappearing and coing back on. I am in a 4 g area and right across the street from a main Verizon store. My antennae strength is full and my 4g indicator is on but it disappears so much that I cannot rely on network service with my phone. I actually went out and purchased a 4g aircard and that works just fine so I know its the phone and not the network. Its funny I keep getting put back into this phone when its the phone that has the problem. My salesman said after the 3rd phone you will be upgraded to the next best phone so hopefully Motorola Driod 4 will be the key top reliable network connectivity. I wish I knew how widespread this is or has been. I realize not a majority of Stratosphere users probably dont use the hotspot or tethering much but I use it or try to on a daily basis. I love the phone but not the hotspot or tethering capabilities. My newest phone never got any new apps or anything put on and it had problems outta the box.

    This phone SUCKS period.  I have only had it since July 27 and it has NEVER worked well.  I was never told (of course other than small print) that I had two weeks to return and get a totally different phone if not happy. So the 15th day I found that out. They pulled my sim card it worked better for about one week. Than back to crap.  So, I did a factory reset as they told me to. It worked for about another 2 weeks maybe. Now back to the same old thing again.  Drops calls ALL THE TIME with full network strength I can here them they cannot here. Goes back to factory defaults all the time. Starts not ringing and going only into voice mail. Freezes up where you cannot even shut off, you have to take the battery out. Also, constantly loses connectivity even though it is showing 4G and all bars too.
    Went in again to discuss this with them just today.  HMM, first, if you go back to comolaints this has been a main complaint of this phone for a huge percentage of customers.  Hmm, they are still selling it as a GREAT phone, that is what they said to me, ohhhh, no problems.  Today they looked it up and supposabley says Samsung as of July 30th is aware of this problem and now has 90 days to fix it.  Current fix. They SAY, pull the battery out EVERY night.  Stuck with phone will not replace with a different model. Only same model. SUCKS...Oh and Verizon rep says to me " we are only the cell service. All warranty's are through your Samsung."  Funny thing is. WHY are they still selling it on their shelf.  I feel like sending a spy into tomorrow to same store and find out if they push the phone on them...BUSTED, I am sure they will.  Meanwhile, it sure puts bumps in the road for our livelyhood if our only phone.  Not work the retail value, so not buying my own phone to replace YET.
    Good luck....Hopefully your third time is the charm and you will finally get a replacement for this Piece of CRAP.

  • HT2421 How do I access the USB drive once it is connected to the Airport Extreme? I can't find it? Thanks.

    I have set upmthe Airport Extreme and all is well, except I do not understand how to access the USB Drive. I am using a PC and two IOS Devices

    An App like Filebrowser will allow your iOS devices to browse files on the hard drive.
    Stratospherix - Products - FileBrowser - Overview

  • How to access Time Capsule hard drive with out internet connection?

    Basically I live in a four bedroom house. One of my roomates moved out who had the internet in there name. Now i dont have an internet access but I have the Time Capsule with a 2 TB hard drive that stores my whole itunes library. I have enough space on my Macbook Air to store my whole library. I'd like to move my whole iTunes library back to my computer and wipe the Time Capsule Clean.

    If the Time Capsule is providing a wireless network signal, an Internet connection does not need to exist to move files from the Mac to the Time Capsule, or vice versa.
    Log onto the Time Capsule wireless network
    Open Macintosh HD
    Look for the Time Capsule icon under the SHARED heading on the left side of the window
    Click on the Time Capsule icon and a folder named Data (unless you have renamed it) will appear to the right
    Double click Data to mount the drive on the Mac's desktop
    Open the drive on the desktop and you can drag/drop files over to the destination that you choose on the Mac.
    Once the file transfer is complete, double check to make sure that the files are back on your Mac and everything is working properly. Then, you can erase the Time Capsule hard drive.

  • NDIS Miniport on top of WDM - assertions on Ndismindicatereceivenetbufferlist()

    We have the NDIS miniport driver loaded on top of PDO created by a WDM driver.  When the NDISMIndicateReceiveNetBuffersList() function is directly called from the DPC that is initialized and scheduled by DPC and that executes code in NDIS miniport, we
    get assertion as below:
    Is it necessary that we have to complete it in NDIS context by doing it in NDIS Timer or NDIS Work queue item?
    Thanks
    Deva
    Assertion below:
    Debugging Details:
    PROCESS_NAME:  NTttcp.exe
    DPC_TIMEOUT_TYPE:  DPC_QUEUE_EXECUTION_TIMEOUT_EXCEEDED
    DPC_TIME_LIMIT: 784
    FAULTING_IP:
    nt!KeAccumulateTicks+57c
    fffff801`9327f2ec cd2c            int     2Ch
    ERROR_CODE: (NTSTATUS) 0xc0000420 - An assertion failure has occurred.
    EXCEPTION_CODE: (NTSTATUS) 0xc0000420 - An assertion failure has occurred.
    DEFAULT_BUCKET_ID:  WIN8_DRIVER_FAULT
    BUGCHECK_STR:  0x133
    CURRENT_IRQL:  d
    ANALYSIS_VERSION: 6.3.9600.17237 (debuggers(dbg).140716-0327) amd64fre
    DPC_STACK_BASE:  FFFFF80192440FB0
    LAST_CONTROL_TRANSFER:  from fffff801932b3f11 to fffff8019327f2ec
    STACK_TEXT: 
    fffff801`9243f2b0 fffff801`932b3f11 : 00000000`0000c60e fffff801`93504180 fffff801`9243f460 fffff780`00000320 : nt!KeAccumulateTicks+0x57c
    fffff801`9243f330 fffff801`932b4d98 : ffffffff`ffd0a4c8 fffff801`939a2502 fffff801`9243f460 fffff880`014440df : nt!KeUpdateRunTime+0x51
    fffff801`9243f360 fffff801`93978eba : ffffffff`ffd0a4c8 fffff801`939a2502 fffffa80`155a7870 00000000`00000a7e : nt!KeUpdateTime+0x3f9
    fffff801`9243f550 fffff801`93282bca : 0000000e`dd944296 fffffa80`0c879000 fffff801`939a2580 000007a6`00000000 : hal!HalpTimerClockInterrupt+0x86
    fffff801`9243f580 fffff880`0153e32b : fffff880`015474c9 fffffa80`00000000 fffffa80`00000006 00000000`00002238 : nt!KiInterruptDispatchNoLockNoEtw+0x1aa
    fffff801`9243f718 fffff880`015474c9 : fffffa80`00000000 fffffa80`00000006 00000000`00002238 fffffa80`155a7ae0 : NETIO!memcpy+0xab
    fffff801`9243f720 fffff880`01a7d4a0 : fffff801`9243f888 fffff801`9243f850 fffff801`9243f870 fffff801`9243f838 : NETIO!RtlCopyMdlToMdlIndirect+0xd9
    fffff801`9243f7a0 fffff880`01ab1355 : fffffa80`0c836d80 fffffa80`1526ae68 fffffa80`1526ad10 fffffa80`1526ae68 : tcpip!TcpSatisfyReceiveRequests+0x110
    fffff801`9243f9b0 fffff880`01ab8c60 : 00000000`00000002 fffffa80`155a7870 fffffa80`11f21c70 fffff880`05a01170 : tcpip!TcpDeliverDataToClient+0xd5
    fffff801`9243fb20 fffff880`01aa7f98 : fffff801`9243fe70 00000000`00000000 00000006`00000014 00000000`00000014 : tcpip!TcpDeliverReceive+0xa0
    fffff801`9243fc10 fffff880`01abf1e7 : 00000013`00000001 00000000`00000000 fffffa80`06a5dcc0 fffffa80`15165e40 : tcpip!TcpTcbFastDatagram+0x248
    fffff801`9243fdf0 fffff880`01abf8f3 : fffff801`92440398 fffff801`92440358 fffff801`92440378 00000000`00000000 : tcpip!TcpTcbReceive+0x207
    fffff801`9243ff50 fffff880`01ab9d01 : fffffa80`0c87d032 fffffa80`06ba28c0 00000000`00000000 fffffa80`06982f40 : tcpip!TcpMatchReceive+0x1f3
    fffff801`924400d0 fffff880`01a9de5f : fffffa80`06a5dcc0 fffff801`924403d9 fffff801`92440388 fffffa80`0c618300 : tcpip!TcpPreValidatedReceive+0x381
    fffff801`924401b0 fffff880`01a9d2a8 : 00000000`00063e83 fffff801`932b3f11 ffff7714`62904962 fffff801`93504180 : tcpip!IppDeliverListToProtocol+0x4f
    fffff801`92440260 fffff880`01aa2cb1 : fffff880`01bb7b90 00000000`00000000 41414141`41414141 fffff801`92440378 : tcpip!IppProcessDeliverList+0x68
    fffff801`92440310 fffff880`01a9c4c4 : 00000000`00000001 fffffa80`06a4ea00 00000000`00000000 fffff880`01bb7b90 : tcpip!IppReceiveHeaderBatch+0x211
    fffff801`92440440 fffff880`01aa7b4c : fffffa80`07cd9910 00000000`00000000 fffff801`9320e001 fffff801`93504101 : tcpip!IpFlcReceivePackets+0x8d4
    fffff801`92440660 fffff880`01aa7429 : fffffa80`150aa501 fffff801`0000000a fffff880`01aa7470 fffff801`00000000 : tcpip!FlpReceiveNonPreValidatedNetBufferListChain+0x29e
    fffff801`92440730 fffff801`932c9df5 : 00000000`00000000 fffff801`93506f00 00000000`00000000 00000000`0000003a : tcpip!FlReceiveNetBufferListChainCalloutRoutine+0x119
    fffff801`92440830 fffff801`932cad85 : fffff880`01aa7310 fffff801`924409a0 00000000`00000010 00000000`00000000 : nt!KeExpandKernelStackAndCalloutInternal+0xe5
    fffff801`92440930 fffff880`01aa75fe : fffff801`939a2580 41414141`41414141 00000000`0000226e fffff880`07e0f069 : nt!KeExpandKernelStackAndCalloutEx+0x25
    fffff801`92440970 fffff880`0143fe2e : 00000000`00000000 00000000`00000001 00000000`ffffffff 00000000`00000000 : tcpip!FlReceiveNetBufferListChain+0xae
    fffff801`924409f0 fffff880`0143f35d : fffffa80`0c832502 000005ea`00000000 fffffa80`00000000 00000000`0000000a : NDIS!ndisMIndicateNetBufferListsToOpen+0x373
    fffff801`92440a90 fffff880`0143fa05 : fffffa80`150ce1a0 00000000`00000000 00000000`00000001 fffffa80`1546f550 : NDIS!ndisInvokeNextReceiveHandler+0x25d
    fffff801`92440b60 fffff880`07e203e0 : fffff801`93506f00 fffff801`92440e00 fffffa80`066058e0 fffff801`92440f20 : NDIS!NdisMIndicateReceiveNetBufferLists+0xc5
    fffff801`92440be0 fffff880`07e1429d : fffffa80`078e01e8 fffff801`00000000 00000000`00000002 fffffa80`0000000a : liooctmp_W2012!ReceiveIndicate+0x260 [c:\users\rpm\documents\rpm\375\src\windows\liooctmp\octnic_rx.c @ 926]
    fffff801`92440c50 fffff880`07fdf3cc : fffffa80`078d8000 fffff801`00000000 fffffa80`1546f550 00000000`00000000 : liooctmp_W2012!OcteonInterruptDPC+0x1cd [c:\users\rpm\documents\rpm\375\src\windows\liooctmp\octnic_device.c @ 666]
    fffff801`92440cc0 fffff801`9327f498 : fffffa80`066058e0 0000057f`f80d8808 fffffa80`1546f550 00000000`00000000 : liooctvb!VbdPdoDpc+0x4c [c:\users\rpm\documents\rpm\375\src\windows\liooctvb\vbd_device.c @ 545]
    fffff801`92440d00 fffff801`932afd50 : fffff801`93504180 0000000e`607abb34 fffffa80`15117b00 00000000`00000025 : nt!KiExecuteAllDpcs+0x198
    fffff801`92440e40 fffff801`932af745 : 00000000`00000000 fffff801`93504180 fffff880`0fa7f050 000067ef`2aedbceb : nt!KiRetireDpcList+0xd0
    fffff801`92440fb0 fffff801`932af549 : 80000001`32f64963 fffff801`9334a398 00000000`00000000 00000000`00000000 : nt!KxRetireDpcList+0x5
    fffff880`0fa7efa0 fffff801`9334a398 : 00000000`00000000 00001f80`00000000 80000000`00000000 00000000`00000000 : nt!KiDispatchInterruptContinue
    fffff880`0fa7efd0 fffff801`932d9276 : 00000580`00000000 00000000`00000001 fffffa80`155ab010 00000000`00000000 : nt!KiDpcInterrupt+0xc8
    fffff880`0fa7f160 fffff801`9347c763 : 00000000`00000000 fffff880`0fa7f239 00000000`00000000 fffffa80`0631db50 : nt!ExpFindAndRemoveTagBigPages+0x116
    fffff880`0fa7f1c0 fffff880`01ab3772 : fffffa80`154f5000 00000000`00000000 fffff880`00000000 fffff801`4d446354 : nt!ExFreePoolWithTag+0x753
    fffff880`0fa7f2a0 fffff880`01a55c41 : fffffa80`06a03180 fffff801`9334a398 fffff880`0fa7f7f0 fffffa80`15210b80 : tcpip!PplGenericFreeFunction+0x46
    fffff880`0fa7f2d0 fffff880`01539291 : 00000000`00000000 00000000`00000001 00000000`00000000 00000000`00000000 : tcpip!TcpDelayedDeliveryCompletionRoutine+0x95
    fffff880`0fa7f310 fffff880`01a8447e : 00000000`00000000 00000000`00000000 fffffa80`08001700 fffff801`932d8446 : NETIO!NetioDereferenceNetBufferListChain+0x121
    fffff880`0fa7f3e0 fffff880`05d54305 : 00000000`00000000 fffffa80`1556a020 fffffa80`15359980 fffffa80`07f2d5d0 : tcpip!TcpTlProviderReleaseIndicationList+0x8e
    fffff880`0fa7f410 fffff880`05d924ef : 00000000`00000020 fffffa80`15721010 fffffa80`15457db8 00000000`00000000 : afd!AfdTLReleaseIndications+0x35
    fffff880`0fa7f460 fffff880`05d97cae : 00000000`00000000 fffffa80`07f2d5d0 fffff880`0fa7f5a0 fffffa80`07f2d5d0 : afd!AfdReturnBuffer+0xff
    fffff880`0fa7f4a0 fffff880`05d982f1 : 00000000`00000000 00000000`00000000 00000000`00000000 fffffa80`15721010 : afd!AfdBReceive+0x616
    fffff880`0fa7f6d0 fffff880`05d92320 : fffffa80`15457c10 fffffa80`15721010 00000580`00010000 fffff880`00000020 : afd!AfdReceive+0x301
    fffff880`0fa7f7e0 fffff801`936549e8 : 00000000`00000000 fffff880`0fa7f8c1 fffffa80`1509bf20 fffff880`0fa7f8a9 : afd!AfdDispatch+0xf0
    fffff880`0fa7f840 fffff801`935f9c13 : fffff880`05d76100 00000000`00000001 fffffa80`1509bf20 fffffa80`1509bf20 : nt!IopSynchronousServiceTail+0x158
    fffff880`0fa7f910 fffff801`93288053 : fffffa80`07cf5a40 00000000`000001b0 00000000`00000000 00000052`2d0880b0 : nt!NtReadFile+0x661
    fffff880`0fa7fa10 000007fc`33872c0a : 000007fc`30bfebb6 00000000`00000088 000007fc`321f26b4 00000000`00000000 : nt!KiSystemServiceCopyEnd+0x13
    00000052`2f77f6d8 000007fc`30bfebb6 : 00000000`00000088 000007fc`321f26b4 00000000`00000000 00000000`00000000 : 0x000007fc`33872c0a
    00000052`2f77f6e0 00000000`00000088 : 000007fc`321f26b4 00000000`00000000 00000000`00000000 00000052`2d0880b0 : 0x000007fc`30bfebb6
    00000052`2f77f6e8 000007fc`321f26b4 : 00000000`00000000 00000000`00000000 00000052`2d0880b0 00000052`2d8803b0 : 0x88
    00000052`2f77f6f0 00000000`00000000 : 00000000`00000000 00000052`2d0880b0 00000052`2d8803b0 00000052`00010000 : 0x000007fc`321f26b4
    STACK_COMMAND:  kb
    FOLLOWUP_IP:
    NETIO!memcpy+ab
    fffff880`0153e32b 4883c120        add     rcx,20h
    SYMBOL_STACK_INDEX:  5
    SYMBOL_NAME:  NETIO!memcpy+ab
    FOLLOWUP_NAME:  MachineOwner
    MODULE_NAME: NETIO
    IMAGE_NAME:  NETIO.SYS
    DEBUG_FLR_IMAGE_TIMESTAMP:  5010aa77
    BUCKET_ID_FUNC_OFFSET:  ab
    FAILURE_BUCKET_ID:  0x133_NETIO!memcpy
    BUCKET_ID:  0x133_NETIO!memcpy
    ANALYSIS_SOURCE:  KM
    FAILURE_ID_HASH_STRING:  km:0x133_netio!memcpy
    FAILURE_ID_HASH:  {917e6ce9-ee70-56c4-568f-37d2c398bb07}
    Followup: MachineOwner
    0: kd> g
    Continuing an assertion failure can result in the debuggee
    being terminated (bugchecking for kernel debuggees).
    If you want to ignore this assertion, use 'ahi'.
    If you want to force continuation, use 'gh' or 'gn'.
    0: kd> gh
    Trying to disable physical device not enabled in this session.

    Hi ,
    Thanks a lot.  
    We have modified the code to indicate the packets through work item by scheduling it from DPC that processes the packet. It works,. However, in HCK test for 1c_RSSBVT Test and 1c_RSSSendReceive , we get error stating that the packet with same header is being
    completed from different CPUs. This is because the work item scheduled from RSS CPU1 may get completed in CPU 3 and the next packet completed for the same RSS CPU1 be completed in CPU2, as the queued work item is arbitrary.
    Any ideas to avoid?
    Thanks
    Deva

  • NativeWifi application not recognizing Miniport Driver over USB

    Hi,
    We are working in WEC7 Wifi driver over USB interface. We have developed the custom miniport driver.
    In our case, when we analyse the Debug prints, Wifi driver is up and scanning properly. But Native Wifi
    application is not able to display/indicate anything on UI. It is showing the Adapter as OFF. Same Miniport driver is working fine over SDIO.
    Any registry settings or configuration related changes is needed please let me know.
    Thanks,
    Seeth

    The problem was solved by unplugging the printer (not just power off), waiting 5 minutes, plugging back in and restarting. Everything is working like a charm - USB, wireless, etc.
    Found the answer as a response to another similar post in this forum.

  • How to delete a registered jdbc driver

    I configured a third party jdbc driver but it's wrong. I tried to remove it but I can't find any way to do so. can any body tell me how to remove a defined jdbc driver(not remove a connection.) thanks.

    Registered third-party JDBC drivers can be deleted or edited by opening the 'Preferences' dialog (select the 'Preferences' menu item from the 'Tools' menu) and selecting the 'Database Connections' item on the left-hand tree. The resulting panel has a list of the registered drivers; select the one you wish to delete and click the 'Delete' button.
    - John McGinnis
    Oracle JDeveloper Team

  • How can I get network connection when booting from usb stick or dvd

    Computer: HP Pavillion P6-2450eo
    Secure Boot disabled
    Legacy Boot enabled
    Thruogh F9 I can boot in uefi mode from DVD and USB stick but I can't get at network connection from the loadet program. I have tried with Ubuntu 13.04, Linux Mint 15 and Boot Repair - all with same result.
    How can I get the programs to boot with network connection?
    On beforehand thanks!
    poul1304
    This question was solved.
    View Solution.

    Please verify that the programs (Ubuntu, Mint, Boot-Repair, etc.) you are attempting to use, support the Atheros AR8161L gigabit ethernet controller natively. Not all operating systems and software programs support every network device and/or configuration otut of the box. Many times, specific drivers must be loaded or injected into the OS for a device to function properly.
    Please send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Custom IOCTL in Compact 2013 NDIS 6.0 miniport driver

    The miniport driver requires a custom operation like configuring a specific register at the Ethernet controller. The access must be synchronized with the other operation of the miniport.
    How can I send a custom IOCTL to the miniport driver from a service or application in user mode?
    I have registered the OID code 0xFFA0C905 to SupportedOidList with the NdisMSetMiniportAttributes call. But a try to call DeviceIoControl with this value a dwCommand is rejected by NDIS.

    Hi,
    You may base your code on this sample:
    Lets say you define a custom OID to be OID_NDIS_CUSTOM then,
    #define OID_NDIS_CUSTOM                 0xFF100001
    static BOOL IssueSetOid(HANDLE hAdapter,
    TCHAR *DevName,
    DWORD OidCode,
    PUCHAR pData,
    int Length)
    PNDISUIO_SET_OID Oid;
    DWORD dwReturnedBytes;
    PUCHAR buffer;
    unsigned int len = sizeof(NDISUIO_SET_OID) + Length;
    BOOL success;
    buffer = (PUCHAR) malloc(len);
    if (NULL == buffer) {
    return FALSE;
    memset(buffer, 0, sizeof(NDISUIO_SET_OID));
    Oid = (NDISUIO_SET_OID *)buffer;
    Oid->Oid = OidCode;
    Oid->ptcDeviceName = DevName;
    if (Length > 0) {
    memcpy(Oid->Data,pData,Length);
    // Pass the IOCTL to the device
    success = DeviceIoControl(hAdapter,
    IOCTL_NDISUIO_SET_OID_VALUE,
    buffer,
    len,
    NULL,
    0,
    &dwReturnedBytes,
    NULL);
    free(buffer);
    return success;
    The above code can be used to push the OID request to the driver. Also, the SetInformationHandler in your miniport driver or MiniportOidRequest can handle your OID request for processing.
    Before you call the DeviceIoControl with  IOCTL_NDISUIO_SET_OID_VALUE do remember to do:
    hAdapter = CreateFile( NDISUIO_DEVICE_NAME, GENERIC_READ | GENERIC_WRITE,
    FILE_SHARE_READ | FILE_SHARE_WRITE,
    NULL, OPEN_EXISTING,
    FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED,
    INVALID_HANDLE_VALUE );
    The above code would give you a handle to NDISUIO. Use the adapter name to issue set requests to the driver.
    PS: Above was just a sample. Not all error handling / checks might be present.
    Hope this helps.
    Regards,
    Balaji.

  • How can i develop a custom Printer driver in LabVIEW

    I have one application in which when ever user prints a document (He will print only certain type of documents)
    it should get printed using some standard printer but at the same time the data should get communicated to our own custom device which is connected to the PC using serial port.
    how can i do this.
    I think if we can develop a our own driver which will first send data to serial device and then just call the standard printers driver then whole problem can be resolved
    The application will run on windows platform and the data i am expecting is purely a text data.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

    I think i have not explained my problem properly. i am sorry for that.
    the problem is something like this.
    my end user is already having one program which is generating the data (Unfortunately that program do not save data to any file and our requirement is online updatation of data) which i want to give to my serial device. he dont have the source code hence we can not alter that perticular code. the data might be available to us only when he prints the data, where we can select any one of installled printers.
    hence we want to develop an application which will appear as printer driver to windows and when user prints we can capture printed data
    i think problem will be clear now.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • How to create an handle for Miniport driver Ioctl interface?

    Hi All,
    I am trying to create an handle for my miniport driver Ioctl interface, but it showing the following error while opening the handle with CreateFile API.
    "you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE,
    which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME
    instead"
    Can anyone suggest on how to create the handle for Miniport Ioctl interface?
    Thank you,
    Sagar

    Hi,
    I have seen this error only in GUI based apps. Maybe you are pointing to the wrong error.
    Check if CreateFile returns INVALID_HANDLE_VALUE. API return value should give you more information.
    Regards,
    Balaji.

  • How do I Rename Mac Hard Drive with Home Folder Only?

    Hello,
    I have a Macbook Pro with an SSD which has OSX Snow Leopard and my Applications, and the other hard drive has my Home Folder. I replaced the optical drive with the SSD.
    The other hard drive has the standard name of 'Macintosh HD'. I need to change it to something without spaces in order to get some developer software to work (i.e., it can't have spaces in the workspace name, and now that my Home folder is on a drive that doesn't have OSX, it refers to it as '/Volumes/Macintosh HD/.../...'
    I ran into a disaster by simply changing the 'Macintosh HD' name to 'MacintoshHD' - It prevented me from logging in and I had to use the OSX Install disk to use the command line to rename the hard drive back to 'Macintosh HD'. My guess is because my account was referencing a home folder location that no longer existed.
    My question is how can I rename my hard drive with my Home Folder? Can I change the hard drive name, and then immediately change my Account to reference the new hard drive name (and thus the new location of my home folder), and then reboot? Will this work if I do this in this order? Or is there another way to handle this entirely?
    I'm very hesitant to try this again as I don't want to have to go back and use the OSX install disk - my SSD took the place of the optical drive and I have to go and take it out, put it back in...etc.
    Any help is appreciated.
    Regards
    Chicago29

    I don't have a setup to test this, but you might try the following:
    Create a second "normal" admin account with its home folder on the boot drive, then log out of your regular account and log into the new one. From there you could rename the large hard drive, then go to System Preferences>Accounts, select the first account, then right-click>Advanced options to change its home directory path to match the new HD name. That way you're not changing the home folder path "in mid-air."
    It's probably a good idea to keep a tiny "self-contained" admin account on the boot drive anyway, so you don't get locked out in the event of future trouble accessing the large disk.

Maybe you are looking for