Commit 7330edd2 authored by Alexandre Julliard's avatar Alexandre Julliard

ntoskrnl.exe: Implemented IoCreateSymbolicLink.

parent a2adc888
......@@ -148,6 +148,27 @@ void WINAPI IoDeleteDevice( DEVICE_OBJECT *device )
}
/***********************************************************************
* IoCreateSymbolicLink (NTOSKRNL.EXE.@)
*/
NTSTATUS WINAPI IoCreateSymbolicLink( UNICODE_STRING *name, UNICODE_STRING *target )
{
HANDLE handle;
OBJECT_ATTRIBUTES attr;
attr.Length = sizeof(attr);
attr.RootDirectory = 0;
attr.ObjectName = name;
attr.Attributes = OBJ_CASE_INSENSITIVE | OBJ_OPENIF;
attr.SecurityDescriptor = NULL;
attr.SecurityQualityOfService = NULL;
TRACE( "%s -> %s\n", debugstr_us(name), debugstr_us(target) );
/* FIXME: store handle somewhere */
return NtCreateSymbolicLinkObject( &handle, SYMBOLIC_LINK_ALL_ACCESS, &attr, target );
}
/*****************************************************
* DllMain
*/
......
......@@ -345,7 +345,7 @@
@ stub IoCreateStreamFileObject
@ stub IoCreateStreamFileObjectEx
@ stub IoCreateStreamFileObjectLite
@ stub IoCreateSymbolicLink
@ stdcall IoCreateSymbolicLink(ptr ptr)
@ stub IoCreateSynchronizationEvent
@ stub IoCreateUnprotectedSymbolicLink
@ stub IoCsqInitialize
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment