mi provider in windows 7 problem

This is a discussion on mi provider in windows 7 problem within the Windows Programming forums, part of the Platform Specific Boards category; Hi. I wrote a simple WMI provider. I call the function in the provider through wmic.exe and wbemtest.exe In XP ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    7

    mi provider in windows 7 problem

    Hi.

    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!

    Thanks.

    Reply Quote

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,543
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,496
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21