53{
54 if (PolicyInformation !=
NULL)
55 {
57 {
59 break;
60
62 if (PolicyInformation->PolicyAuditEventsInfo.EventAuditingOptions !=
NULL)
63 midl_user_free(PolicyInformation->PolicyAuditEventsInfo.EventAuditingOptions);
64 break;
65
67 if (PolicyInformation->PolicyPrimaryDomInfo.Name.Buffer !=
NULL)
68 midl_user_free(PolicyInformation->PolicyPrimaryDomInfo.Name.Buffer);
69
70 if (PolicyInformation->PolicyPrimaryDomInfo.Sid !=
NULL)
72 break;
73
75 if (PolicyInformation->PolicyPdAccountInfo.Name.Buffer !=
NULL)
76 midl_user_free(PolicyInformation->PolicyPdAccountInfo.Name.Buffer);
77 break;
78
80 if (PolicyInformation->PolicyAccountDomainInfo.DomainName.Buffer !=
NULL)
81 midl_user_free(PolicyInformation->PolicyAccountDomainInfo.DomainName.Buffer);
82
83 if (PolicyInformation->PolicyAccountDomainInfo.Sid !=
NULL)
85 break;
86
88 break;
89
91 if (PolicyInformation->PolicyReplicaSourceInfo.ReplicaSource.Buffer !=
NULL)
92 midl_user_free(PolicyInformation->PolicyReplicaSourceInfo.ReplicaSource.Buffer);
93
94 if (PolicyInformation->PolicyReplicaSourceInfo.ReplicaAccountName.Buffer !=
NULL)
95 midl_user_free(PolicyInformation->PolicyReplicaSourceInfo.ReplicaAccountName.Buffer);
96 break;
97
99 break;
100
102 break;
103
105 break;
106
108 break;
109
111 if (PolicyInformation->PolicyDnsDomainInfo.Name.Buffer !=
NULL)
112 midl_user_free(PolicyInformation->PolicyDnsDomainInfo.Name.Buffer);
113
114 if (PolicyInformation->PolicyDnsDomainInfo.DnsDomainName.Buffer !=
NULL)
115 midl_user_free(PolicyInformation->PolicyDnsDomainInfo.DnsDomainName.Buffer);
116
117 if (PolicyInformation->PolicyDnsDomainInfo.DnsForestName.Buffer !=
NULL)
118 midl_user_free(PolicyInformation->PolicyDnsDomainInfo.DnsForestName.Buffer);
119
120 if (PolicyInformation->PolicyDnsDomainInfo.Sid !=
NULL)
122 break;
123
125 if (PolicyInformation->PolicyDnsDomainInfoInt.Name.Buffer !=
NULL)
126 midl_user_free(PolicyInformation->PolicyDnsDomainInfoInt.Name.Buffer);
127
128 if (PolicyInformation->PolicyDnsDomainInfoInt.DnsDomainName.Buffer !=
NULL)
129 midl_user_free(PolicyInformation->PolicyDnsDomainInfoInt.DnsDomainName.Buffer);
130
131 if (PolicyInformation->PolicyDnsDomainInfoInt.DnsForestName.Buffer !=
NULL)
132 midl_user_free(PolicyInformation->PolicyDnsDomainInfoInt.DnsForestName.Buffer);
133
134 if (PolicyInformation->PolicyDnsDomainInfoInt.Sid !=
NULL)
136 break;
137
139 if (PolicyInformation->PolicyLocalAccountDomainInfo.DomainName.Buffer !=
NULL)
140 midl_user_free(PolicyInformation->PolicyLocalAccountDomainInfo.DomainName.Buffer);
141
142 if (PolicyInformation->PolicyLocalAccountDomainInfo.Sid !=
NULL)
143 midl_user_free(PolicyInformation->PolicyLocalAccountDomainInfo.Sid);
144 break;
145
146 default:
148 break;
149 }
150
152 }
153}
_In_ FILTER_INFORMATION_CLASS InformationClass
@ PolicyModificationInformation
@ PolicyAuditEventsInformation
@ PolicyDnsDomainInformationInt
@ PolicyDefaultQuotaInformation
@ PolicyReplicaSourceInformation
@ PolicyLsaServerRoleInformation
@ PolicyAuditFullSetInformation
@ PolicyDnsDomainInformation
@ PolicyPrimaryDomainInformation
@ PolicyAuditLogInformation
@ PolicyAuditFullQueryInformation
@ PolicyLocalAccountDomainInformation
@ PolicyPdAccountInformation
@ PolicyAccountDomainInformation