realbasic-nug
[Top] [All Lists]

Win32 struct -> RB struct translation

To: Lists REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Win32 struct -> RB struct translation
From: "E. Tejkowski" <lists at sonicamigos dot com>
Date: Sun, 30 Sep 2007 22:26:53 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I don't have a Win32 C compiler handy at the moment, otherwise I  
could check this stuff myself… but I need a little help translating a  
Win32 struct to an RB struct.

1. In the struct below, how should I handle the GUID type? (e.g. how  
many bytes is it?)
2. Is the BOOL type equivalent to RB's Boolean type?
3. And, what does the gobbledy-gook in front of "BYTE  
*pbFormat" (i.e. [size_is(cbFormat)]) mean?

typedef struct  _MediaType {
GUID      majortype;
GUID      subtype;
BOOL      bFixedSizeSamples;
BOOL      bTemporalCompression;
ULONG     lSampleSize;
GUID      formattype;
IUnknown  *pUnk;
ULONG     cbFormat;
[size_is(cbFormat)] BYTE *pbFormat;
} AM_MEDIA_TYPE;

Thanks,
Erick

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>