Device Link Name

Discussion in 'Windows Vista Drivers' started by wavec, Aug 17, 2013.

  1. wavec

    wavec

    Joined:
    Aug 17, 2013
    Messages:
    1
    Likes Received:
    0
    Hi all, my driver after loading it call IoCreateSymbolicLink and receives the SymbolicLinkName and DeviceName chosen by the user, can i recreate the links with the new names? I tried with IoDeleteSymbolicLink and IoCreateSymbolicLink but from user mode i can't open the new link with CreateFile.

    the new string is "\Device\MYDRIVER" and the functions are called in a DRIVER_DISPATCH routine (all the functions called by the driver returns STATUS_SUCCESS) but from the process i still can't communicate with the driver with new link)
    the sequence of calls is:

    OpenSCManagerA
    CreateServiceA
    --> IoCreateDevice (DriverEntry)
    --> IoCreateSymbolicLink (DriverEntry)
    CreateFile
    DeviceIoControl
    --> IoDeleteSymbolicLink (dispatch routine)
    --> IoCreateSymbolicLink (dispatch routine)
    CloseHandle
    CreateFile //this fail

    Thanks for help.
     
    wavec, Aug 17, 2013
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.