mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
The C++ version of this code used this logic, and it turns out it is able to find some setups that the current registry/Vs7 methods cannot. For example, if only the "Build Tools for Visual Studio" are installed but not Visual Studio itself, then only the ISetupEnumInstances method seems to find it. Follow up to #15657, fixes a regression caused by moving from the C++ version to the Zig version
12 lines
579 B
Zig
12 lines
579 B
Zig
const std = @import("../../std.zig");
|
|
const windows = std.os.windows;
|
|
const WINAPI = windows.WINAPI;
|
|
const LPVOID = windows.LPVOID;
|
|
const DWORD = windows.DWORD;
|
|
const HRESULT = windows.HRESULT;
|
|
|
|
pub extern "ole32" fn CoTaskMemFree(pv: LPVOID) callconv(WINAPI) void;
|
|
pub extern "ole32" fn CoUninitialize() callconv(WINAPI) void;
|
|
pub extern "ole32" fn CoGetCurrentProcess() callconv(WINAPI) DWORD;
|
|
pub extern "ole32" fn CoInitialize(pvReserved: ?LPVOID) callconv(WINAPI) HRESULT;
|
|
pub extern "ole32" fn CoInitializeEx(pvReserved: ?LPVOID, dwCoInit: DWORD) callconv(WINAPI) HRESULT;
|