Re: a question: about DeviceIoControl()

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Jan 7, 4:27 pm, chenkaihui <chenkai...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Call GetLastError() ,return 50
and i am a newer. How to debug it

thinks



"Abhishek R [MSFT]" wrote:
After DeviceIoControl fails, a call to GetLastError() should give you an
error code which might have more info on why it failed.
Also, if you have the source code for the driver, you could debug it to see
how it handles the IOCTL.- Hide quoted text -

- Show quoted text -

0x32 (50) means the request is not supported.
map this win32 error code to NTSTATUS error code to know what happened
in kernel.
thease links might be helpful for you.
http://msdn2.microsoft.com/en-us/library/ms681382(VS.85).aspx
http://support.microsoft.com/kb/113996
Regards
Subhash
.



Relevant Pages

  • Re: Load dll error code 193
    ... 1, I'm using EVC to debug WinCE application, instead of Platform Builder. ... error code 193 when calling LoadLibraryto load my dll. ... Are you building via Platform Builder or VisualStudio? ... When i load my dll with function-Loadlibrary,i get the the error code ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: [opensuse] Assembly Language program
    ... someone wanted a DOS utility that would just return an error code and do ... I used debug to brake applications. ... Tene a macro assembler .com... ... then I took a hex program and wrote the code for Longjump... ...
    (SuSE)
  • Re: Strange issue with CreateWindow
    ... AtlAxWin80 failed with error code 1407. ... 1407 is "can't find window class". ...     Igor Tandetnik ... The fact that it works in Debug configuration and not in Release is ...
    (microsoft.public.vc.atl)
  • Re: broken file upload
    ... file uploads. ... function storeUploads($id, $dir, $debug = false) ... if (!move_uploaded_file($tmp, $dest)) { ... trigger_error("Upload of file $id failed with error code ". ...
    (comp.lang.php)
  • Re: a problem with my replace gina after setup sp4 on windows 2000
    ... when an application occured the "Visual C++ Runtime Library"error,i debug it ... and found the "SetWindowsHookEx" function return error code of 0x00000005. ... "lxl" 写入消息新闻 ...
    (microsoft.public.platformsdk.security)