1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntoskrnl: Implemented IoDeleteSymbolicLink.

This commit is contained in:
Alexandre Julliard 2008-10-20 16:21:22 +02:00
parent ba71579809
commit 0b560febea

View file

@ -543,8 +543,28 @@ NTSTATUS WINAPI IoCreateSymbolicLink( UNICODE_STRING *name, UNICODE_STRING *targ
*/
NTSTATUS WINAPI IoDeleteSymbolicLink( UNICODE_STRING *name )
{
FIXME( "%s\n", debugstr_us(name) );
return STATUS_SUCCESS;
HANDLE handle;
OBJECT_ATTRIBUTES attr;
NTSTATUS status;
attr.Length = sizeof(attr);
attr.RootDirectory = 0;
attr.ObjectName = name;
attr.Attributes = OBJ_CASE_INSENSITIVE;
attr.SecurityDescriptor = NULL;
attr.SecurityQualityOfService = NULL;
if (!(status = NtOpenSymbolicLinkObject( &handle, 0, &attr )))
{
SERVER_START_REQ( unlink_object )
{
req->handle = handle;
status = wine_server_call( req );
}
SERVER_END_REQ;
NtClose( handle );
}
return status;
}