Writing caching for removable disks

Hi guys,

My port driver simulates a removable disk like a USB drive. Everything works fine except the removing policy, e.g. ‘Write caching and Safe Removal’ is totally disabled on its property page in Device Manager. This causes the loss of written data if the image is unmounted.

I think there must be some disk IOCTLs I have not support yet which causes this problem. But which one? Any idea?

Thanks in advance.