extern static bool _InstallLogPolicy(
     SafeFileHandle hLog,
     ref CLFS_MGMT_POLICY_AUTOSHRINK buffer);
 public static void InstallLogPolicy(
     SafeFileHandle hLog,
     ref CLFS_MGMT_POLICY_AUTOSHRINK 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_AUTOSHRINK buffer,
     ref uint pcbPolicyBuffer);
 public static void QueryLogPolicy(
     SafeFileHandle hLog,
     out CLFS_MGMT_POLICY_AUTOSHRINK buffer)
 {
     buffer = new CLFS_MGMT_POLICY_AUTOSHRINK(0);
     if (!_QueryLogPolicy(
             hLog,
             buffer.Common.PolicyType,
             ref buffer,
             ref buffer.Common.LengthInBytes))
     {
         uint errorCode = (uint)Marshal.GetLastWin32Error();
         HandleQueryPolicyFailure(errorCode);
     }
 }