I have the following code to check if the process path has the value iexplore.exe:
void GetDataElement(WCHAR process_name[MAX_PATH]){
CHAR *IEName = "iexplore.exe";
...
GetModuleFileNameExW(hProcess,NULL,process_name,MAX_PATH)
...
if(strstr(process_name,IEName)!=NULL){
...
}
However, I am getting the following warning:
'function': incompatible types - from 'WCHAR *' to 'const char *'
I do not know how to convert my variable process_name
into const char *, in order to remove that warning.