How to set the file Information using IRP?

Hello all:
I want to set the File Basic Information of a specified file object using
IRP,I have build a Irp, but it doesn’t work, Could you please tell me what’s
wrong with my code list below:
Thanks a lot.

BOOLEAN SetFileBasicInformation(
PFILE_OBJECT FileObject,
PFILE_BASIC_INFORMATION BasicInformation,
PIO_STATUS_BLOCK IoStatusBlock)
{
PIRP irp;
PDEVICE_OBJECT fsdDevice = IoGetRelatedDeviceObject(FileObject);
KEVENT event;
PIO_STACK_LOCATION ioStackLocation;

//
// Allocate an irp for this request. This could also come from a
// private pool, for instance.
//
irp = IoAllocateIrp(fsdDevice->StackSize, FALSE);
if (!irp) {
//
// Failure!
//
return FALSE;
}
irp->AssociatedIrp.SystemBuffer = BasicInformation;
irp->UserEvent = &event;
irp->UserIosb = IoStatusBlock;
irp->Tail.Overlay.Thread = PsGetCurrentThread();
irp->Tail.Overlay.OriginalFileObject = FileObject;
irp->RequestorMode = KernelMode;
//
// Initialize the event
//
KeInitializeEvent(&event, SynchronizationEvent, FALSE);
//
// Set up the I/O stack location.
//
ioStackLocation = IoGetNextIrpStackLocation(irp);
ioStackLocation->MajorFunction = IRP_MJ_SET_INFORMATION;
ioStackLocation->DeviceObject = fsdDevice;
ioStackLocation->FileObject = FileObject;
ioStackLocation->Parameters.SetFile.Length =
sizeof(FILE_BASIC_INFORMATION);
ioStackLocation->Parameters.SetFile.FileInformationClass =
FileBasicInformation;
//
// Set the completion routine.
//
IoSetCompletionRoutine(irp, IoSetBasicInfoCompletion, 0, TRUE, TRUE, TRUE);
//
// Send it to the FSD
//
(void) IoCallDriver(fsdDevice, irp);
//
// Wait for the I/O
//
KeWaitForSingleObject(&event, Executive, KernelMode, TRUE, 0);
//
// Done!
//
return NT_SUCCESS( IoStatusBlock->Status );
}

NTSTATUS
IoSetBasicInfoCompletion(
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
PVOID Context
)
{
//
// Copy the status information back into the “user” IOSB.
//
*Irp->UserIosb = Irp->IoStatus;

if( !NT_SUCCESS(Irp->IoStatus.Status) ) {

DbgPrint((" ERROR ON IRP: \n"));
}
//
// Set the user event - wakes up the mainline code doing this.
//
KeSetEvent(Irp->UserEvent, 0, FALSE);

//
// Free the IRP now that we are done with it.
//
IoFreeIrp(Irp);

//
// We return STATUS_MORE_PROCESSING_REQUIRED because this “magic” return
value
// tells the I/O Manager that additional processing will be done by this
driver
// to the IRP - in fact, it might (as it is in this case) already BE
done - and
// the IRP cannot be completed.
//
return STATUS_MORE_PROCESSING_REQUIRED;
}