F
FLASHCODER
Guest
I have a method that receives a PCHAR and need make a substring verification (i'm trying use strstr()) where the source text is of type CHAR*.
My attempt below not worked. Exists some solution with strstr() or i must search other function?
#include <ntifs.h>
#include <ntddk.h>
#include <windef.h>
VOID myMethod(const PCHAR Path)
{
CHAR ArrFilePath[264];
CHAR* FilePath = NULL;
FilePath = ArrFilePath;
if (/*RtlCompareMemory*/strstr(FilePath, Path/*, strlen(FilePath)*/) /*== strlen(FilePath))*/);
}
myMethod("\\??\\C:\\Program Files\\MySoftware");
Continue reading...
My attempt below not worked. Exists some solution with strstr() or i must search other function?
#include <ntifs.h>
#include <ntddk.h>
#include <windef.h>
VOID myMethod(const PCHAR Path)
{
CHAR ArrFilePath[264];
CHAR* FilePath = NULL;
FilePath = ArrFilePath;
if (/*RtlCompareMemory*/strstr(FilePath, Path/*, strlen(FilePath)*/) /*== strlen(FilePath))*/);
}
myMethod("\\??\\C:\\Program Files\\MySoftware");
Continue reading...