diff options
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/Security/DiagnosticDataQuery')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs | 227 |
1 files changed, 227 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs b/vendor/windows-sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs new file mode 100644 index 0000000..be1e8f6 --- /dev/null +++ b/vendor/windows-sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs @@ -0,0 +1,227 @@ +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCancelDiagnosticRecordOperation(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCloseSession(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqCreateSession(accesslevel : DdqAccessLevel, hsession : *mut super:: HDIAGNOSTIC_DATA_QUERY_SESSION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqExtractDiagnosticReport(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, reportkey : ::windows_sys::core::PCWSTR, destinationpath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordLocaleTags(htagdescription : super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordPage(hrecord : super:: HDIAGNOSTIC_RECORD) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordProducerCategories(hcategorydescription : super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticRecordProducers(hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqFreeDiagnosticReport(hreport : super:: HDIAGNOSTIC_REPORT) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticDataAccessLevelAllowed(accesslevel : *mut DdqAccessLevel) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("diagnosticdataquery.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DdqGetDiagnosticRecordAtIndex(hrecord : super:: HDIAGNOSTIC_RECORD, index : u32, record : *mut DIAGNOSTIC_DATA_RECORD) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordBinaryDistribution(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, producernames : *const ::windows_sys::core::PCWSTR, producernamecount : u32, topnbinaries : u32, binarystats : *mut *mut DIAGNOSTIC_DATA_EVENT_BINARY_STATS, statcount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription : super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, index : u32, categorydescription : *mut DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryCount(hcategorydescription : super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, categorydescriptioncount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCount(hrecord : super:: HDIAGNOSTIC_RECORD, recordcount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription : super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, index : u32, tagdescription : *mut DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagCount(htagdescription : super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, tagdescriptioncount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTags(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, locale : ::windows_sys::core::PCWSTR, htagdescription : *mut super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("diagnosticdataquery.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DdqGetDiagnosticRecordPage(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, offset : u32, pagerecordcount : u32, baserowid : i64, hrecord : *mut super:: HDIAGNOSTIC_RECORD) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordPayload(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, rowid : i64, payload : *mut ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, index : u32, producerdescription : *mut DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCategories(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, producername : ::windows_sys::core::PCWSTR, hcategorydescription : *mut super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCount(hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, producerdescriptioncount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducers(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, hproducerdescription : *mut super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("diagnosticdataquery.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DdqGetDiagnosticRecordStats(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, recordcount : *mut u32, minrowid : *mut i64, maxrowid : *mut i64) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordSummary(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, producernames : *const ::windows_sys::core::PCWSTR, producernamecount : u32, generalstats : *mut DIAGNOSTIC_DATA_GENERAL_STATS) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordTagDistribution(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, producernames : *const ::windows_sys::core::PCWSTR, producernamecount : u32, tagstats : *mut *mut DIAGNOSTIC_DATA_EVENT_TAG_STATS, statcount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReport(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, hreport : *mut super:: HDIAGNOSTIC_REPORT) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("diagnosticdataquery.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DdqGetDiagnosticReportAtIndex(hreport : super:: HDIAGNOSTIC_REPORT, index : u32, report : *mut DIAGNOSTIC_REPORT_DATA) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportCount(hreport : super:: HDIAGNOSTIC_REPORT, reportcount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportStoreReportCount(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, reportcount : *mut u32) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetSessionAccessLevel(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, accesslevel : *mut DdqAccessLevel) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqGetTranscriptConfiguration(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, currentconfig : *mut DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("diagnosticdataquery.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DdqIsDiagnosticRecordSampledIn(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, providergroup : *const ::windows_sys::core::GUID, providerid : *const ::windows_sys::core::GUID, providername : ::windows_sys::core::PCWSTR, eventid : *const u32, eventname : ::windows_sys::core::PCWSTR, eventversion : *const u32, eventkeywords : *const u64, issampledin : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqSetTranscriptConfiguration(hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION, desiredconfig : *const DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> ::windows_sys::core::HRESULT); +pub const AllUserData: DdqAccessLevel = 2i32; +pub const CurrentUserData: DdqAccessLevel = 1i32; +pub const NoData: DdqAccessLevel = 0i32; +pub type DdqAccessLevel = i32; +#[repr(C)] +pub struct DIAGNOSTIC_DATA_EVENT_BINARY_STATS { + pub moduleName: ::windows_sys::core::PWSTR, + pub friendlyModuleName: ::windows_sys::core::PWSTR, + pub eventCount: u32, + pub uploadSizeBytes: u64, +} +impl ::core::marker::Copy for DIAGNOSTIC_DATA_EVENT_BINARY_STATS {} +impl ::core::clone::Clone for DIAGNOSTIC_DATA_EVENT_BINARY_STATS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION { + pub id: i32, + pub name: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION {} +impl ::core::clone::Clone for DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION { + pub name: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION {} +impl ::core::clone::Clone for DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION { + pub privacyTag: i32, + pub name: ::windows_sys::core::PWSTR, + pub description: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION {} +impl ::core::clone::Clone for DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_DATA_EVENT_TAG_STATS { + pub privacyTag: i32, + pub eventCount: u32, +} +impl ::core::marker::Copy for DIAGNOSTIC_DATA_EVENT_TAG_STATS {} +impl ::core::clone::Clone for DIAGNOSTIC_DATA_EVENT_TAG_STATS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION { + pub hoursOfHistoryToKeep: u32, + pub maxStoreMegabytes: u32, + pub requestedMaxStoreMegabytes: u32, +} +impl ::core::marker::Copy for DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION {} +impl ::core::clone::Clone for DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_DATA_GENERAL_STATS { + pub optInLevel: u32, + pub transcriptSizeBytes: u64, + pub oldestEventTimestamp: u64, + pub totalEventCountLast24Hours: u32, + pub averageDailyEvents: f32, +} +impl ::core::marker::Copy for DIAGNOSTIC_DATA_GENERAL_STATS {} +impl ::core::clone::Clone for DIAGNOSTIC_DATA_GENERAL_STATS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "Required features: `\"Win32_Foundation\"`"] +#[cfg(feature = "Win32_Foundation")] +pub struct DIAGNOSTIC_DATA_RECORD { + pub rowId: i64, + pub timestamp: u64, + pub eventKeywords: u64, + pub fullEventName: ::windows_sys::core::PWSTR, + pub providerGroupGuid: ::windows_sys::core::PWSTR, + pub producerName: ::windows_sys::core::PWSTR, + pub privacyTags: *mut i32, + pub privacyTagCount: u32, + pub categoryIds: *mut i32, + pub categoryIdCount: u32, + pub isCoreData: super::super::Foundation::BOOL, + pub extra1: ::windows_sys::core::PWSTR, + pub extra2: ::windows_sys::core::PWSTR, + pub extra3: ::windows_sys::core::PWSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DIAGNOSTIC_DATA_RECORD {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DIAGNOSTIC_DATA_RECORD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "Required features: `\"Win32_Foundation\"`"] +#[cfg(feature = "Win32_Foundation")] +pub struct DIAGNOSTIC_DATA_SEARCH_CRITERIA { + pub producerNames: *const ::windows_sys::core::PCWSTR, + pub producerNameCount: u32, + pub textToMatch: ::windows_sys::core::PCWSTR, + pub categoryIds: *const i32, + pub categoryIdCount: u32, + pub privacyTags: *const i32, + pub privacyTagCount: u32, + pub coreDataOnly: super::super::Foundation::BOOL, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DIAGNOSTIC_DATA_SEARCH_CRITERIA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DIAGNOSTIC_DATA_SEARCH_CRITERIA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "Required features: `\"Win32_Foundation\"`"] +#[cfg(feature = "Win32_Foundation")] +pub struct DIAGNOSTIC_REPORT_DATA { + pub signature: DIAGNOSTIC_REPORT_SIGNATURE, + pub bucketId: ::windows_sys::core::GUID, + pub reportId: ::windows_sys::core::GUID, + pub creationTime: super::super::Foundation::FILETIME, + pub sizeInBytes: u64, + pub cabId: ::windows_sys::core::PWSTR, + pub reportStatus: u32, + pub reportIntegratorId: ::windows_sys::core::GUID, + pub fileNames: *mut ::windows_sys::core::PWSTR, + pub fileCount: u32, + pub friendlyEventName: ::windows_sys::core::PWSTR, + pub applicationName: ::windows_sys::core::PWSTR, + pub applicationPath: ::windows_sys::core::PWSTR, + pub description: ::windows_sys::core::PWSTR, + pub bucketIdString: ::windows_sys::core::PWSTR, + pub legacyBucketId: u64, + pub reportKey: ::windows_sys::core::PWSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DIAGNOSTIC_REPORT_DATA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DIAGNOSTIC_REPORT_DATA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_REPORT_PARAMETER { + pub name: [u16; 129], + pub value: [u16; 260], +} +impl ::core::marker::Copy for DIAGNOSTIC_REPORT_PARAMETER {} +impl ::core::clone::Clone for DIAGNOSTIC_REPORT_PARAMETER { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DIAGNOSTIC_REPORT_SIGNATURE { + pub eventName: [u16; 65], + pub parameters: [DIAGNOSTIC_REPORT_PARAMETER; 10], +} +impl ::core::marker::Copy for DIAGNOSTIC_REPORT_SIGNATURE {} +impl ::core::clone::Clone for DIAGNOSTIC_REPORT_SIGNATURE { + fn clone(&self) -> Self { + *self + } +} |