Serialize() public method

Serializes AUX_PERF_PROCESSINFO to a byte array
public Serialize ( ) : byte[]
return byte[]
        /// <summary>
        ///  Composes buffer for AUX_PERF_PROCESSINFO, refer to the definition of AUX_PERF_PROCESSINFO in this Open Specification
        /// </summary>
        /// <param name="reserved1">Value for Reserved_1 field in AUX_PERF_PROCESSINFO</param>
        /// <param name="reserved2">Value for Reserved_2 field in AUX_PERF_PROCESSINFO</param>
        /// <returns>The byte array contains the AUX_PERF_PROCESSINFO</returns>
        public static byte[] Compose_AUX_PERF_PROCESSINFO(int reserved1, int reserved2)
        {
            AUX_PERF_PROCESSINFO aux_perf_processinfo = new AUX_PERF_PROCESSINFO
            {
                ProcessID         = 0,
                ProcessNameOffset = 0,
                ProcessGuid       = new byte[ConstValues.GuidByteSize],
                Reserved1         = (short)reserved1,
                Reserved2         = (short)reserved2
            };

            return(aux_perf_processinfo.Serialize());
        }
 /// <summary>
 ///  Composes buffer for AUX_PERF_PROCESSINFO, refer to the definition of AUX_PERF_PROCESSINFO in this Open Specification
 /// </summary>
 /// <param name="reserved1">Value for Reserved_1 field in AUX_PERF_PROCESSINFO</param>
 /// <param name="reserved2">Value for Reserved_2 field in AUX_PERF_PROCESSINFO</param>
 /// <returns>The byte array contains the AUX_PERF_PROCESSINFO</returns>
 public static byte[] Compose_AUX_PERF_PROCESSINFO(int reserved1, int reserved2)
 {
     AUX_PERF_PROCESSINFO aux_perf_processinfo = new AUX_PERF_PROCESSINFO
     {
         ProcessID = 0,
         ProcessNameOffset = 0,
         ProcessGuid = new byte[ConstValues.GuidByteSize],
         Reserved1 = (short)reserved1,
         Reserved2 = (short)reserved2
     };
     return aux_perf_processinfo.Serialize();
 }