On 30/03/12 18:35, Dirk Jagdmann wrote:
However the nstring only appear if the corresponding "*Offset" variable has a
value greater than 0. So I'm looking for a syntax like:
...
[if(MachineNameOffset> 0)] nstring MachineName;
[if(UserNameOffset> 0)] nstring UserName;
[if(AdapterNameOffset> 0)] nstring AdapterName;
} AUX_PERF_CLIENTINFO;
I have no knowledge about the DCE/RPC idl syntax, Microsoft's midl or samba's
pidl. Can something like this be expressed with pidl?
Yep, it can.
You use the switch / case PIDL syntax for that (with a 0: nothing,
default: my structure pattern). There should be plenty of examples of
this in the extant IDL. Let me know if you need additional help.
Brad
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel