private static extern IntPtr CreateFile(string fileName, 
     FILE_ACCESS_RIGHTS access,
     FileShare share,
     int securityAttributes,
     FileMode creation,
     FILE_FLAGS flags,
     IntPtr templateFile);
 private static extern IntPtr CreateFile(string fileName,
                                         FILE_ACCESS_RIGHTS access,
                                         FileShare share,
                                         int securityAttributes,
                                         FileMode creation,
                                         FILE_FLAGS flags,
                                         IntPtr templateFile);