mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 00:57:04 +00:00
8579f720b0
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
13 lines
579 B
Zig
13 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;
|