コード例 #1
0
 extern static bool _InstallLogPolicy(
     SafeFileHandle hLog,
     ref CLFS_MGMT_POLICY_LOGTAIL buffer);
コード例 #2
0
 public static void InstallLogPolicy(
     SafeFileHandle hLog,
     ref CLFS_MGMT_POLICY_LOGTAIL policy)
 {
     if (!_InstallLogPolicy(hLog, ref policy))
     {
         uint errorCode = (uint)Marshal.GetLastWin32Error();
         HandleInstallPolicyFailure(errorCode);
     }
 }
コード例 #3
0
 extern static bool _QueryLogPolicy(
     SafeFileHandle hLog,
     CLFS_MGMT_POLICY_TYPE ePolicyType,
     ref CLFS_MGMT_POLICY_LOGTAIL buffer,
     ref uint pcbPolicyBuffer);
コード例 #4
0
 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);
     }
 }