Windows-10 CreateFile2 error (ERROR_NOT_SUPPORTED_IN_APPCONTAINER)
问题 CreateFile2 api is returning ERROR_NOT_SUPPORTED_IN_APPCONTAINER when the file is not present/available in the path. My code is as below CREATEFILE2_EXTENDED_PARAMETERS ms_param = {0}; ms_param.dwSize = sizeof(CREATEFILE2_EXTENDED_PARAMETERS); ms_param.dwFileAttributes = FILE_ATTRIBUTE_READONLY; ms_param.dwFileFlags = FILE_FLAG_NO_BUFFERING; ms_param.dwSecurityQosFlags = SECURITY_DELEGATION; ms_param.lpSecurityAttributes = NULL; ms_param.hTemplateFile = NULL; g_hfile = CreateFile2(filename,