c++ - Program File (x86) when checked for dwfileattributes Returns a value 73745. I need help to know what combination adds up to this value? -


win32_find_data findfiledata; . . . . if(findfiledata.dwfileattributes == file_attribute_directory) { . } 

this failed program files , found online combination of file_attribute_directory + file_attribute_readonly , not file_attribute_directory. need program files (x86)?

use

if((findfiledata.dwfileattributes & file_attribute_directory) == file_attribute_directory) {  } 

that way check if file_attribute_directory 1 of flags, instead of if flag.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -