Re: WZCQueryInterface() of WZCSAPI.DLL under WinXP SP2

From: Jeroen van Bemmel (someone_at_somewhere.com)
Date: 09/29/04


Date: Wed, 29 Sep 2004 20:17:33 +0200

Yes, many changes

Try adding some extra bytes at the end of the INTF_ENTRY struct definition,
like so:

typedef struct {

    // all data here
    BYTE various_extensions[12];
} INTF_ENTRY;

and set your 'dwOutFlags' to 0, just in case

No guarantees though

"Bedrich Svoboda" <bedrich.svoboda@post.cz> wrote in message
news:e2sGx1cpEHA.592@TK2MSFTNGP11.phx.gbl...
> I'm trying to call WZCQueryInterface() under WinXP SP2, but all the tries
> end up in result code either 0x57 (invalid parameter) or 0xc0000005
> (access violation???). Was there any change in some structures or
> parameters of the function?
>
> My code:
>
> INTF_ENTRY ie;
> ZeroMemory(&ie, sizeof(ie));
> ie.wszGuid=deviceGuid; //from WZCEnumInterfaces()
> DWORD dwOutFlags;
> DWORD dwStatus=pfnWZCQueryInterface(NULL, INTF_ALL, &ie, &dwOutFlags);
> Bedrich Svoboda
>
>



Relevant Pages

  • Re: "data hiding" prototype code
    ... struct definition in the header. ... typedef struct foo_st foo_t; ...
    (comp.lang.c)
  • passing a structure to unmanaged code
    ... typedef struct tagLABELINFO { ... public struct TObjectID ... typedef struct tagObjectInfo { ... BOOL WINAPI PrintLabel(LPCSTR DeviceName, LPCSTR Port, int ...
    (microsoft.public.dotnet.languages.csharp)
  • passing structure to unmanged function
    ... typedef struct tagLABELINFO { ... public struct TObjectID ... typedef struct tagObjectInfo { ... BOOL WINAPI PrintLabel(LPCSTR DeviceName, LPCSTR Port, int ...
    (microsoft.public.dotnet.framework.interop)
  • [PATCH 1/6] 2.6.16-rc1 perfmon2 patch for review
    ... This a split version of the perfmon. ... Chunks represent the common part of the perfmon2 patch. ... +typedef struct { ...
    (Linux-Kernel)
  • Re: alignment trouble
    ... >} myHttpServer, myHttpServerList; ... Also, it is perfectly valid to 'typedef struct foo foo', i.e. use ...
    (microsoft.public.windowsce.embedded.vc)