Dear Experts,
i have a problem with CreateFileMapping() function ,
i am trying in this way,
Code:
hnd = (Mbyte*)CreateFile(fname, GENERIC_WRITE, NULL, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL,NULL);
printf("\n in if _hMap==============%d",(int)_hnd);//which gives me some 2060
_hMap = (char *)CreateFileMapping(_hnd,NULL,MAPPROTWRMODE,_fileSize,NULL);
printf("\n in if mapHandle==============%d",(int)_hmap);//which gives me NULL
why my map is getting failed when i can succesfully create a file,
i want the map for the file the "fname" specified in createfile please help me what can be the reason please provide me some solution.