Thread: mi provider in windows 7 problem

  1. #1
    Registered User
    Join Date
    Mar 2009

    mi provider in windows 7 problem


    I wrote a simple WMI provider.

    I call the function in the provider through wmic.exe and wbemtest.exe

    In XP it works good, but in windows 7 I get an error: Code - 0x800706be. "The remote procedure call failed".

    In the event log I see "Application Error" - wmiprvse.exe . Faulting module name: mydll.dll, Exception code - 0xc0000005

    What Can I do?

    Please help me!


    Reply Quote

  2. #2
    Join Date
    Oct 2007
    Inside my computer
    Post the smallest possible compilable example that demonstrates the problem.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    0xC0000005 means "access violation".
    The most common cause of this being trying to dereference an invalid pointer, of which the typical case is a NULL pointer.

    The first thing to do would be to go through your code and check that any API function you call which returns a pointer/handle of some sort is actually returning a VALID pointer/handle.

    Don't assume success based on some limited test (it works on XP). For example, some things you could do on XP will result in "permission denied" on later OS's.
    If you silently ignore such a status return and then go on to use the invalid pointer/handle, then you're going to be SoL.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Usenet Provider
    By Aparavoid in forum Tech Board
    Replies: 3
    Last Post: 10-12-2009, 12:38 PM
  2. entry point of OLE DB Provider
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 07-19-2007, 04:15 AM
  3. OLE DB provider
    By George2 in forum Windows Programming
    Replies: 2
    Last Post: 05-07-2007, 01:19 AM
  4. OLEDB Provider Properties
    By IfYouSaySo in forum Windows Programming
    Replies: 0
    Last Post: 04-26-2006, 12:26 AM
  5. Writing OLEDB Provider
    By IfYouSaySo in forum Windows Programming
    Replies: 0
    Last Post: 04-06-2006, 04:55 PM

Tags for this Thread