...........................................................................................
CreateFile後面的幾個參數不對, 不能設為NULL
CreateFile(file, GENERIC_WRITE | GENERIC_READ, FILE_SHARE_WRITE | FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL)
具體可以百度看下說明