зеркало из https://github.com/microsoft/dia-rs.git
Update dependencies (#16)
This commit is contained in:
Родитель
253f811c31
Коммит
5820e8495a
|
@ -10,13 +10,13 @@ Start by adding `windows` and `microsoft-dia` dependencies to Cargo.toml:
|
|||
|
||||
```toml
|
||||
[dependencies.windows]
|
||||
version = "0.52.0"
|
||||
version = "0.53.0"
|
||||
features = [
|
||||
"Win32_System_Com"
|
||||
]
|
||||
|
||||
[dependencies.microsoft-dia]
|
||||
version = "0.9.0"
|
||||
version = "0.10.0"
|
||||
```
|
||||
|
||||
Make use of any DIA SDK APIs as needed.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.Windows.WinmdGenerator/0.57.42-preview">
|
||||
<Project Sdk="Microsoft.Windows.WinmdGenerator/0.59.13-preview">
|
||||
<PropertyGroup Label="Globals">
|
||||
<OutputWinmd>../.windows/winmd/Microsoft.Dia.winmd</OutputWinmd>
|
||||
<WinmdVersion>255.255.255.255</WinmdVersion>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "microsoft-dia"
|
||||
version = "0.9.0"
|
||||
version = "0.10.0"
|
||||
authors = ["Microsoft"]
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
@ -15,7 +15,7 @@ members = [
|
|||
]
|
||||
|
||||
[dependencies.windows]
|
||||
version = "0.52"
|
||||
version = "0.53"
|
||||
features = [
|
||||
"implement",
|
||||
"Win32_Foundation",
|
||||
|
@ -27,10 +27,10 @@ features = [
|
|||
]
|
||||
|
||||
[dependencies.windows-core]
|
||||
version = "0.52"
|
||||
version = "0.53"
|
||||
features = [
|
||||
"implement"
|
||||
]
|
||||
|
||||
[build-dependencies.windows-bindgen]
|
||||
version = "0.52"
|
||||
version = "0.53"
|
||||
|
|
|
@ -5,7 +5,7 @@ edition = "2021"
|
|||
publish = false
|
||||
|
||||
[dependencies.windows]
|
||||
version = "0.52"
|
||||
version = "0.53"
|
||||
features = [
|
||||
"implement",
|
||||
"Win32_Foundation",
|
||||
|
|
|
@ -6,7 +6,7 @@ use windows::{
|
|||
|
||||
fn main() -> Result<()> {
|
||||
unsafe {
|
||||
CoInitializeEx(None, COINIT_MULTITHREADED)?;
|
||||
CoInitializeEx(None, COINIT_MULTITHREADED).ok()?;
|
||||
let source: IDiaDataSource = microsoft_dia::helpers::NoRegCoCreate(
|
||||
s!(
|
||||
r#"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\DIA SDK\bin\amd64\msdia140.dll"#
|
||||
|
|
10283
src/bindings.rs
10283
src/bindings.rs
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -17,7 +17,7 @@ type DllGetClassObject =
|
|||
/// requires the server implementing the specified class to be registered
|
||||
/// prior to use.
|
||||
///
|
||||
pub unsafe fn NoRegCoCreate<T: ComInterface>(lib: PCSTR, rclsid: *const GUID) -> Result<T> {
|
||||
pub unsafe fn NoRegCoCreate<T: Interface>(lib: PCSTR, rclsid: *const GUID) -> Result<T> {
|
||||
let instance = LoadLibraryExA(lib, HANDLE::default(), LOAD_WITH_ALTERED_SEARCH_PATH)?;
|
||||
if !instance.is_invalid() {
|
||||
if let Some(farproc) = GetProcAddress(instance, s!("DllGetClassObject")) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче