IoCreateSymbolicLink

NTSTATUS
    IoCreateSymbolicLink(

        IN PUNICODE_STRING  SymbolicLinkName,
        IN PUNICODE_STRING  DeviceName
        );

IoCreateSymbolicLink sets up a symbolic link between a device object name and a user-visible name for the device.

Parameters

SymbolicLinkName
Points to a buffered Unicode string that is the user-visible name.
DeviceName
Points to a buffered Unicode string that is the name of the driver-created device object.

Return Value

IoCreateSymbolicLink returns STATUS_SUCCESS if the symbolic link object was created.

Callers of IoCreateSymbolicLink must be running at IRQL PASSIVE_LEVEL.

See Also

IoAssignArcName, IoCreateUnprotectedSymbolicLink, IoDeleteSymbolicLink