extern static bool _InstallLogPolicy(
     SafeFileHandle hLog,
     ref CLFS_MGMT_POLICY_LOGTAIL buffer);
 public static void InstallLogPolicy(
     SafeFileHandle hLog,
     ref CLFS_MGMT_POLICY_LOGTAIL policy)
 {
     if (!_InstallLogPolicy(hLog, ref policy))
     {
         uint errorCode = (uint)Marshal.GetLastWin32Error();
         HandleInstallPolicyFailure(errorCode);
     }
 }
 extern static bool _QueryLogPolicy(
     SafeFileHandle hLog,
     CLFS_MGMT_POLICY_TYPE ePolicyType,
     ref CLFS_MGMT_POLICY_LOGTAIL buffer,
     ref uint pcbPolicyBuffer);
 public static void QueryLogPolicy(
     SafeFileHandle hLog,
     out CLFS_MGMT_POLICY_LOGTAIL buffer)
 {
     buffer = new CLFS_MGMT_POLICY_LOGTAIL(0);
     if (!_QueryLogPolicy(
             hLog,
             buffer.Common.PolicyType,
             ref buffer,
             ref buffer.Common.LengthInBytes))
     {
         uint errorCode = (uint)Marshal.GetLastWin32Error();
         HandleQueryPolicyFailure(errorCode);
     }
 }