HANDLEWINAPIMy_CreateFileA( __in LPCSTR lpFileName, __in DWORD dwDesiredAccess, __in DWORD dwShareMode, __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes, __in DWORD dwCreationDisposition, __in DWORD dwFlagsAndAttributes, __in_opt HANDLE hTemplateFile ){ if(dwDesiredAccess==FILE_SHARE_READ) { MessageBoxA(NULL,"","",0); } return ((HANDLE (__stdcall*)( LPCSTR , DWORD , DWORD , LPSECURITY_ATTRIBUTES , DWORD , DWORD , HANDLE ))adr_CreateFileA)( lpFileName,dwDesiredAccess,dwShareMode,lpSecurityAttributes,dwCreationDisposition,dwFlagsAndAttributes,hTemplateFile );}
if(dwDesiredAccess==FILE_SHARE_READ)
if(lpFileName==L"C:\\Users\\User\\Desktop\\readme.txt")
if(lpFileName==L"C:\\Users\\User\\Desktop\\readme.txt"){ lpFileName=L"F:\\go.txt";}
LPCSTR rez="C:\\Users\\User\\Desktop\\readme.txt"; if(memcmp(lpFileName,rez,strlen(rez))==0) { MessageBoxA(NULL,lpFileName,"My_CreateFileA memcmp",0); } if(lpFileName==rez) { MessageBoxA(NULL,lpFileName,"My_CreateFileA if",0); }