Search Results

Search found 4 results on 1 pages for 'jassi'.

Page 1/1 | 1 

  • error C2065: 'IOCTL_NDISUIO_OPEN_DEVICE' : undeclared identifier

    - by Jassi
    Hello, I am facing "error C2065: 'IOCTL_NDISUIO_OPEN_DEVICE' : undeclared identifier error in beneath code. Where i am wrong, please help me out. #include "Ntddndis.h" #include "Nuiouser.h" HRESULT OpenInterfaceHandle( LPWSTR adapterGuid, HANDLE *pHandle) { WCHAR deviceGuid[128]; HANDLE intfHandle; HRESULT hr = S_OK; DWORD dwDummy; DWORD dwErr = ERROR_SUCCESS; wcscpy( deviceGuid, L"\\DEVICE\\" ); wcscat( deviceGuid, adapterGuid ); intfHandle = CreateFileA( "\\\\.\\\\Ndisuio", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, INVALID_HANDLE_VALUE); if ( intfHandle == INVALID_HANDLE_VALUE ) { hr = E_FAIL; TraceMsg(L"CreateFile failed\n"); } if (hr = S_OK) TraceMsg(L"CreateFile successful\n"); if ( hr == S_OK ) { if ( !DeviceIoControl( intfHandle, IOCTL_NDISUIO_OPEN_DEVICE, (LPVOID)deviceGuid, wcslen(deviceGuid)*sizeof(WCHAR), NULL, 0, &dwDummy, NULL) ) { dwErr = GetLastError(); hr = E_FAIL; TraceMsg(L"Open Device failed with Error %d\n", dwErr); } else { *pHandle = intfHandle; hr = S_OK; TraceMsg(L"Open Device successful\n"); } } return hr; } thanx in advance,

    Read the article

  • encryption problem for wlan profile

    - by Jassi
    i am trying to encrypt keyMaterial element from wireless profile. so I want to convert byte array into OLECHAR but it is giving me wrong output not key sea the below code you may know the solution... DATA_BLOB in; DATA_BLOB out; BYTE pin=(BYTE)"FIPL2"; DWORD din=strlen((char*)pin)+1; in.pbData = pin; in.cbData = din; if(CryptProtectData(&in,L"what is it",NULL,NULL,NULL,0,&out)) { BYTE *b=out.pbData; USES_CONVERSION; bstr=SysAllocString(W2BSTR((const WCHAR *)b)); HRCALL(peSubS222->put_text(bstr), ""); SysFreeString(bstr); bstr=NULL; } else { cout<<"NOOOOOOOOOOOOOOOO :("; } what is missing please help me out

    Read the article

  • how to call 2 webmethods from a single webservice in a single activity in android?

    - by Jassi
    hello, I am new in android. i am able to called single webmethod from a .net webservice. i am usuing ksoap2 to implement soap. But in my .net webservice there are many web methods. I want to call more than one web methods. So please give some idea on this matter. Even i have tried by taking 2 soap_action and 2 method_name with single namespace then it works in first request but in 2nd request it gives xmlpullparserException error. thanx in advance,

    Read the article

  • how to load driver?

    - by Jassi
    Hi, I want to develop one driver so i have create one service and one .sys file for driver to be display now i do not know how to attach that two file or how to register my driver to windows. so just tell me the step which i should follow. Thanks and hoping for positive response.

    Read the article

1