server: Fix IDL for parsing of AUX_PERF_PROCESSINFO buffer.
authorbradh <bradh@71d39326-ef09-db11-b2a4-00e04c779ad1>
Sun, 13 Feb 2011 21:57:46 +0000 (21:57 +0000)
committerbradh <bradh@71d39326-ef09-db11-b2a4-00e04c779ad1>
Sun, 13 Feb 2011 21:57:46 +0000 (21:57 +0000)
This is a merge of r2589 from plugfest branch

git-svn-id: https://svn.openchange.org/openchange@2645 71d39326-ef09-db11-b2a4-00e04c779ad1

trunk/exchange.idl

index 1973329112284441c37d910160f0c7ade06786ce..23d4528532d4948a6807c34fa06a75ef2dd157cd 100644 (file)
@@ -4284,13 +4284,18 @@ System Attendant Private Interface
 
        /*************************/
        /* AUX_HEADER case (0xB) */
+       typedef [nodiscriminant] union {
+               [case(0x0)];
+               [default] nstring       ProcessName;
+       } ProcessNameString;
+
        typedef [flag(NDR_NOALIGN)] struct {
                uint16          ProcessID;
                uint16          Reserved1;
                GUID            ProcessGuid;
                uint16          ProcessNameOffset;
                uint16          Reserved2;
-               nstring         ProcessName;
+               [switch_is(ProcessNameOffset)] ProcessNameString ProcessName;
        } AUX_PERF_PROCESSINFO;
 
        /**************************/