Newbie: Is it possible to return a structure defined in sdk to script

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I'm new to writing my COM object so any help is greatly appreciated.

I would like to return a structure predefined in sdk library to a
vbscript. is this even possible? or must i wrap this with my own class?

the structure i'm trying to return is defined as follow:

typedef struct _MIB_TCPSTATS {
DWORD dwRtoAlgorithm;
DWORD dwRtoMin;
DWORD dwRtoMax;
DWORD dwMaxConn;
DWORD dwActiveOpens;
DWORD dwPassiveOpens;
DWORD dwAttemptFails;
DWORD dwEstabResets;
DWORD dwCurrEstab;
DWORD dwInSegs;
DWORD dwOutSegs;
DWORD dwRetransSegs;
DWORD dwInErrs;
DWORD dwOutRsts;
DWORD dwNumConns;
} MIB_TCPSTATS, *PMIB_TCPSTATS;

thanks.

.



Relevant Pages

  • RE: Newbie: Is it possible to return a structure defined in sdk to scr
    ... I'm not familiar with vbscript but if it is VB, you would use UDTs. ... > DWORD dwRtoAlgorithm; ... > DWORD dwRtoMin; ...
    (microsoft.public.vc.atl)
  • Re: Memory Manager DLL Validation
    ... Validation 14 *writes* past the end which is very very bad ... > reading the last dword, but writing is a no-no. ... the dword containing the zero-terminator. ...
    (borland.public.delphi.language.basm)
  • request:help reqd in using bus_dma functions
    ... I am writing a network driver where in have created tags and maps for ... tx_desc of transmit-q-size by using these functions. ... DWORD data_buff; ... docs but not very sure as I'm writing n/w drivers for the first time .I'm ...
    (freebsd-hackers)
  • Re: newbie: MUL product
    ... basis, or dword by dword? ... writing ax to memory will write al then ah. ... same memory address, will write dl, then dh. ... think that endian order is a byte by byte basis in memory, ...
    (alt.lang.asm)
  • Re: Fastcode Uppercase Validation
    ... > I was against writing the last dword at that time because I was working on ... > 1-byte header MM, but that idea didn't work out... ... Prev by Date: ...
    (borland.public.delphi.language.basm)