Thanks!
I'm now developing a driver which uses these arguments....
I can use it with DbgPrint but not with memcmp...this is the code ,
PCHAR pInputBuffer = Irp->AssociatedIrp. SystemBuffer;
if(pInputBuffer ) {
if(StringNullTe rminated(pInput Buffer,irpStack->Parameters.Dev iceIoControl.In putBufferLength ,&dwDataRead) )
{
test = (const void*)pInputBuf fer;
DbgPrint(test);
}
if(0...
User Profile
Collapse
-
-
Okay , i fixed it! , but it did work fine with sizeof
this was the code:
char test[256] = {"TEST"};
char szTemp[256] = {0};
DeviceIoControl (driverHandle, CHANGE_PREFIX, test, sizeof(test), szTemp, sizeof(szTemp), &dwReturn, NULL);
But now i did got another problem , i can't use this code:
LPCSTR test_str = "TEST";
char test[256] = {(char)test_str };
do...Leave a comment:
-
well.... i think i did have to declare an LPVOID because of the MSDN docs...Leave a comment:
-
-
Converting LPCSTR to LPVOID
Hello Everyone ,
I'm trying to convert an LPCSTR to LPVOID for use in DeviceIOControl .
But when i use LPVOID test = (LPVOID)test_lp cstr then it doesn't work ,
When i use LPVOID test = "TEST" , then it works , so it must have something to do with the conversion.
Any ideas ?
Note: i'm very new to C++
Sorry for my poor english
Edit: DeviceIoControl (driverHandle, CHANGE_PREFIX,...
No activity results to display
Show More
Leave a comment: